UNPKG

claude-usage-tracker

Version:

Advanced analytics for Claude Code usage with cost optimization, conversation length analysis, and rate limit tracking

50 lines 1.42 kB
import chalk from "chalk"; export interface SparklineOptions { height?: number; min?: number; max?: number; color?: (value: number, max: number) => typeof chalk; } export declare class TerminalCharts { /** * Create a sparkline chart for array of numbers */ static sparkline(data: number[], width: number, options?: SparklineOptions): string; /** * Create a horizontal bar chart */ static barChart(data: Array<{ label: string; value: number; color?: typeof chalk; }>, maxWidth: number, options?: { showPercentageOfTotal?: boolean; }): string[]; /** * Create a simple line chart using ASCII */ static lineChart(data: number[], width: number, height: number, options?: { showAxes?: boolean; color?: typeof chalk; }): string[]; /** * Create a heat map for hourly usage */ static heatMap(hourlyData: number[], options?: { width?: number; showLabels?: boolean; }): string[]; /** * Create a progress bar */ static progressBar(current: number, total: number, width: number, options?: { showPercentage?: boolean; color?: typeof chalk; bgColor?: typeof chalk; }): string; /** * Resample data to fit a specific width */ private static resampleData; } //# sourceMappingURL=terminal-charts.d.ts.map