/** * CLI Limit Helpers * * Pure formatter for tier-limit-reached error messages. Extracted from cli.ts * so the "limit=0 means action disabled, not exhausted" branch is unit-testable * without invoking commander or process.exit. * * Per NinSys API v2.20.2: free tier returns `{ allowed: false, limit: 0 }` for * `migration` (now disabled for free). Without distinguishing limit=0 from * limit>0, users see "(0/0). Upgrade your plan" — looks like a UI bug. * * @since v2.11.62 — NinSys API v2.20.2 compatibility */ import type { UsageAction } from './core/tier/usage-service.js'; /** * Format a limit-reached error message for the CLI. * * - `limit === 0` → action is disabled for this tier (e.g. free can't migrate). * Shows an upgrade-required message rather than "0 of 0 used". * - `limit > 0` → daily limit exhausted, standard upgrade prompt. */ export declare function formatLimitReachedMessage(action: UsageAction, current: number, limit: number): string; //# sourceMappingURL=cli-limit-helpers.d.ts.map