/** * Mock Management System for Consistent API and Service Mocking - TypeScript Implementation * * This class focuses solely on mock management and lifecycle concerns. * It provides centralized mock management that eliminates duplicate patterns. */ interface MockResponse { status: number; data: any; } interface ConsoleMocks { log: any; error: any; warn: any; restore: () => void; } /** * Mock Management System for Consistent API and Service Mocking * * This class provides centralized mock management that eliminates duplicate * mock patterns across test files. It uses qtests utilities for consistent * mocking while providing advanced mock configuration capabilities. */ declare class MockManager { private mocks; private restorations; constructor(); /** * Registers a mock object by name in the internal store * Rationale: avoid exposing private `mocks` map directly to callers. */ registerMock(name: string, value: any): void; /** * Sets up API client mocks using qtests stubMethod utility */ setupApiClientMocks(customResponses?: Record): void; /** * Sets up console and notification mocks using qtests utilities */ setupConsoleMocks(): ConsoleMocks; /** * Gets a specific mock by name */ getMock(mockName: string): any | null; /** * Clears all mocks and restores original functions */ clearAll(): void; /** * Sets up environment variable mocks */ setupEnvironmentMocks(envVars?: Record): () => void; /** * Sets up HTTP response mocks */ setupHttpMocks(responses?: any[]): void; } export { MockManager }; //# sourceMappingURL=mockManager.d.ts.map