UNPKG

adpa-enterprise-framework-automation

Version:

Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe

54 lines 1.59 kB
/** * 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<T>(operation: () => Promise<T>, errorMessage?: string): Promise<T | null>; /** * 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<T extends (...args: any[]) => any>(func: T, delay: number): (...args: Parameters<T>) => void; /** * Sleep utility for delays */ export declare function sleep(ms: number): Promise<void>; //# sourceMappingURL=common.d.ts.map