import { type PiContextSettings } from "../settings.js"; export type ResolvedThresholds = { reminder: number; reserve: number; warning: number; }; /** * Pure derivation of the thresholds from Pi's reserve: the reminder fires at reserve * plus the pi-context margin, the warning steer at reserve plus WARNING_RUNWAY_TOKENS. * An invalid margin degrades to the default and reports one warning. Automatic * threshold/overflow handling is represented by reset lifecycle boundary drafts; * no compaction summary is generated. */ export declare function deriveThresholds(reserveTokens: number, margins: PiContextSettings): { thresholds: ResolvedThresholds; warnings: string[]; }; /** Countdown excludes the hidden warning runway; unknown usage stays unknown. */ export declare function remainingBudget(remaining: number | null, warning: number): number | null;