import { WithDeleted } from '../../types/rx-storage'; import type { MongoDBChangeStreamResumeToken, MongoDBCheckpointIterationState, MongoDbCheckpointType } from './mongodb-types'; import { Collection as MongoCollection } from 'mongodb'; export declare function getCurrentResumeToken(mongoCollection: MongoCollection): Promise; export declare function getDocsSinceChangestreamCheckpoint(primaryPath: string, mongoCollection: MongoCollection, /** * MongoDB has no way to start the stream from 'timestamp zero', * we always need a resumeToken */ resumeToken: MongoDBChangeStreamResumeToken, limit: number): Promise<{ docs: WithDeleted[]; nextToken: MongoDBChangeStreamResumeToken; }>; export declare function getDocsSinceDocumentCheckpoint(primaryPath: string, mongoCollection: MongoCollection, limit: number, checkpointId?: string): Promise[]>; export declare function iterateCheckpoint(primaryPath: string, mongoCollection: MongoCollection, limit: number, checkpoint?: MongoDbCheckpointType): Promise>;