/** * Spinner - Progress spinners * * Provides animated spinners for long-running operations. * * @requirements 29.1 */ /** * Spinner configuration options */ export interface SpinnerOptions { /** Spinner text */ text?: string; /** Spinner color */ color?: 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray'; /** Whether to show spinner (false in CI mode) */ enabled?: boolean; } /** * Spinner wrapper for consistent CLI feedback */ export declare class Spinner { private spinner; private enabled; constructor(options?: SpinnerOptions); /** * Start the spinner with optional text */ start(text?: string): this; /** * Stop the spinner with a success message */ succeed(text?: string): this; /** * Stop the spinner with a failure message */ fail(text?: string): this; /** * Stop the spinner with a warning message */ warn(text?: string): this; /** * Stop the spinner with an info message */ info(text?: string): this; /** * Stop the spinner without a status symbol */ stop(): this; /** * Update the spinner text */ text(text: string): this; /** * Update the spinner color */ color(color: 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray'): this; /** * Check if spinner is currently spinning */ get isSpinning(): boolean; } /** * Create a new spinner instance */ export declare function createSpinner(textOrOptions?: string | SpinnerOptions): Spinner; /** * Run an async operation with a spinner */ export declare function withSpinner(text: string, operation: () => Promise, options?: { successText?: string | ((result: T) => string); failText?: string | ((error: Error) => string); }): Promise; /** * Pre-configured spinners for common operations */ export declare const spinners: { /** * Spinner for scanning operations */ scanning(text?: string): Spinner; /** * Spinner for analysis operations */ analyzing(text?: string): Spinner; /** * Spinner for loading operations */ loading(text?: string): Spinner; /** * Spinner for saving operations */ saving(text?: string): Spinner; /** * Spinner for checking operations */ checking(text?: string): Spinner; }; /** * Status indicators for non-spinner output */ export declare const status: { success(message: string): void; error(message: string): void; warning(message: string): void; info(message: string): void; pending(message: string): void; }; //# sourceMappingURL=spinner.d.ts.map