/** * The versioned managed-v1 SDK seam. * * This is intentionally separate from index.ts, whose newline-delimited IPC * protocol is the legacy Bun app contract. The host and this module both own * the managed-v1 length prefix and canonical JSON rules. */ export declare const MANAGED_V1_VERSION: "managed-v1"; export declare const MAX_FRAME_BYTES: number; export type ManagedErrorFamily = "protocol" | "limit" | "epoch" | "app"; export interface ManagedCapabilityRequest { type: "capability_request"; id: string; nonce: string; epoch: number; capability: string; payload: unknown; timeout_ms: number; } export interface ManagedCapabilityResponse { type: "capability_response"; id: string; nonce: string; epoch: number; success: boolean; payload: unknown; } export declare class ManagedProtocolError extends Error { readonly family: ManagedErrorFamily; constructor(family: ManagedErrorFamily, message: string); } export declare function encodeManagedFrame(value: unknown): Buffer; export declare function decodeManagedFrame(frame: Buffer): unknown; export declare class SessionNonce { readonly value: string; readonly version: typeof MANAGED_V1_VERSION; private constructor(); static generate(): SessionNonce; }