import type { Collection, CollectionInfo, Db } from "mongodb"; /** * Clear all documents from a collection * @param collection The MongoDB collection to clear */ export declare function clearCollection(collection: Collection): Promise; /** * Clear all documents from all collections in a database * @param db The MongoDB database */ export declare function clearAllCollections(db: Db): Promise; /** * Check if a collection exists in the list of collections * @param collections List of collection information * @param name Name of the collection to check */ export declare function collectionExistInDb(collections: CollectionInfo[], name: string): boolean; /** * Create a collection if it doesn't already exist * @param db The MongoDB database * @param name Name of the collection to create */ export declare function createCollectionIfNotExists(db: Db, name: string): Promise; //# sourceMappingURL=utils.d.ts.map