export declare function createWebRTC({ socket, authHash, sharedKey, role, sessionId, onData, onOpen, onClose, log, }: {
    socket: any;
    authHash: string;
    sharedKey: string;
    role: 'initiator' | 'receiver';
    sessionId: string;
    onData: (data: any) => void;
    onOpen: () => void;
    onClose: () => void;
    log: (msg: string, type?: string) => void;
}): {
    /** Send a packet over the data channel (chunked + HMAC-signed). */
    send: (packet: any) => void;
    /** Deliver an inbound signal to the peer (called externally by MultiPeerManager). */
    signal: (signalData: any) => void;
    /** Tear down the peer and remove socket listeners. */
    close: () => void;
    /** Expose the raw peer for advanced inspection (e.g. signalingState checks). */
    peer: any;
};
