import { UI_EVENT } from './ui-request'; import type { MessageFactoryFn } from './utils'; import type { ConnectSettings } from '../types'; export declare const IFRAME: { readonly INIT: "iframe-init"; readonly INIT_BRIDGE: "iframe-init-bridge"; readonly CALL: "iframe-call"; readonly CANCEL: "iframe-cancel"; readonly SWITCH_TRANSPORT: "iframe-switch-transport"; readonly CALLBACK: "iframe-callback"; }; export interface IFrameInit { type: typeof IFRAME.INIT; payload: { settings: ConnectSettings; }; } export interface IFrameBridge { type: typeof IFRAME.INIT_BRIDGE; payload: unknown; } export interface IFrameSwitchTransport { type: typeof IFRAME.SWITCH_TRANSPORT; payload: { env: ConnectSettings['env']; }; } export interface IFrameCallback { type: typeof IFRAME.CALLBACK; payload: { callbackId: string; data?: any; error?: any; finished?: boolean; }; } export type IFrameEvent = IFrameInit | IFrameBridge | IFrameSwitchTransport | IFrameCallback; export type IFrameEventMessage = IFrameEvent & { event: typeof UI_EVENT; }; export declare const createIFrameMessage: MessageFactoryFn; //# sourceMappingURL=iframe.d.ts.map