claude-monitor
Version:
Real-time terminal monitoring tool for Claude AI token usage
61 lines • 2.34 kB
TypeScript
import { z } from 'zod';
import type { Settings } from '../types/index.js';
export declare const CLIArgsSchema: z.ZodObject<{
plan: z.ZodOptional<z.ZodEnum<["pro", "max5", "max20", "custom"]>>;
timezone: z.ZodOptional<z.ZodString>;
theme: z.ZodOptional<z.ZodEnum<["light", "dark", "auto"]>>;
'time-format': z.ZodOptional<z.ZodEnum<["12h", "24h", "auto"]>>;
'custom-limit': z.ZodOptional<z.ZodNumber>;
'refresh-rate': z.ZodOptional<z.ZodNumber>;
'refresh-per-second': z.ZodOptional<z.ZodNumber>;
clear: z.ZodOptional<z.ZodBoolean>;
version: z.ZodOptional<z.ZodBoolean>;
debug: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
theme?: "auto" | "light" | "dark" | undefined;
timezone?: string | undefined;
plan?: "pro" | "max5" | "max20" | "custom" | undefined;
'time-format'?: "auto" | "12h" | "24h" | undefined;
'custom-limit'?: number | undefined;
'refresh-rate'?: number | undefined;
'refresh-per-second'?: number | undefined;
clear?: boolean | undefined;
version?: boolean | undefined;
debug?: boolean | undefined;
}, {
theme?: "auto" | "light" | "dark" | undefined;
timezone?: string | undefined;
plan?: "pro" | "max5" | "max20" | "custom" | undefined;
'time-format'?: "auto" | "12h" | "24h" | undefined;
'custom-limit'?: number | undefined;
'refresh-rate'?: number | undefined;
'refresh-per-second'?: number | undefined;
clear?: boolean | undefined;
version?: boolean | undefined;
debug?: boolean | undefined;
}>;
export declare class LastUsedParams {
private configDir;
private paramsFile;
constructor(configDir?: string);
save(settings: Settings): void;
load(): Record<string, unknown>;
clear(): void;
exists(): boolean;
}
export declare class SettingsManager {
private lastUsedParams;
private settings;
constructor();
private getDefaultSettings;
private detectSystemTimeFormat;
private detectSystemTimezone;
loadWithCLI(cliArgs: Record<string, unknown>): Settings;
private mapLastUsedToSettings;
private mapCLIToSettings;
private detectTerminalTheme;
getSettings(): Settings;
updateSettings(updates: Partial<Settings>): Settings;
}
export declare const settingsManager: SettingsManager;
//# sourceMappingURL=settings.d.ts.map