import type { DepthMap } from "supervision-js-core"; import type { DepthPlaybackSource } from "#types/render-preparation"; import type { DepthClipTiming } from "./clip-timing"; import { type DepthFrameWindow } from "./frame-window"; import type { DepthClipOptions } from "./options"; /** Exact frames loaded ahead of playback, and whether they are what plays. */ export interface ExactPlayback { readonly window: DepthFrameWindow; /** Whether exact depth plays now. */ readonly drawn: boolean; /** * Whether exact depth plays the frame at `index`. In "auto" this is where * it takes over once its lead reaches three quarters of what it loads * ahead, and hands back to the preview when that lead falls under a * quarter or the frame is missing, waiting longer each time before it * tries again; a stretch of steady exact playback earns the short wait * back. */ playsAt(index: number): boolean; /** Playback starts, or resumes after a drag: "auto" opens on the preview. */ restart(): void; } export declare function createExactPlayback(options: { readonly source: Exclude; /** * Whether a preview can stand in for exact depth; false once its decoder * stops. */ readonly hasPreview: () => boolean; readonly timing: DepthClipTiming; readonly exactFrameBytes: number; readonly budgets: DepthClipOptions; readonly load: (index: number, signal: AbortSignal) => Promise; readonly concurrency: () => number; readonly looping: () => boolean; /** A frame landed for `index`, while exact depth plays. */ readonly onFrame: (index: number) => void; readonly onChange: () => void; }): ExactPlayback; //# sourceMappingURL=exact-playback.d.ts.map