/** * @license * Copyright 2022-2024 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Channel, ChannelType } from "./Channel.js"; import { NetInterface } from "./NetInterface.js"; import { Network } from "./Network.js"; import { ServerAddress } from "./ServerAddress.js"; import { TransportInterface } from "./TransportInterface.js"; import { UdpChannel } from "./UdpChannel.js"; export declare class UdpInterface implements NetInterface { private readonly server; static create(network: Network, type: "udp4" | "udp6", port?: number, host?: string, netInterface?: string): Promise; constructor(server: UdpChannel); openChannel(address: ServerAddress): Promise; onData(listener: (channel: Channel, messageBytes: Uint8Array) => void): TransportInterface.Listener; get port(): number; close(): Promise; } declare class UdpConnection implements Channel { private readonly server; private readonly peerAddress; private readonly peerPort; readonly isReliable = false; readonly type = ChannelType.UDP; constructor(server: UdpChannel, peerAddress: string, peerPort: number); get maxPayloadSize(): number; send(data: Uint8Array): Promise; get name(): string; close(): Promise; } export {}; //# sourceMappingURL=UdpInterface.d.ts.map