import { email } from './email.js';
import { telegram } from './telegram.js';
import { botmaster } from './botmaster.js';
import type { ChannelAdapter } from '../types.js';

export const CHANNEL_REGISTRY: Record<string, ChannelAdapter> = { email, telegram, botmaster };

export function getChannelAdapter(kind: string): ChannelAdapter | null {
  return CHANNEL_REGISTRY[kind] ?? null;
}
