import { WrappedCanvas } from 'mediabunny'; import { VideoSource } from '../../sources'; export declare class VideoDecoder { private source; private hasCache; private seeking; private canvasSink; private packetSink; private iterator; private currentFrame; private nextFrame; private frameCache; private cacheCanvasWidth; private cacheCanvasHeight; private nextKeyPacket; private lastValue; private frameRate; private preseekTime; constructor(source: VideoSource, hasCache: boolean); init(): Promise; private getCacheEntryFor; seekTo(relativeTime: number): Promise; getBestFrameFor(relativeTime: number): WrappedCanvas | OffscreenCanvas | null; reset(): void; }