import { RTC } from './rtc';
import type { RPC } from './rpc';
import type { CallSession } from '../index';
import type { SipPhone } from './client';
export declare class Session implements CallSession {
    private cli;
    rtc: RTC;
    rpc: RPC;
    callId?: string;
    incoming: boolean;
    id: string;
    answered: boolean;
    constructor(cli: SipPhone, rpc: RPC);
    call(destination?: string): Promise<void>;
    answer(s: object): Promise<Error>;
    recovery(callId: string): Promise<string>;
    get localStream(): MediaStream | null;
    get peerStream(): MediaStream | null;
    getLocalMedia(): MediaStream[];
    getPeerMedia(): MediaStream[];
    destroy(): Promise<void>;
    handleAnswerFromOffer(answer: RTCSessionDescriptionInit): Promise<void>;
}
//# sourceMappingURL=session.d.ts.map