import type { MediaFrameCapture, MediaFrameCaptureOptions } from "#types/media-renderer"; /** Encoded image type used when a capture does not request one. */ export declare const DEFAULT_MEDIA_FRAME_CAPTURE_TYPE = "image/jpeg"; /** Lossy encoder quality used when a capture does not request one. */ export declare const DEFAULT_MEDIA_FRAME_CAPTURE_QUALITY = 0.92; export interface CanvasMediaFrameCaptureRequest { /** Renderer-owned surface holding the presented media pixels. */ readonly source: HTMLCanvasElement; /** Presentation timestamp of the pixels currently held by `source`. */ readonly mediaTime: number; /** Caller-supplied encoder options. */ readonly capture: MediaFrameCaptureOptions | undefined; /** Creates the detached surface used to snapshot the presented pixels. */ readonly createCanvas: () => HTMLCanvasElement; } /** * Encodes media pixels a renderer has already presented. * * The presented pixels and their timestamp are copied synchronously before the * first await, so a frame presented while the encoder runs cannot change the * captured image or desynchronize it from `mediaTime`. */ export declare function captureCanvasMediaFrame(request: CanvasMediaFrameCaptureRequest): Promise; //# sourceMappingURL=media-frame-capture.d.ts.map