import { postRequestToIframe } from "./postMessage"; export declare function registerMain(messageDispatcher: T, options?: { originWhiteList?: string[]; postToOrigin?: string; iframeDom?: HTMLIFrameElement; }): { postToIframe(callName: string, data: T_1): Promise; postToIframeAwaitResponse(callName: string, data: T_2): Promise; postToIframeTransferable(callName: string, data: T_3, transfer: Transferable[]): Promise; postToIframeTransferableAwaitResponse(callName: string, data: T_4, transfer: Transferable[]): Promise; cleanup(): void; }; export declare const postMessageToIframe: typeof postRequestToIframe;