import type { ElementInstallRequest } from '@remotion/studio-shared'; import type { WhisperWebGpuModel, WhisperWebGpuTask } from '@remotion/whisper-webgpu'; import type { SequencePropsSubscriptionKey } from 'remotion'; export type CaptionJobProgress = { message: string; value: number; }; type CaptionJobStatus = { status: 'idle'; } | { status: 'cancelled'; } | { status: 'running' | 'saving'; progress: CaptionJobProgress; } | { status: 'done'; captionCount: number; } | { status: 'failed'; error: { message: string; stack: string | undefined; }; }; export type AddCaptionJobParams = { captionStyle: ElementInstallRequest | null; src: string; displayName: string; audioStreamIndex: number | null; requestInit: Omit | null; outName: string; target: { fileName: string; nodePath: SequencePropsSubscriptionKey; durationInFrames: number | null; } | null; model: WhisperWebGpuModel; language: string | null; task: WhisperWebGpuTask; chunkLengthInSeconds: number; strideLengthInSeconds: number; forceFullSequences: boolean; doSample: boolean; temperature: number; topK: number; repetitionPenalty: number; noRepeatNgramSize: number; }; export type CaptionJob = AddCaptionJobParams & { id: string; type: 'caption'; startedAt: number; } & CaptionJobStatus; export declare const isCaptionJob: (job: { type: string; }) => job is CaptionJob; export {};