export interface InboundAttachment { url: string; mimeType?: string; } export interface NormalizedInboundMessage { from: string; text: string; messageId: string; attachments: InboundAttachment[]; isGroup: boolean; chatId: string; participants: string[]; } export interface ResolvedInboundRoute { sessionKey: string; accountId: string; agentId?: string; mainSessionKey?: string; [key: string]: unknown; } export type InboundMessageValidation = { ok: true; message: NormalizedInboundMessage; } | { ok: false; reason: string; }; export type InboundRouteValidation = { ok: true; route: ResolvedInboundRoute; } | { ok: false; reason: string; }; export declare function isInboundMessageEvent(data: Record): boolean; export declare function normalizeInboundMessage(data: Record): InboundMessageValidation; export declare function validateInboundRoute(route: unknown): InboundRouteValidation;