/** * SubtitleDecoder - Decodes subtitle packets using WASM/FFmpeg */ import type { SubtitleTrack, SubtitleCue } from '../types'; import { WasmBindings } from '../wasm/bindings'; export declare class SubtitleDecoder { private bindings; private isConfigured; private currentTrack; private onCue; private onError; constructor(); setBindings(bindings: WasmBindings, autoConfigure?: boolean): void; /** * Configure the decoder for a specific track */ configure(track: SubtitleTrack, extradata?: Uint8Array): Promise; /** * Decode a subtitle packet */ decode(data: Uint8Array, timestamp: number, _keyframe: boolean, duration?: number): Promise; /** * Set callback for decoded subtitle cues */ setOnCue(callback: (cue: SubtitleCue) => void): void; /** * Set error callback */ setOnError(callback: (error: Error) => void): void; /** * Close the decoder */ close(): void; } //# sourceMappingURL=SubtitleDecoder.d.ts.map