/** * Check if a file exists */ export declare function fileExists(filePath: string): boolean; /** * Read file content safely */ export declare function readFile(filePath: string): string | null; /** * Write file content safely */ export declare function writeFile(filePath: string, content: string): boolean; /** * Get file size in bytes */ export declare function getFileSize(filePath: string): number; /** * Format bytes to human readable format */ export declare function formatBytes(bytes: number): string; /** * Format duration in milliseconds to human readable format */ export declare function formatDuration(ms: number): string; /** * Normalize file path for cross-platform compatibility */ export declare function normalizePath(filePath: string): string; /** * Get relative path from base directory */ export declare function getRelativePath(filePath: string, baseDir: string): string; /** * Check if path is a directory */ export declare function isDirectory(dirPath: string): boolean; /** * Get all files in directory recursively */ export declare function getFilesRecursively(dir: string, extensions?: string[]): string[]; /** * Debounce function */ export declare function debounce any>(func: T, wait: number): (...args: Parameters) => void; /** * Create a progress reporter */ export declare class ProgressReporter { private current; private total; private startTime; constructor(total: number); update(current: number): void; increment(): void; finish(): void; private render; } /** * Simple logger with different levels */ export declare class Logger { private static level; static setLevel(level: 'debug' | 'info' | 'warn' | 'error'): void; static debug(message: string, ...args: any[]): void; static info(message: string, ...args: any[]): void; static warn(message: string, ...args: any[]): void; static error(message: string, ...args: any[]): void; private static shouldLog; } /** * Validate CSS selector */ export declare function isValidCSSSelector(selector: string): boolean; /** * Extract class names from a CSS selector */ export declare function extractClassNames(selector: string): string[]; /** * Extract ID names from a CSS selector */ export declare function extractIdNames(selector: string): string[]; /** * Check if selector contains pseudo-classes or pseudo-elements */ export declare function hasPseudoSelectors(selector: string): boolean; /** * Check if selector contains attribute selectors */ export declare function hasAttributeSelectors(selector: string): boolean; /** * Normalize CSS selector for comparison */ export declare function normalizeSelector(selector: string): string; /** * Calculate string similarity (Levenshtein distance) */ export declare function calculateSimilarity(str1: string, str2: string): number; //# sourceMappingURL=index.d.ts.map