import { ON_MESSAGE_CALLBACK_SKIP_PROCESSING } from 'promise-postmessage'; export interface PDomOptions { scripts: Array<(() => Promise) | string>; domainUrl?: string; noIframe?: boolean; disableOriginAgentCluster?: boolean; } export default class PDom { #private; private callbacks; private options; private el; protected framework: string; protected frameworkVersion: string; private isLoaded; get iframeSrc(): string; get containerEl(): HTMLElement; get scriptUrls(): string[]; constructor(_el: HTMLElement | string, options: PDomOptions | (() => Promise)); /** * Method to render the iframe and load the script. * @returns Promise which resolves when the iframe is loaded and rejects in case of an error. */ render(): Promise; private renderNoIframe; private getIframeEl; private subscribeToIframeMessages; private executeCallbacks; private on; sendMessage(data: any): Promise; onMessage(cb: (data: any) => any): () => void; } export { ON_MESSAGE_CALLBACK_SKIP_PROCESSING };