import { type DepthManifest } from "supervision-js-core"; import type { DepthPreviewDecoding } from "#media/depth-preview-probe"; import type { DepthPreviewTrackReader } from "#media/depth-preview-track"; import type { DepthPreviewLumaCopier } from "./preview-luma"; import type { DepthSourceContext } from "./source"; export interface OpenedClipPreview { readonly reader: DepthPreviewTrackReader; /** What copies decoded frames' codes out, when not the page itself. */ readonly copier: DepthPreviewLumaCopier | undefined; readonly track: NonNullable; /** What diagnostics say about the preview, such as altered codes. */ readonly message: string | null; } export interface ClipPreview { readonly preview: OpenedClipPreview | null; /** Why a clip with a preview draws none; else null. */ readonly unavailable: string | null; } /** * Opens the clip's preview video and checks it against the media it is * drawn over: one preview frame per depth frame, each at its video frame's * time. A preview that disagrees is refused with a `RangeError`. One this * browser cannot open or decode leaves the clip without it, and says why * once in the console and in diagnostics. */ export declare function openClipPreview(manifest: DepthManifest, base: string | URL | undefined, context: DepthSourceContext, frameCount: number, timeAt: (index: number) => number): Promise; /** * What diagnostics say about the page's preview decoder: nothing when its * codes come back as written, directly or through the probe's table. */ export declare function describePreviewDecoding(decoding: DepthPreviewDecoding | null): string | null; /** * Refuses a preview whose frames are not the depth frames, one for one, at * the same times. Each timeline is measured from its own first frame, so a * preview that starts its clock elsewhere still lines up. */ export declare function assertDepthPreviewTimeline(preview: { readonly frameCount: number; readonly times: Float64Array; }, count: number, expectedTime: (index: number) => number): void; //# sourceMappingURL=clip-preview.d.ts.map