import { ChildProcess } from 'child_process'; /** * Path utilities */ export declare class PathUtils { /** * Resolve path relative to workspace */ static resolvePath(filePath: string, workspacePath: string): string; /** * Get file extension */ static getExtension(filePath: string): string; /** * Check if file is a code file */ static isCodeFile(filePath: string, codeExtensions?: string[]): boolean; } /** * String utilities */ export declare class StringUtils { /** * Escape quotes in command strings */ static escapeQuotes(str: string): string; /** * Format output with optional error section */ static formatOutput(stdout: string, stderr?: string, prefix?: string): string; /** * Truncate array of strings with "... and more" message */ static truncateList(items: string[], maxItems?: number): string; } /** * Validation utilities */ export declare class ValidationUtils { /** * Validate required parameters */ static validateRequired(params: Record, requiredFields: string[]): void; /** * Validate file path */ static validatePath(filePath: any): asserts filePath is string; /** * Validate project type */ static validateProjectType(type: string, supportedTypes: string[]): void; } /** * Process information interface */ export interface ProcessInfo { process: ChildProcess; command: string; port?: number; workspace: string; startTime: string; } /** * Process display format */ export interface ProcessDisplay { name: string; command: string; port?: number; pid?: number; workspace: string; startTime: string; } /** * Process utilities */ export declare class ProcessUtils { /** * Create process info object */ static createProcessInfo(process: ChildProcess, command: string, port: number | undefined, workspace: string): ProcessInfo; /** * Format process list for display */ static formatProcessList(processMap: Map): string; } //# sourceMappingURL=utils.d.ts.map