/** * Common Command Utilities * Shared utility functions for CLI commands */ /** * Get package version from package.json */ export declare function getPackageVersion(): string; /** * Format duration in milliseconds to human readable */ export declare function formatDuration(ms: number): string; /** * Create progress indicator */ export declare function createProgressIndicator(current: number, total: number, description?: string): string; /** * Safely execute async operation with error handling */ export declare function safeExecute(operation: () => Promise, errorMessage?: string): Promise; /** * Check if running in quiet mode from CLI args */ export declare function isQuietMode(): boolean; /** * Check if running in verbose mode from CLI args */ export declare function isVerboseMode(): boolean; /** * Log with timestamp and level */ export declare function logWithLevel(level: 'info' | 'warn' | 'error', message: string, ...args: any[]): void; /** * Create a simple spinner for async operations */ export declare class SimpleSpinner { private timer?; private frames; private index; private text; constructor(text?: string); start(): void; stop(finalText?: string): void; updateText(text: string): void; } /** * Debounce function for rate limiting */ export declare function debounce any>(func: T, delay: number): (...args: Parameters) => void; /** * Sleep utility for delays */ export declare function sleep(ms: number): Promise; //# sourceMappingURL=common.d.ts.map