/** * Creates a mock function and registers it for tracking * @param implementation Optional implementation for the mock function * @returns Mock function */ export declare function createMockFunction(implementation?: (...args: any[]) => any): any; /** * Creates a spy on an object's method and registers it for tracking * @param object Object to spy on * @param methodName Method name to spy on * @param accessType Optional access type for property accessors * @returns Spy function */ export declare function createSpyFunction(object: any, methodName: any, accessType?: any): any; /** * Clears all mocks */ export declare function clearAllMocks(): void; /** * Resets all mocks */ export declare function resetAllMocks(): void; /** * Restores all mocks */ export declare function restoreAllMocks(): void; /** * Checks if a function is a mock * @param fn Function to check * @returns True if the function is a mock, false otherwise */ export declare function isMockFunction(fn: any): boolean; /** * Require the actual module * @param moduleName Module name to require * @returns Actual module */ export declare function requireActual(moduleName: string): any; /** * Require a mocked module * @param moduleName Module name to require * @returns Mocked module */ export declare function requireMock(moduleName: string): any; /** * Creates all the mock-related functions * @returns Object containing all mock-related functions */ export declare function createMockFunctions(): { fn: typeof createMockFunction; spyOn: typeof createSpyFunction; clearAllMocks: typeof clearAllMocks; resetAllMocks: typeof resetAllMocks; restoreAllMocks: typeof restoreAllMocks; isMockFunction: typeof isMockFunction; requireActual: typeof requireActual; requireMock: typeof requireMock; };