/// <reference types="node" />
import { EventEmitter } from 'events';
export declare class RTC extends EventEmitter {
    localStream: MediaStream | null;
    peerStream: MediaStream | null;
    timer: any;
    state: number;
    pc: RTCPeerConnection;
    constructor();
    createOffer(): Promise<unknown>;
    handleAnswerFromOffer(answer: RTCSessionDescriptionInit): Promise<void>;
    createAnswer(offer: RTCSessionDescriptionInit): Promise<unknown>;
    _createAnswer(offer: RTCSessionDescriptionInit): Promise<void>;
    _createOffer(): Promise<void>;
    clean(): void;
    initLocalMediaStream(): Promise<MediaStream>;
    get remoteSdp(): string;
    get localSdp(): string;
    gotRemoteStream(e: RTCTrackEvent): void;
    iceGatherIngStateChange(e: Event): void;
}
//# sourceMappingURL=rtc.d.ts.map