import type { Func } from 'mocha'; import type { RxCollection } from '../../types'; import type { RxReplicationState } from '../replication/index.ts'; export declare function testMultipleTimes(times: number, title: string, test: Func): void; export declare function ensureCollectionsHaveEqualState(c1: RxCollection, c2: RxCollection, logContext?: string): Promise; /** * Waits until the collections have the equal state. */ export declare function awaitCollectionsHaveEqualState(c1: RxCollection, c2: RxCollection, logContext?: string, timeout?: number): Promise; /** * Deletes all locally stored IndexedDB databases. * Noop if IndexedDB is not available (e.g. in Node.js) * or if the .databases() method is not supported. */ export declare function clearAllLocalIndexedDB(): Promise; /** * Deletes all files and directories stored in the * Origin Private File System (OPFS). * Noop if OPFS is not available (e.g. in Node.js). */ export declare function clearAllLocalOPFS(maxRetries?: number, delayMs?: number): Promise; /** * Clears all localStorage data. * Noop if localStorage is not available (e.g. in Node.js). */ export declare function clearAllLocalStorage(): Promise; export declare function ensureReplicationHasNoErrors(replicationState: RxReplicationState): void;