/** * Spinner and progress indicator utilities */ export interface TaskSpinner { start: (message?: string) => void; stop: (message?: string) => void; message: (message: string) => void; success: (message: string) => void; error: (message: string) => void; } /** * Create a spinner for long-running operations */ export declare const createTaskSpinner: (initialMessage?: string) => TaskSpinner; /** * Run an async task with a spinner */ export declare const withTaskSpinner: (message: string, task: () => Promise, options?: { successMessage?: string | ((result: T) => string); errorMessage?: string | ((error: unknown) => string); }) => Promise; /** * Progress bar for multi-step operations */ export interface ProgressBar { update: (current: number, message?: string) => void; complete: (message?: string) => void; } /** * Create a progress bar */ export declare const createProgressBar: (total: number, label?: string) => ProgressBar; /** * Step indicator for multi-step workflows */ export interface StepIndicator { current: number; total: number; next: (label: string) => void; complete: () => void; } /** * Create a step indicator */ export declare const createStepIndicator: (steps: string[]) => StepIndicator; /** * Task group for running multiple tasks */ export interface TaskGroup { add: (name: string, task: () => Promise) => void; run: () => Promise<{ success: string[]; failed: string[]; }>; } /** * Create a task group */ export declare const createTaskGroup: () => TaskGroup;