import type { IncomingMessage, ServerResponse } from "node:http"; export interface WhatsAppPairingEventLike { status?: string; [key: string]: unknown; } export interface WhatsAppPairingSessionLike { start(): Promise; stop(): void; getStatus(): string; } export interface WhatsAppRouteState { whatsappPairingSessions: Map; broadcastWs?: (data: Record) => void; config: { connectors?: Record; }; runtime?: { getService(type: string): unknown | null; }; saveConfig: () => void; workspaceDir: string; } export interface WhatsAppRouteDeps { sanitizeAccountId: (accountId: string) => string; whatsappAuthExists: (workspaceDir: string, accountId: string) => boolean; whatsappLogout: (workspaceDir: string, accountId: string) => Promise; createWhatsAppPairingSession: (options: { authDir: string; accountId: string; onEvent: (event: WhatsAppPairingEventLike) => void; }) => WhatsAppPairingSessionLike; } export declare const MAX_PAIRING_SESSIONS = 10; export declare function handleWhatsAppRoute(req: IncomingMessage, res: ServerResponse, pathname: string, method: string, state: WhatsAppRouteState, deps: WhatsAppRouteDeps): Promise; export declare function applyWhatsAppQrOverride(plugins: { id: string; validationErrors: unknown[]; configured: boolean; qrConnected?: boolean; }[], workspaceDir: string): void; //# sourceMappingURL=whatsapp-routes.d.ts.map