import type { AgentSessionContextWindowState } from "./types";
export declare function formatContextBreakdownLabel(key: string): string;
export type ContextBreakdownRow = {
    key: string;
    label: string;
    tokens: number;
    /** Share of the whole context window in percent */
    percent: number;
    isFree?: boolean;
};
/**
 * Turns the per-category context breakdown into display rows sorted by size,
 * with a trailing "Free space" row. The breakdown snapshot may be slightly
 * older than the latest usage value (e.g. a totals-derived fallback update),
 * so the categories are rescaled to sum to the displayed usage.
 */
export declare function buildContextBreakdownRows(status: NonNullable<AgentSessionContextWindowState>): ContextBreakdownRow[];
