import type { ItemId } from './types.ts'; /** * Converts an animated GIF to a video file using the worker pipeline. * * @param id Item ID. * @param gifSource GIF file as a Blob/File or ArrayBuffer. * @param outputMimeType Output MIME type ('video/mp4' or 'video/webm'). * @param maxDimensions Optional maximum dimension for downscaling. * @param maxTotalPixels Optional budget for total decoded pixels * (width × height × frame count); `0` disables. * @return Video file buffer. */ export declare function convertGifToVideo(id: ItemId, gifSource: ArrayBuffer | Blob, outputMimeType: string, maxDimensions?: number, maxTotalPixels?: number): Promise; /** * Cancels all ongoing GIF-to-video conversions for a given item ID. * * @param id Item ID. * @return Whether any operation was cancelled. */ export declare function cancelGifToVideoOperations(id: ItemId): Promise; /** * Terminates the video conversion worker if it exists. * Call this to free up resources when video conversion is no longer needed. */ export declare function terminateVideoConversionWorker(): void; //# sourceMappingURL=video-conversion-worker.d.ts.map