import { EventEmitter } from '@libp2p/interfaces/events'; import type { WebRTCPeerEvents, WRTC, Signal, OfferSignal, AnswerSignal, CandidateSignal, RenegotiateSignal, GoodbyeSignal } from './index.js'; import type { Logger } from '@libp2p/logger'; export interface WebRTCHandshakeOptions { log: Logger; peerConnection: RTCPeerConnection; offerOptions?: RTCOfferOptions; wrtc: WRTC; } export declare class WebRTCHandshake extends EventEmitter { protected log: Logger; protected peerConnection: RTCPeerConnection; protected status: 'idle' | 'negotiating'; protected wrtc: WRTC; constructor(options: WebRTCHandshakeOptions); handleSignal(signal: Signal): Promise; handleOffer(signal: OfferSignal): Promise; handleAnswer(signal: AnswerSignal): Promise; handleRenegotiate(signal: RenegotiateSignal): Promise; handleGoodye(signal: GoodbyeSignal): Promise; handleCandidate(signal: CandidateSignal): Promise; } //# sourceMappingURL=handshake.d.ts.map