import type { Event, McpEvent } from '../types'; export declare const MAX_DEPTH = 10; export declare const MAX_BREADTH = 100; export declare const MAX_STRING_LENGTH = 32768; export declare const MAX_EVENT_BYTES = 102400; /** * Recursively normalizes a value, handling: * - String truncation (> MAX_STRING_LENGTH) * - Non-serializable values (functions, symbols, undefined, BigInt, NaN, Infinity) * - Date objects -> ISO string * - Circular reference detection * - Depth limiting * - Breadth limiting */ export declare function normalize(input: unknown, depth?: number, maxBreadth?: number, maxStringLength?: number): unknown; /** * Applies layered truncation to an event: * 1. Field-level string limits (userIntent, resourceName, metadata fields, error.message) * 2. Error frame limiting (first 25 + last 25 if > 50) * 3. Response content text limits (32KB per text block) * 4. Recursive normalization on user-controlled fields * 5. Size-targeted truncation (progressive depth reduction + last-resort string truncation) */ export declare function truncateEvent(event: T): T; //# sourceMappingURL=truncation.d.ts.map