export declare const ASK = 0; export declare const REPLY = 1; export declare const NOTHING = 2; export declare const MAX_BODY = 1048645; export type Frame = { kind: 'ask'; id: number; pk: Uint8Array; box: Uint8Array; } | { kind: 'reply'; id: number; box: Uint8Array; } | { kind: 'nothing'; id: number; }; export declare const askBody: (id: number, pk: Uint8Array, box: Uint8Array) => Uint8Array; export declare const replyBody: (id: number, box: Uint8Array) => Uint8Array; export declare const nothingBody: (id: number) => Uint8Array; export declare const askFrame: (id: number, pk: Uint8Array, box: Uint8Array) => Uint8Array; export declare const replyFrame: (id: number, box: Uint8Array) => Uint8Array; export declare const nothingFrame: (id: number) => Uint8Array; export declare const readBody: (b: Uint8Array) => Frame | null; export declare class FrameReader { #private; get bad(): boolean; push(chunk: Uint8Array): Frame[]; }