import type { CompletedClientRender, RenderJob } from '@remotion/studio-shared'; import React from 'react'; import type { AddCaptionJobParams, CaptionJob, CaptionJobProgress } from './caption-job-types'; import { type AddClientStillJobParams, type AddClientVideoJobParams, type CompositionRef } from './client-render-queue'; import type { ClientRenderJob, ClientRenderJobProgress, LocalRenderOutput } from './client-side-render-types'; import type { AddVideoMattingJobParams, VideoMattingJob, VideoMattingJobProgress } from './video-matting-job-types'; declare global { interface Window { remotion_initialRenderQueue: RenderJob[] | null; remotion_initialClientRenders: CompletedClientRender[] | null; } } export type AnyRenderJob = RenderJob | ClientRenderJob; export declare const isClientRenderJob: (job: AnyRenderJob) => job is ClientRenderJob; type RenderQueueContextType = { jobs: AnyRenderJob[]; serverJobs: RenderJob[]; clientJobs: ClientRenderJob[]; captionJobs: CaptionJob[]; videoMattingJobs: VideoMattingJob[]; addClientStillJob: (params: AddClientStillJobParams, compositionRef: CompositionRef) => string; addClientVideoJob: (params: AddClientVideoJobParams, compositionRef: CompositionRef) => string; updateClientJobProgress: (jobId: string, progress: ClientRenderJobProgress) => void; markClientJobSaving: (jobId: string) => void; markClientJobDone: (jobId: string, metadata: CompletedClientRender['metadata'], localOutput: LocalRenderOutput | null) => void; markClientJobFailed: (jobId: string, error: Error) => void; markClientJobCancelled: (jobId: string) => void; removeClientJob: (jobId: string) => void; cancelClientJob: (jobId: string) => void; setProcessJobCallback: (callback: ((job: ClientRenderJob) => Promise) | null) => void; addCaptionJob: (params: AddCaptionJobParams) => string; updateCaptionJobProgress: (jobId: string, progress: CaptionJobProgress) => void; markCaptionJobDone: (jobId: string, captionCount: number) => void; markCaptionJobFailed: (jobId: string, error: Error) => void; markCaptionJobCancelled: (jobId: string) => void; markCaptionJobSaving: (jobId: string) => void; removeCaptionJob: (jobId: string) => void; setProcessCaptionJobCallback: (callback: ((job: CaptionJob) => Promise) | null) => void; addVideoMattingJob: (params: AddVideoMattingJobParams) => string; updateVideoMattingJobProgress: (jobId: string, progress: VideoMattingJobProgress) => void; markVideoMattingJobDone: (jobId: string) => void; markVideoMattingJobFailed: (jobId: string, error: Error) => void; markVideoMattingJobCancelled: (jobId: string) => void; markVideoMattingJobSaving: (jobId: string) => void; removeVideoMattingJob: (jobId: string) => void; setProcessVideoMattingJobCallback: (callback: ((job: VideoMattingJob) => Promise) | null) => void; getAbortController: (jobId: string) => AbortController; getCompositionForJob: (jobId: string) => CompositionRef | undefined; }; export declare const RenderQueueContext: React.Context; export declare const RenderQueueActionsContext: React.Context readonly AnyRenderJob[]; canCancelJob: (jobId: string) => boolean; isCancelling: (jobId: string) => boolean; subscribeToCancellation: (jobId: string, listener: () => void) => () => void; reconcile: () => void; clear: () => void; cancelJob: (jobId: string) => Promise; }, "canCancelJob" | "cancelJob" | "getJobs" | "isCancelling" | "subscribeToCancellation">>; export declare const renderJobsRef: React.RefObject<{ updateRenderJobs: (jobs: RenderJob[]) => void; updateClientRenders: (renders: CompletedClientRender[]) => void; } | null>; export declare const RenderQueueContextProvider: React.FC<{ readonly children: React.ReactNode; }>; export {};