import { StreamplaceAgent } from "streamplace";
export default function useWebRTC(streamer: string): [MediaStream | null, boolean];
/**
 * Performs the actual SDP exchange.
 *
 * 1. Constructs the client's SDP offer
 * 2. Sends the SDP offer to the server,
 * 3. Awaits the server's offer.
 *
 * SDP describes what kind of media we can send and how the server and client communicate.
 *
 * https://developer.mozilla.org/en-US/docs/Glossary/SDP
 * https://www.ietf.org/archive/id/draft-ietf-wish-whip-01.html#name-protocol-operation
 */
export declare function negotiateConnectionWithClientOffer(peerConnection: RTCPeerConnection, streamer: string, bearerToken?: string, agent?: StreamplaceAgent, isOwnStream?: boolean, playbackWorkerUrl?: string | null): Promise<"https://stream.place/example" | undefined>;
export declare function negotiateIngestConnectionWithClientOffer(peerConnection: RTCPeerConnection, endpoint: string, bearerToken: string): Promise<"https://stream.place/example" | undefined>;
export declare function useWebRTCIngest({ endpoint, }: {
    endpoint: string;
}): [MediaStream | null, (mediaStream: MediaStream | null) => void];
export declare function forceStereoAudio(sdp: string): string;
//# sourceMappingURL=use-webrtc.d.ts.map