import { DecodeError } from "@wasm-audio-decoders/common"; import { OpusMLSpeechQualityEnhancementOption } from "@wasm-audio-decoders/opus-ml"; export interface OggOpusDecodedAudio { channelData: Float32Array[]; samplesDecoded: number; sampleRate: 48000; errors: DecodeError[]; } export class OggOpusDecoder { public constructor(options?: { forceStereo?: boolean; speechQualityEnhancement?: OpusMLSpeechQualityEnhancementOption; }); ready: Promise; reset: () => Promise; free: () => void; decode: (data: Uint8Array) => OggOpusDecodedAudio; decodeFile: (data: Uint8Array) => Promise; flush: () => Promise; } export class OggOpusDecoderWebWorker { public constructor(options?: { forceStereo?: boolean; speechQualityEnhancement?: OpusMLSpeechQualityEnhancementOption; }); ready: Promise; reset: () => Promise; free: () => Promise; decode: (data: Uint8Array) => Promise; decodeFile: (data: Uint8Array) => Promise; flush: () => Promise; } export { DecodeError };