/** * "+Nk" turn token-budget directive. * * A standalone `+[k|m]` token in the user's message sets a per-turn * output-token budget surfaced by the `eval` `budget` helper. By default it is * ADVISORY — the model self-limits via `budget.remaining()`. Append `!` * (`+500k!`) to make it a HARD ceiling: eval `agent()` refuses to spawn once the * turn's spend reaches it. Matching is anchored to token boundaries so it does * not fire on prices or version strings embedded in prose. */ export interface TurnBudget { /** Output-token ceiling for the turn. */ total: number; /** Whether the ceiling is enforced (eval `agent()` throws past it) vs advisory. */ hard: boolean; } /** Parse a `+Nk`/`+N`/`+Nm`(`!`) turn-budget directive from `text`, or null when absent. */ export declare function parseTurnBudget(text: string): TurnBudget | null;