import type { Collection, InferIdType, WithId, Document } from "mongodb"; import type { NestedProjectionOfTSchema } from "mongo-collection-helpers"; export declare class DocumentCache { #private; constructor(collection: Collection, projection: NestedProjectionOfTSchema, dontLoadDocuments: boolean, signal: AbortSignal | undefined); getDocument(id: InferIdType): Promise | null>; setDocument(id: InferIdType, doc: WithId): void; }