import { WebrtcEvent, Subscription, WebrtcOpenRequest, WebrtcOpenResult } from '@napplet/core'; /** * Napplet NAP webrtc sdk entrypoint. * * @module */ /** Open a runtime-owned WebRTC session. */ declare function webrtcOpen(request: WebrtcOpenRequest): Promise; /** Send an opaque application payload over a session. */ declare function webrtcSend(sessionId: string, payload: unknown): Promise; /** Close a WebRTC session. */ declare function webrtcClose(sessionId: string, reason?: string): Promise; /** Subscribe to runtime-pushed WebRTC events. */ declare function webrtcOnEvent(handler: (event: WebrtcEvent) => void): Subscription; export { webrtcClose, webrtcOnEvent, webrtcOpen, webrtcSend };