import type { CreateIndexesOptions, IndexSpecification } from 'mongodb'; import type { DocumentMetadata, DocumentOptions, DocumentClass } from '../interfaces/document'; export declare const Document: (options?: DocumentOptions) => ClassDecorator; /** * Declare an index on the document's collection. Repeatable; composes with * `@Document({ indexes: [...] })`. Indexes are created by * `MongoConnection.ensureIndexes()` (or automatically with `autoIndex: true`). */ export declare const Index: (keys: IndexSpecification, options?: CreateIndexesOptions) => ClassDecorator; export declare const getDocumentMetadata: (target: DocumentClass) => DocumentMetadata; export declare const getRegisteredDocuments: () => DocumentMetadata[]; export declare const clearDocumentRegistry: () => void; //# sourceMappingURL=document.d.ts.map