export interface MockExecaResponse { error?: Error & { exitCode?: number; stderr?: string; stdout?: string; }; exitCode?: number; stderr?: string; stdout?: string; } export declare class MockExecaBuilder { private defaultResponse; private responses; /** * Build the mock function */ build(): import("vitest").Mock<(command: string, args?: string[]) => Promise>; /** * Mock a datamitsu command */ mockDatamitsuCommand(args: string[], response: MockExecaResponse): this; /** * Mock a git command (convenience method) */ mockGitCommand(args: string, response: MockExecaResponse): this; /** * Mock a response for a specific command and args combination */ mockResponse(command: string, args: string[], response: MockExecaResponse): this; /** * Mock a SOPS command */ mockSopsCommand(args: string[], response: MockExecaResponse): this; /** * Mock the tty command */ mockTtyCommand(response?: MockExecaResponse): this; /** * Set default response for unmocked commands */ setDefaultResponse(response: MockExecaResponse): this; private createKey; } /** * Create a new mock execa builder */ export declare function createMockExeca(): MockExecaBuilder;