import type { NeoAccent } from './neopop'; export declare function formatNumber(n: number): string; export declare function formatUsd(n: number): string; /** Tight axis label — never wider than five glyphs. */ export declare function formatAxisUsd(n: number): string; export declare function formatPct(n: number): string; /** `2026-03-04` -> `Mar 4`. Parsed as a local date so no timezone drift. */ export declare function formatDayLabel(iso: string): string; export declare function formatDayLong(iso: string): string; export type AuthBucket = 'api' | 'oauth' | 'subscription'; export declare const AUTH_LABEL: Record; /** * Blue = metered spend, lime = covered by an OAuth plan, yellow = flat-rate * subscription. Coral stays reserved for errors and regressions. */ export declare const AUTH_ACCENT: Record; export declare const AUTH_BUCKETS: AuthBucket[]; /** Provider/model `authType` values collapse into the three billing buckets. */ export declare function bucketOf(authType: string): AuthBucket; export declare function authTag(authType: string): string; /** * Prompt-token counts, split the way the server stores them: `inputTokens` * excludes cache reads and cache writes, so the three add up to the full * prompt. */ export interface CacheCounts { inputTokens: number; cachedInputTokens: number; cacheCreationInputTokens: number; } /** Total prompt tokens, cached and uncached. */ export declare function promptTokens(counts: CacheCounts): number; /** * Share of prompt tokens served from the provider cache, as a percentage. * Returns `null` when there were no prompt tokens at all, which is distinct * from a genuine 0% hit rate. */ export declare function cacheHitRate(counts: CacheCounts): number | null; /** Warm caches are good, so the scale runs coral → yellow → lime. */ export declare function cacheAccent(rate: number): NeoAccent; /** Signed percentage change, or `null` when the baseline is empty. */ export declare function deltaPct(current: number, previous: number): number | null; export declare function formatDelta(pct: number): string; //# sourceMappingURL=format.d.ts.map