import { ProjectContext } from '../types'; import type { ChildProcessWithoutNullStreams } from 'child_process'; import { EventEmitter } from 'events'; export interface ToolResult { success: boolean; message: string; data?: any; error?: string; processId?: string; exitCode?: number; stdout?: string; stderr?: string; } export interface ProcessInfo { id: string; command: string; args: string[]; cwd: string; pid?: number; status: 'running' | 'completed' | 'failed' | 'killed'; startTime: Date; endTime?: Date; process?: ChildProcessWithoutNullStreams; } export interface GitStatus { branch: string; ahead: number; behind: number; staged: string[]; unstaged: string[]; untracked: string[]; conflicted: string[]; clean: boolean; } export interface TestResult { framework: string; total: number; passed: number; failed: number; skipped: number; duration: number; coverage?: { lines: number; functions: number; branches: number; statements: number; }; failures: Array<{ test: string; error: string; file?: string; line?: number; }>; } export interface BuildResult { system: string; success: boolean; duration: number; warnings: string[]; errors: string[]; artifacts: string[]; size?: { before?: number; after: number; change?: number; }; } export interface DependencyInfo { name: string; version: string; type: 'production' | 'development' | 'peer' | 'optional'; vulnerabilities?: Array<{ severity: 'low' | 'moderate' | 'high' | 'critical'; title: string; description: string; patched?: string; }>; } export declare class ToolOrchestrator extends EventEmitter { private logger; private processes; private projectContext; private currentDirectory; constructor(projectContext?: ProjectContext); gitStatus(): Promise; gitCommit(message: string, autoStage?: boolean): Promise; gitBranch(action: 'list' | 'create' | 'switch' | 'delete', branchName?: string): Promise; gitPull(remote?: string, branch?: string): Promise; gitPush(remote?: string, branch?: string, setUpstream?: boolean): Promise; gitDiff(target1?: string, target2?: string, filePath?: string): Promise; gitLog(count?: number, oneline?: boolean): Promise; runTests(framework?: string, pattern?: string, watch?: boolean): Promise; runSpecificTest(testPath: string, testCase?: string): Promise; generateTests(filePath: string, testPath?: string): Promise; testCoverage(): Promise; buildProject(target?: string, watch?: boolean): Promise; lintProject(fix?: boolean): Promise; formatCode(pattern?: string): Promise; typeCheck(): Promise; installDependencies(packageManager?: string): Promise; addDependency(packages: string[], dev?: boolean): Promise; removeDependency(packages: string[]): Promise; auditDependencies(): Promise; runScript(scriptName: string): Promise; startDevServer(port?: number, host?: string): Promise; stopDevServer(): Promise; checkServerStatus(): Promise; private startWatchProcess; private startSecureWatchProcess; stopProcess(id: string): Promise; listProcesses(): Promise; getProcesses(): ProcessInfo[]; private detectTestFramework; private detectBuildSystem; private detectLinter; private detectFormatter; private detectPackageManager; private detectDevServerCommand; private getTestCommand; private getBuildCommand; private parseTestOutput; private parseBuildOutput; cleanup(): Promise; } //# sourceMappingURL=tool-orchestrator.d.ts.map