import type { Model } from "@oh-my-pi/pi-ai"; import type { AgentSession } from "../../session/agent-session"; import type { theme as Theme } from "../theme/theme"; type CategoryId = "systemPrompt" | "systemContext" | "systemTools" | "skills" | "messages"; interface CategoryInfo { id: CategoryId; label: string; tokens: number; color: "accent" | "warning" | "success" | "userMessageText" | "customMessageLabel"; glyph: string; } export interface ContextBreakdown { model: Model | undefined; contextWindow: number; categories: CategoryInfo[]; usedTokens: number; autoCompactBufferTokens: number; freeTokens: number; } /** * Compute a breakdown of estimated context usage by category for the active * session and model. */ export declare function computeContextBreakdown(session: AgentSession): ContextBreakdown; /** * Render a colorful context-usage panel as ANSI text. Output is a series of * lines pairing the grid (left) with the legend (right). */ export declare function renderContextUsage(breakdown: ContextBreakdown, theme: typeof Theme): string; export {};