import type { IframeBox } from "@konghayao/iframe-box"; export declare class IframeEnv { destroy(): Promise; port: MessagePort; iframeBox: IframeBox; root: string; mount({ container, src, getFile, port, root, beforeBind, }: { container?: HTMLElement; src: string; port: MessagePort; getFile?: IframeEnv["getFile"]; root?: string; beforeBind?: (api: IframeBox["api"]) => Promise; }): Promise; getFile(baseURL: string): Promise; /** * 重写 iframe 内部的 HTML,并将其转化为 blob URL * @param baseURL html 的位置,相对于 location */ createSrc(baseURL: string): Promise; private transformHTML; }