import type { Codec, DecodeOptions } from 'protons-runtime'; import type { Uint8ArrayList } from 'uint8arraylist'; export interface NoiseExtensions { webtransportCerthashes: Uint8Array[]; streamMuxers: string[]; } export declare namespace NoiseExtensions { const codec: () => Codec; interface NoiseExtensionsWebtransportCerthashesFieldEvent { field: '$.webtransportCerthashes[]'; index: number; value: Uint8Array; } interface NoiseExtensionsStreamMuxersFieldEvent { field: '$.streamMuxers[]'; index: number; value: string; } function encode(obj: Partial): Uint8Array; function decode(buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions): NoiseExtensions; function stream(buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions): Generator; } export interface NoiseHandshakePayload { identityKey: Uint8Array; identitySig: Uint8Array; extensions?: NoiseExtensions; } export declare namespace NoiseHandshakePayload { const codec: () => Codec; interface NoiseHandshakePayloadIdentityKeyFieldEvent { field: '$.identityKey'; value: Uint8Array; } interface NoiseHandshakePayloadIdentitySigFieldEvent { field: '$.identitySig'; value: Uint8Array; } interface NoiseHandshakePayloadExtensionsWebtransportCerthashesFieldEvent { field: '$.extensions.webtransportCerthashes[]'; index: number; value: Uint8Array; } interface NoiseHandshakePayloadExtensionsStreamMuxersFieldEvent { field: '$.extensions.streamMuxers[]'; index: number; value: string; } function encode(obj: Partial): Uint8Array; function decode(buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions): NoiseHandshakePayload; function stream(buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions): Generator; } //# sourceMappingURL=payload.d.ts.map