import { UIFrameRect, VirtualApi } from "@adobe/uix-core"; import React from "react"; import type { IframeHTMLAttributes } from "react"; import type { AttrTokens, SandboxToken } from "@adobe/uix-host"; /** * @internal */ type ReactIframeProps = IframeHTMLAttributes; /** * @public */ type FrameProps = Omit; /** @public */ export interface GuestUIProps extends FrameProps { guestId: string; /** * Receives the Penpal context when the frame is mounted. */ onConnect?: () => void; /** * Called when the frame disconnects and unmounts. */ onDisconnect?: () => void; /** * Called when the connection process throws an exception */ onConnectionError?: (error: Error) => void; /** * Called when the document in the iframe changes size. */ onResize?: (dimensions: UIFrameRect) => void; /** * Additional sandbox attributes GuestUIFrame might need. */ sandbox?: AttrTokens; /** * Optional custom URL or path. */ src: string; /** * Host methods to provide only to the guest inside all iframes. */ methods?: VirtualApi; /** * Host methods to provide only to the guest inside this iframe. */ privateMethods?: VirtualApi; } /** * An iframe that attaches to a running GuestServer, to display visible UI pages * delivered by the Extension server. * @public */ export declare const GuestUIFrame: ({ guestId, src, onConnect, onDisconnect, onConnectionError, onResize, methods, privateMethods, sandbox, style, ...customIFrameProps }: GuestUIProps) => React.JSX.Element; export default GuestUIFrame; //# sourceMappingURL=GuestUIFrame.d.ts.map