import { type VideoGenerationDraft, type VideoGenerationJob, type VideoGenerationState } from '@xopcai/gateway-contract'; type VideoRequest = Pick; type VideoJobPlacement = Pick; interface JobRow { id: string; conversation_id: string; transcript_id: string; request_hash: string; model_ref: VideoGenerationJob['modelRef']; prompt: string; duration: number; ratio: VideoGenerationJob['ratio']; resolution: VideoGenerationJob['resolution']; image_name: string | null; image_mime: string | null; image_bytes: Uint8Array | null; state: VideoGenerationState; provider_task_id: string | null; error: string | null; created_at: number; } export declare function publicVideoJob(row: JobRow, placement?: VideoJobPlacement): VideoGenerationJob; export declare function listVideoJobs(conversationId: string): VideoGenerationJob[]; export declare function deleteVideoJobPlacements(conversationId: string): void; export declare function listVideoJobIds(conversationId: string): string[]; export declare function getVideoJob(conversationId: string, id: string): JobRow | undefined; export declare function enqueueVideoJob(conversationId: string, request: VideoRequest, requestHash: string, image?: { bytes: Buffer; mime: string; }, draft?: Pick): { readonly error: "conversation_changed"; job?: undefined; } | { job: VideoGenerationJob; error?: undefined; } | { readonly error: "idempotency_conflict"; job?: undefined; } | { readonly error: "model_changed"; job?: undefined; } | { readonly error: "queue_full"; job?: undefined; } | { readonly error: "budget_exhausted"; job?: undefined; }; export declare function claimVideoJob(now?: number): { row: JobRow; token: `${string}-${string}-${string}-${string}-${string}`; } | null; export declare function beginVideoSubmission(id: string, token: string): boolean; export declare function updateVideoJob(id: string, token: string, state: VideoGenerationState, options?: { providerTaskId?: string; delayMs?: number; error?: string; keepLease?: boolean; }): boolean; export {};