import type { CDPSession, Page } from "playwright"; export declare const FAST_RENDER_PLAYBACK_RATE = 4; /** Parallel export is independent of the accelerated capture switch. */ export declare function resolveFastRenderParallel(requested?: number, environment?: string | undefined): number; export declare function resolveFastRenderSpeed(requested?: number, environment?: string | undefined): number; /** Explicit options override the process switch, including an explicit false. */ export declare function resolveFastRender(requested?: boolean, environment?: string | undefined): boolean; export interface FastCaptureRequest { /** Absolute first frame; callbacks also receive absolute frame indices. */ readonly startFrame?: number; readonly frameCount: number; readonly signal?: AbortSignal; /** Ordered CFR frames; missed compositor frames hold the preceding image. */ readonly onFrame: (frame: number, png: Uint8Array) => Promise; } export interface FastCaptureResult { readonly capturedFrames: number; readonly repeatedFrames: number; } /** Fixed absolute shards; callbacks from different pages may arrive out of order. */ export declare function captureParallelFrames(instances: readonly { readonly captureFrames?: (request: FastCaptureRequest) => Promise; }[], parallelism: number, request: FastCaptureRequest): Promise; export declare function captureFastViewport(cdp: CDPSession): Promise<{ data: string; }>; /** Continuous compositor capture. Only the endpoints require a screenshot transaction. */ export declare function captureFastSequence(page: Page, cdp: CDPSession, fps: number, playbackRate: number, request: FastCaptureRequest): Promise; //# sourceMappingURL=fast-render.d.ts.map