/** * Utility functions */ /** * Ensure a directory exists and return its absolute path */ export declare function ensureDirectory(path: string): Promise; /** * Check if a file exists */ export declare function fileExists(path: string): Promise; /** * Format duration in human readable format */ export declare function formatDuration(ms: number): string; /** * Format file size in human readable format */ export declare function formatFileSize(bytes: number): string; /** * Retry a function with exponential backoff */ export declare function retry(fn: () => Promise, maxRetries?: number, delay?: number): Promise; /** * Timeout wrapper for promises */ export declare function withTimeout(promise: Promise, timeoutMs: number): Promise; /** * Get current timestamp in ISO format */ export declare function getTimestamp(): string; /** * Sleep for specified milliseconds */ export declare function sleep(ms: number): Promise; /** * Validate URL format */ export declare function isValidUrl(url: string): boolean; /** * Sanitize filename for filesystem */ export declare function sanitizeFilename(filename: string): string; /** * Get home directory path */ export declare function getHomeDir(): string; /** * Get temporary directory path */ export declare function getTempDir(): string; //# sourceMappingURL=index.d.ts.map