UNPKG

@hhoangphuoc/escape-room-cli

Version:

A CLI for playing AI-generated escape room games. Install globally with: npm install -g @hhoangphuoc/escape-room-cli

28 lines (27 loc) 935 B
/** * Shared formatting utilities for CLI components */ /** * Format token counts with truncation (12k, 1.2M format) */ export declare const formatTokens: (tokens: number | undefined) => string; /** * Format cost amounts with consistent precision */ export declare const formatCost: (cost: number | undefined) => string; /** * Get color for cost display based on amount */ export declare const getCostColor: (cost: number | undefined) => string; /** * Get color for context warning levels */ export declare const getWarningColor: (level: "none" | "low" | "medium" | "high" | "critical") => string; /** * Calculate context warning level from size percentage */ export declare const calculateContextWarning: (currentSize: number, maxSize: number) => "none" | "low" | "medium" | "high" | "critical"; /** * Format percentage with consistent precision */ export declare const formatPercentage: (percentage: number) => string;