import type { UsageStats } from "../types/flow.js"; /** Rough context size before the child prompt is built (fork + intent + activation). */ export declare function computeInitialContextTokens(sharedContext: { totalTokens?: number; } | undefined, intent: string, prompt?: string, activationOverhead?: number): number; /** * Resolve the context token count to show in flow/trace headers. * Prefers live flow usage, then forked shared-context snapshot, then a coarse * fallback from per-turn input+output when providers omit totalTokens. */ export declare function resolveDisplayContextTokens(usage: Pick, sharedContext?: { totalTokens: number; }): number; /** Merge streaming context estimate into usage (max with baseline). */ export declare function mergeStreamingContextTokens(usage: Pick, ctxEstimate: number, sharedContext?: { totalTokens: number; }): number; /** Format a compression level as a short indicator for the TUI dashboard. */ export declare function formatCompressionIndicator(level?: string): string; //# sourceMappingURL=context-display.d.ts.map