/** Payload shaping so captured telemetry fits an agent's context window. */ /** Recursively caps the length of every string in a structure. */ export declare function truncateStringsInData(data: unknown, maxLength: number): unknown; /** * Chooses which log entries fit inside a character budget. * * Walks from the newest entry backwards, because when the budget forces a * choice the recent entries are the ones worth keeping. The result is returned * in chronological order. A single oversized entry is truncated rather than * allowed to hide everything around it. */ export declare function selectLogsWithinBudget(logs: readonly T[], budget: number): T[];