import { EventEmitter } from '@angular/core'; export declare class AudioSequence { private buffer; private context; private node; private state; private startedAt; private pausedAt; onplay: EventEmitter; onpause: EventEmitter; onstop: EventEmitter; constructor(buffer: AudioBuffer, context: AudioContext); /** * Play the audiosequence. If the sequence was paused before it will start from the paused position * @param start optional parameter to play the sequence from a certain position (in seconds) * @param end optional parameter to play the sequence upto a certain position (in seconds) */ play(start?: number, end?: number): void; /** * Pause the audio sequence */ pause(): void; /** * Stop the audio sequence */ stop(): void; getSection(start: number, end: number): Float32Array[]; /** * Insert a section into the sequence at a given position * @param at time (in seconds) to insert at * @param buffer section to insert */ insert(at: number, buffer: Float32Array[]): void; /** * Remove a section of the audio sequence * @param start time (in seconds) for the start of the section * @param end time (in seconds) for the end of the section */ trim(start: number, end: number): void; getDuration(): number; getCurrentTime(): number; setCurrentTime(time: number): void; getBuffer(): AudioBuffer; private clearNode(); private timeToIndex(t); }