import { IframeManagerOptions, IframeOptions, SizeInfo } from "./types"; declare class IFrameManager { options: IframeManagerOptions | null; onMessageHandler: IframeManagerOptions["onMessageHandler"]; isIFrameHost: boolean; debugMode: boolean; callbacks: { [key: string]: Function; }; instanceId: number; instanceRegexp: RegExp; isReady: boolean; messageHandler: (event: any) => void; iFrame: HTMLIFrameElement | null; firstSyncSent: number; destinationWindow: Window | null; destinationHost: string; constructor(options: IframeManagerOptions); /** * Creates a new message id * @param {string|number} instanceId * @returns {string} */ static createMessageId(instanceId: string | number): string; /** * Gets the html element that hosts the iFrame * @param {string} hostElementSelector */ static getHostElement(hostElementSelector: string): Element; /** * @param {string} url */ static extractHostFromUrl(url: string): string; /** * * @param {IframeOptions} [iFrameOptions] */ static getDestinationHost(iFrameOptions: IframeOptions | undefined): string; handleLoadError(): void; /** * @param {IframeOptions} iFrameOptions * @param { (this: GlobalEventHandlers, ev: Event) => any } onLoadCallback * @param { OnErrorEventHandler } onLoadErrorCallback * @returns {HTMLIFrameElement | null} */ static createIFrame(iFrameOptions: IframeOptions, onLoadCallback: (event: Event) => void, onLoadErrorCallback: OnErrorEventHandler): HTMLIFrameElement | null; /** * @param {SizeInfo} sizeInfo */ updateIFrameSize(sizeInfo: SizeInfo): void; /** * * @param {number | string} size * @returns {string} */ static formatSize(size: number | string): string; onReady(data?: {}): void; remove(): void; /** * Send a message to the destination window. * @param {{type: string, messageId?: string|number, hostUrl?: string}} message * @param {function} [callback] */ sendMessage(message: { type: string; messageId?: string | number; hostUrl?: string; }, callback?: Function): void; /** * @param {{ data: any; origin?: any; }} event */ onMessage(event: { data: any; origin?: any; }): void; sendSync(): void; /** * @param {any[]} args */ logDebugMessage(...args: any[]): void; } export default IFrameManager;