import type { Codec, DecodeOptions } from 'protons-runtime'; import type { Uint8ArrayList } from 'uint8arraylist'; export interface HolePunch { type?: HolePunch.Type; observedAddresses: Uint8Array[]; } export declare namespace HolePunch { enum Type { UNUSED = "UNUSED", CONNECT = "CONNECT", SYNC = "SYNC" } namespace Type { const codec: () => Codec; } const codec: () => Codec; interface HolePunchTypeFieldEvent { field: '$.type'; value: HolePunch.Type; } interface HolePunchObservedAddressesFieldEvent { field: '$.observedAddresses[]'; index: number; value: Uint8Array; } function encode(obj: Partial): Uint8Array; function decode(buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions): HolePunch; function stream(buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions): Generator; } //# sourceMappingURL=message.d.ts.map