/** * Sets the current global retry count for tests * @param count Number of times to retry failed tests */ declare function setGlobalRetryCount(count: number): void; /** * Gets the current retry count (either from current describe block or global) */ declare function getCurrentRetryCount(): number; /** * Pushes a new describe block onto the stack * @param name Name of the describe block */ declare function pushDescribeBlock(name: string): void; /** * Pops the current describe block from the stack */ declare function popDescribeBlock(): void; /** * Wraps the original test function to implement retry logic * @param testFn Original test function from Node.js * @returns Wrapped test function with retry capability */ declare function withRetries(testFn: any): (name: string, options?: any, fn?: Function) => any; /** * Enhances the describe function to track describe blocks for retry context * @param describeFn Original describe function * @returns Enhanced describe function that tracks blocks for retry context */ declare function enhanceDescribeFunction(describeFn: any): any; /** * Adds the retryTimes method to the test function * @param testFn Test function to enhance * @returns Enhanced test function with retryTimes method */ declare function addRetryTimes(testFn: any): any; export declare const testRetries: { setGlobalRetryCount: typeof setGlobalRetryCount; getCurrentRetryCount: typeof getCurrentRetryCount; pushDescribeBlock: typeof pushDescribeBlock; popDescribeBlock: typeof popDescribeBlock; withRetries: typeof withRetries; enhanceDescribeFunction: typeof enhanceDescribeFunction; addRetryTimes: typeof addRetryTimes; }; export {};