import { InitHandshake } from "./common/air/messaging/initHandshake"; export type IframeHandshakeOptions = { /** The bare-string announcement the child posts on every boot. */ announcement: string; /** Origin the announcement has to come from. */ origin: string; /** * The iframe's `contentWindow`, read at event time because the listener is * installed before the iframe exists — that ordering is what guarantees no * announcement can be missed. */ getSource: () => Window | null | undefined; /** Sends the initialization request and resolves once the child answers. */ requestInitialization: () => Promise; }; /** * Iframe flavour of {@link startInitHandshake}: the child announces itself with a * bare string over `window.postMessage`, and we trust it by origin plus the * frame's `contentWindow`. */ export declare function startIframeHandshake(options: IframeHandshakeOptions): InitHandshake;