/** * Mock Utils Utility * Provides common mock restoration patterns with error handling */ /** * Safely restores a mock with validation * Replaces the common pattern of manual mock restoration with validation * * @param mock - Mock object with mockRestore method * @param context - Context name for error logging */ export declare function safeRestoreMock(mock: any, context: string): void; /** * Restores multiple mocks safely * @param mocks - Array of mock objects * @param context - Context name for error logging */ export declare function safeRestoreMocks(mocks: any[], context: string): void; /** * Creates a mock restore function that can be called later * @param mock - Mock object to restore * @param context - Context name for error logging * @returns Function that restores the mock when called */ export declare function createRestoreFunction(mock: any, context: string): () => void; //# sourceMappingURL=mockUtils.d.ts.map