/** * Retrieves the window of an iframe identified by the given ID. * * @param {string} id - The ID of the iframe whose window is to be retrieved. * @returns {Window} The window of the iframe. * @throws Will throw an error if an element with the specified ID cannot be found. */ export declare function getIframeWindow(id: string): Window; /** * Creates and embeds an iframe into the document. The iframe is configured according to the given options. * The iframe is either appended to a specified element (if `embeddable` is true and `embeddableId` is provided), * or it is prepended to the top of the document. * * @async * @param {object} options - Configuration options for the iframe. * @param {string} options.url - The source URL of the iframe. * @param {string} options.frameId - The ID to set on the iframe. * @param {boolean} options.isHidden - Whether the iframe should be hidden initially. * @param {boolean} [options.embeddable=false] - Whether the iframe should be appended to a specific element. * @param {string} [options.embeddableId] - The ID of the element to append the iframe to, if `embeddable` is true. * @param {string} [options.allow=''] - The `allow` attribute to set on the iframe. * @param {Partial} [options.style={}] - Additional styles to apply to the iframe. * @returns {Promise} A promise that resolves to true once the iframe has loaded. * @throws Will throw an error if an embeddable element with the specified ID cannot be found, or if the iframe loading times out. */ export declare const embedIframe: ({ url, frameId, isHidden, embeddable, embeddableId, style: embeddableStyle, allow, }: { url: string; frameId: string; isHidden: boolean; embeddable?: boolean | undefined; embeddableId?: string | undefined; style?: Partial | undefined; allow?: string | undefined; }) => Promise;