/** * Pure presentation helpers for the budget tab: money formatting and one * scope row's tone. Pure functions of the wire payload — replay-safe and * unit-testable without a browser. * * @module dsh-budget/client/present */ import type { BudgetStatus, ScopeLine } from '../wire.js'; /** One scope row's bar tone. */ export type BudgetTone = 'ok' | 'warn' | 'over'; /** Format one USD amount through the snapshot's display currency. */ export declare function formatMoney(status: BudgetStatus, usd: number): string; /** The tone for one scope line. */ export declare function scopeTone(line: ScopeLine, warnRatio: number, blocked: boolean): BudgetTone; /** The bar width (percent, 0..100) for one scope line. */ export declare function scopePercent(line: ScopeLine): number; /** Local wall-clock time for one alert timestamp. */ export declare function formatAlertTime(at: number): string; //# sourceMappingURL=present.d.ts.map