/** * Lightweight savings receipts for caveman compression (and related prompt * shaping). No /healthz parity with transponder — just process counters and * an opt-in log line under CURSOR_OPENCODE_SAVINGS=1 (also fires when * CURSOR_OPENCODE_DEBUG_CODEMODE=1). Lines go to the plugin log file * (see src/log.ts), not stderr/TUI. */ export interface SavingsReceipts { /** Bytes removed from client-tool description prose (code-description). */ cavemanSaved: number; /** Bytes removed from the OpenCode-supplied system prompt (proxy Run build). */ cavemanSystemSaved: number; /** Number of compressProse calls that saved >0 bytes (tools). */ cavemanToolCalls: number; /** Number of compressProse calls that saved >0 bytes (system). */ cavemanSystemCalls: number; } export declare function getSavingsReceipts(): SavingsReceipts; export declare function resetSavingsReceipts(): void; /** Record tool-description prose savings (code-description path). */ export declare function noteCavemanToolSavings(savedBytes: number): void; /** Record system-prompt prose savings (proxy Run build). */ export declare function noteCavemanSystemSavings(savedBytes: number): void; /** * Emit a one-line summary receipt (call at turn boundaries or from tests). * No-op unless SAVINGS/DEBUG_CODEMODE is on. */ export declare function logSavingsReceipt(label?: string, env?: Record): void;