/** * WhatsAppTransport — outbound via the Cloud API. WhatsApp text can't be edited * and (in v1) we don't drive typing, so delivery degrades to `final`; long * replies chunk at 4096. `target` is the customer's WhatsApp number. */ import type { ChannelTransport } from '../delivery.js'; import { type WhatsAppApi } from './api.js'; export interface WhatsAppSendObserver { prepare(target: string, text: string): Promise | string; accepted(attemptId: string, providerMessageId: string): Promise | void; rejected(attemptId: string, code: string): Promise | void; unknown(attemptId: string, code: string): Promise | void; } export declare class WhatsAppTransport implements ChannelTransport { private readonly api; readonly maxChars = 4096; readonly supportsEdit = false; readonly supportsTyping = false; private readonly observers; constructor(api: WhatsAppApi); withObserver(observer: WhatsAppSendObserver | undefined, work: () => Promise): Promise; sendText(target: string, text: string): Promise; editText(): Promise; sendTyping(): Promise; } //# sourceMappingURL=transport.d.ts.map