/** * Timing primitives for the bridge child's wallet poll. * * Extracted into a typed module (BridgeChild.ts is `@ts-nocheck`) so this * infrastructure is type-checked. */ export declare const MAX_POLL_MS = 5000; export declare const POLL_INTERVAL_MS = 50; export declare class BridgeReadTimeout extends Error { constructor(); } /** * A Comlink read to a parent that hasn't `Comlink.expose`d yet never settles * (comlink's `requestResponseMessage` has no timeout, and the request message is * dropped — so it won't resolve even once the parent comes up; a *new* read must * be posted). The parent is typically created on the iframe's `load` event, * which can fire after the child starts polling, so the first reads would hang * the poll loop forever. Race every read against a short deadline so a pre-expose * tick rejects (and the caller retries) instead of stalling. */ export declare function raceParentRead(read: PromiseLike | T): Promise>; //# sourceMappingURL=bridge-timing.d.ts.map