import type { Logger } from '@libp2p/logger'; export interface WebRTCDataChannelOptions { onMessage: (event: MessageEvent) => void; onOpen: () => void; onClose: () => void; onError: (err: Error) => void; log: Logger; } export declare class WebRTCDataChannel { label: string; private readonly channel; private readonly closingInterval; private open; private readonly log; constructor(channel: RTCDataChannel, opts: WebRTCDataChannelOptions); send(data: Uint8Array): Promise; close(): void; get bufferedAmount(): number; } //# sourceMappingURL=channel.d.ts.map