import type { ProviderConfigMap, ChatProvider } from '../types'; import type { ChatSendInput, ChatSendResult, IChatConnector } from '../types'; import type { ChatInputMap } from '../types/input-map.type'; import { ChannelTypeEnum } from '../types'; type ChatFacadeInput

= P extends keyof ChatInputMap ? ChatInputMap[P] : ChatSendInput; type ChatConfigWithFetch

= ProviderConfigMap[P] & { fetch?: typeof fetch; }; export declare class Chat

{ readonly id: string; readonly channelType = ChannelTypeEnum.CHAT; private readonly connector; constructor(providerId: P, config: ChatConfigWithFetch

); constructor(connector: IChatConnector); send(input: ChatFacadeInput

): Promise; checkIntegration(): Promise<{ success: boolean; message?: string; }>; } export {};