/** * Mock executor for testing */ import { Executor, ExecuteOptions, ExecuteResult, StreamOptions, StreamResult } from '../types/index.js'; /** * Configuration for mock responses */ export interface MockResponse { stdout?: string; stderr?: string; exitCode?: number; duration?: number; error?: Error; } /** * Mock executor for testing purposes */ export declare class MockExecutor implements Executor { readonly type: "mock"; private responses; private sequentialResponses; private callCounts; private defaultResponse; /** * Set a mock response for a specific command */ setResponse(command: string, response: MockResponse): void; /** * Alias for setResponse for compatibility */ setMockResponse(command: string, response: MockResponse, callIndex?: number): void; /** * Set the default response for unregistered commands */ setDefaultResponse(response: MockResponse): void; /** * Clear all mock responses */ clear(): void; /** * Execute a command and return mock result */ execute(command: string, args?: string[], _options?: ExecuteOptions): Promise; /** * Stream mock output */ stream(command: string, args?: string[], options?: StreamOptions): StreamResult; /** * Check if a command is available (always true for mock) */ isAvailable(_command: string): Promise; /** * Mock kill (no-op) */ kill(_processId: number | string): Promise; /** * Helper to set up common tool responses */ setupCommonTools(): void; } //# sourceMappingURL=MockExecutor.d.ts.map