/** * Spinner and progress utilities for CLI * Hand-rolled for minimal dependencies */ import type { Colors } from './colors.js'; /** * Simple terminal spinner for progress indication * Only shows when stderr is a TTY */ export declare class Spinner { private readonly colors; private readonly quiet; private readonly isTTY; private message; private frameIndex; private timer; constructor(colors: Colors, quiet: boolean); /** * Start the spinner with a message */ start(message: string): void; /** * Update the spinner message */ update(message: string): void; /** * Stop spinner with success message */ success(message: string): void; /** * Stop spinner with error message */ fail(message: string): void; /** * Stop spinner with warning message */ warn(message: string): void; /** * Stop the spinner without a message */ stop(): void; private render; } /** * Format a number with thousands separators */ export declare function formatNumber(n: number): string; /** * Format a duration in seconds */ export declare function formatDuration(seconds: number): string; //# sourceMappingURL=spinner.d.ts.map