import { EventEmitter } from 'ee-ts';
export interface StorageMediaCaptureEvents {
    error(e: Error): void;
    close(): void;
}
export declare class StorageMediaCapture extends EventEmitter<StorageMediaCaptureEvents> {
    id: string;
    sdpResolver: string;
    stream: MediaStream[] | null;
    pc: RTCPeerConnection | null;
    token: string;
    offerOptions: RTCOfferOptions;
    restartId: string;
    name: string;
    constructor(id: string, name: string, mediaStream: MediaStream[], iceServers: RTCIceServer[], sdpResolver: string, token: string);
    hangup(): Promise<void>;
    close(): void;
    cast(): Promise<void>;
    restart(): Promise<void>;
}
//# sourceMappingURL=storage.d.ts.map