/** Site Builder asks the cross-origin preview iframe to draw its own first screen; the site's runtime replies with a JPEG. */ export declare const PAGE_CAPTURE_REQUEST = "replo:page-capture:request"; export declare const PAGE_CAPTURE_RESPONSE = "replo:page-capture:response"; export interface PageCaptureRequestMessage { type: typeof PAGE_CAPTURE_REQUEST; requestId: string; width: number; height: number; } export type PageCaptureResponseMessage = { type: typeof PAGE_CAPTURE_RESPONSE; requestId: string; jpeg: ArrayBuffer; ms: number; } | { type: typeof PAGE_CAPTURE_RESPONSE; requestId: string; jpeg: null; error: string; }; export declare function isPageCaptureRequestMessage(value: unknown): value is PageCaptureRequestMessage; export declare class PageCaptureError extends Error { } /** Parent side: ask `frame` to capture itself and resolve with its JPEG bytes. */ export declare function requestPageCapture({ frame, targetOrigin, width, height, timeoutMs, }: { frame: Window; targetOrigin: string; width: number; height: number; timeoutMs?: number; }): Promise<{ jpeg: ArrayBuffer; ms: number; }>;