import type { Document } from '../bson'; import type { Collection } from '../collection'; import type { Db } from '../db'; import type { ReadPreference } from '../read_preference'; import type { ClientSession } from '../sessions'; import { Callback } from '../utils'; /** @public */ export interface IndexInformationOptions { full?: boolean; readPreference?: ReadPreference; session?: ClientSession; } /** * Retrieves this collections index info. * * @param db - The Db instance on which to retrieve the index info. * @param name - The name of the collection. */ export declare function indexInformation(db: Db, name: string, callback: Callback): void; export declare function indexInformation(db: Db, name: string, options: IndexInformationOptions, callback?: Callback): void; export declare function prepareDocs(coll: Collection, docs: Document[], options: { forceServerObjectId?: boolean; }): Document[]; //# sourceMappingURL=common_functions.d.ts.map