import { firestore } from "firebase-admin"; /** * Represents a document range that a single worker is responsible for. * 'start' and 'end' are paths to documents (the documents don't have to exist). */ export interface Slice { start: string; end: string; } /** * Each worker writes these stats at the end of successful run. */ export interface WorkerStats { lastSuccessfulRun: number; shardsAggregated: number; splits: string[]; rounds: number; roundsCapped: number; } export declare function isUpdatedFrequently(shard: firestore.DocumentSnapshot): boolean; /** * Partials are updated by appending to their internal "_updates_" array. * It grows unbounded and requires periodic compaction. This function * checks if partial shards has grown too big. */ export declare function containsManyUpdates(partial: firestore.DocumentSnapshot): boolean; /** * Constructs a collection group query to read all shards within provided range. */ export declare function queryRange(db: firestore.Firestore, collectionId: string, start: string, end: string, limit: number): firestore.Query; //# sourceMappingURL=common.d.ts.map