type MongoDbLike = { databaseName?: string; command: (command: Record) => Promise; }; export type SearchTextStageOptions = { index: string; query: string; path: string | string[]; highlightPath?: string | string[]; }; export type SearchTextStage = { $search: { index: string; text: { query: string; path: string | string[]; }; highlight?: { path: string | string[]; }; }; }; export declare const buildSearchTextStage: (options: SearchTextStageOptions) => SearchTextStage; export declare const searchMetaProjection: () => { readonly score: { readonly $meta: "searchScore"; }; readonly highlights: { readonly $meta: "searchHighlights"; }; }; export type EnsureSearchIndexParams = { db: MongoDbLike; collection: string; name: string; definition: Record; }; export declare const ensureSearchIndex: (params: EnsureSearchIndexParams) => Promise<{ created: boolean; }>; export {}; //# sourceMappingURL=index.d.ts.map