/** * Record audio from the microphone, render a waveform and download the audio. */ import BasePlugin from '../base-plugin.js'; export type RecordPluginOptions = { realtimeWaveColor?: string; lineWidth?: number; mimeType?: MediaRecorderOptions['mimeType']; audioBitsPerSecond?: MediaRecorderOptions['audioBitsPerSecond']; }; export type RecordPluginEvents = { startRecording: []; stopRecording: []; }; declare class RecordPlugin extends BasePlugin { private mediaRecorder; private recordedUrl; static create(options?: RecordPluginOptions): RecordPlugin; private loadBlob; render(stream: MediaStream): () => void; private cleanUp; startRecording(): Promise; isRecording(): boolean; stopRecording(): void; getRecordedUrl(): string; destroy(): void; } export default RecordPlugin;