import type { CrocoProjectState } from "./preproduction-workspace.ts"; import type { VideoGenerationInput, VideoMedia } from "./video-production-state.ts"; export type VideoContinuity = { mode: "none"; } | NonNullable; export interface ContinuityServices { inspect(projectFolder: string, relativePath: string): Promise; extract(projectFolder: string, relativePath: string, endSeconds: number): Promise; } export declare class VideoDependencyError extends Error { readonly unitId: string; readonly code: "missing" | "waiting" | "failed"; constructor(unitId: string, code: "missing" | "waiting" | "failed", detail?: string); } /** Use the bound video's H3 job whenever recorded; only non-H3 sources need a local tail frame. */ export declare function resolveVideoContinuity(projectFolder: string, state: CrocoProjectState, unitId: string, compositionPath: string, services: ContinuityServices): Promise;