import type { Stream, StreamPlayOption } from '@hysc/brtc';
import { Emitter } from "@hysc/utils";
export default class AudioPlayer extends Emitter {
    private audio;
    private element;
    stream: Stream;
    private options;
    private audioStatus;
    sinkId: string;
    audioLevel: number;
    get streamId(): any;
    constructor(element: HTMLDivElement, options: StreamPlayOption);
    private playAudio;
    playEvent: () => void;
    pauseEvent: () => void;
    stalledEvent: () => void;
    setSinkId(deviceId: string): Promise<void>;
    setVolume(volume: number): void;
    play(stream: Stream): Promise<void>;
    replay(stream: Stream, video?: boolean, audio?: boolean): Promise<void>;
    muteAudio(): void;
    unmuteAudio(): void;
    destroy(): void;
    resume(): Promise<void>;
}
