import type { ProviderConfigMap, SmsProvider } from '../types/index.js'; import type { SmsSendInput, SmsSendResult, ISmsConnector } from '../types/index.js'; import type { SmsInputMap } from '../types/input-map.type.js'; import { ChannelTypeEnum } from '../types/index.js'; type SmsFacadeInput
= P extends keyof SmsInputMap ? SmsInputMap[P] : SmsSendInput; type SmsConfigWithFetch
= ProviderConfigMap[P] & { fetch?: typeof fetch; }; export declare class Sms
{ readonly id: string; readonly channelType = ChannelTypeEnum.SMS; private readonly connector; constructor(providerId: P, config: SmsConfigWithFetch
); constructor(connector: ISmsConnector); send(input: SmsFacadeInput
): Promise