/** * Anti-corruption layer between the bridge runtime and baileyrs domain code. * * The actual mapping table lives in `./schema.ts` — this file is the * stable public entry point that consumers (notably `Socket/events.ts` and * the dts-drift test) import. Keeping it thin lets the schema evolve * (table-driven dispatch, additional validation, schema-derived types, * etc.) without rippling through call sites. */ import type { WhatsAppEvent } from 'whatsapp-rust-bridge'; import type { ILogger } from '../Utils/logger.js'; import type { CanonicalEvent } from './types.js'; /** * Set of bridge event types the adapter explicitly handles. The * `dts-drift.test.ts` cross-checks this against the bridge's `.d.ts` * union so missing/extra entries surface as test failures instead of * silent drops. */ export declare const KNOWN_BRIDGE_EVENT_TYPES: ReadonlySet; /** Result is `null` on unrecoverable shape mismatch — caller should drop the event. */ export declare const adaptBridgeEvent: (event: WhatsAppEvent, logger?: ILogger) => CanonicalEvent | null; //# sourceMappingURL=adapt.d.ts.map