import type { FilePlaybackStrategy } from '../interfaces'; /** * Playback strategy for Node.js environments. * Encodes the audio buffer into a WAV file and saves it to the disk. */ export declare class FilePlayer implements FilePlaybackStrategy { volume: number; private _sampleRate; constructor(sampleRate?: number); get sampleRate(): number; /** * Updates the sample rate used when encoding WAV output files. * Set this after loading the sampler to match the source WAV's actual rate. */ set sampleRate(rate: number); /** * Encodes and writes the provided audio buffer to a local .wav file. * @param bufferData The audio data to save. * @param outputDir The directory to save the file in. */ play(bufferData: Float32Array, outputDir: string): Promise; /** * Merges multiple audio buffers into one and plays the result. * @param buffers Array of Float32Array audio chunks. * @param outputDir The directory to save the file in. */ drainAndPlay(buffers: Float32Array[], outputDir: string): Promise; private encodeWAV; private writeString; }