import { BufferAccess } from '../common/BufferAccess.js'; import { type Position } from '../common/Positioning.js'; import { type SampleProvider } from './sample_provider/SampleProvider.js'; export declare function decodeWav(data: Uint8Array, format: string, settings: DecoderSettings): Generator; export declare function getAllDecoders(): DecoderDefinition[]; export type DecoderDefinition = { format: string; }; export type InternalDecoderDefinition = DecoderDefinition & { decode(sampleProvider: SampleProvider, settings: DecoderSettings): Generator; }; export type OutputFile = { readonly proposedName: string | undefined; readonly data: BufferAccess; readonly proposedExtension: string; readonly begin: Position; readonly end: Position; }; export type DecoderSettings = { /** * What to do when errors occur */ onError: ErrorHandlingType; /** * Number of samples to skip in input */ skip: number; /** * Channel to get samples from */ channel: number | undefined; }; export type ErrorHandlingType = 'stop' | 'skipfile' | 'ignore';