/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ /** * Length-prefixed framing protocol for credential proxy IPC. * * @plan PLAN-20250214-CREDPROXY.P03 * @requirement R5.1, R5.2, R5.3 * @pseudocode analysis/pseudocode/001-framing-protocol.md */ export declare const MAX_FRAME_SIZE = 65536; export declare const PARTIAL_FRAME_TIMEOUT_MS = 5000; export declare class FrameError extends Error { constructor(message: string); } export declare function encodeFrame(payload: Record): Buffer; export interface FrameDecoderOptions { /** * Called when a partial frame times out. The buffer is reset after this * callback returns. Use this to close the connection or log the error. */ onPartialFrameTimeout?: () => void; } export declare class FrameDecoder { private buffer; private partialFrameTimer; private readonly onPartialFrameTimeout?; constructor(options?: FrameDecoderOptions); feed(chunk: Buffer): Array>; reset(): void; private startPartialFrameTimer; private cancelPartialFrameTimer; }