import type { ToolResult } from '../../types/index.js';
import type { CompactDecision } from '../../types/compact/compact-mode.js';
/**
 * Apply compact mode formatting to a ToolResult.
 * - Truncates text content blocks to tokenBudget
 * - Preserves structuredContent (essential data: status, scores, blockers)
 * - Adds _meta.compactMode and _meta.contextUsed
 */
export declare function applyCompactMode(result: ToolResult, decision: CompactDecision): ToolResult;
//# sourceMappingURL=compact-middleware.d.ts.map