import { Event, IEventBusModuleService, InternalModuleDeclaration, Logger, ModuleJoinerConfig, ModulesSdkTypes, RemoteQueryFunction, SearchTypes } from "@medusajs/framework/types"; import { ContainerRegistrationKeys, Modules } from "@medusajs/framework/utils"; import { SearchEventRoutes, SearchIndexContext, SearchIndexes, SearchIndexSeedAction, SearchModuleOptions } from "../types"; import { ActiveIndexVersion, ActiveIndexVersionCache } from "../utils/active-version-cache"; import { SearchProviderService } from "./search-provider"; type InjectedDependencies = { logger: Logger; [Modules.EVENT_BUS]: IEventBusModuleService; [ContainerRegistrationKeys.QUERY]: RemoteQueryFunction; searchProviderService: SearchProviderService; searchIndexService: ModulesSdkTypes.IMedusaInternalService; searchIndexVersionService: ModulesSdkTypes.IMedusaInternalService; searchIndexSyncService: ModulesSdkTypes.IMedusaInternalService; }; declare const SearchModuleService_base: import("@medusajs/framework/utils").MedusaServiceReturnType>; export default class SearchModuleService extends SearchModuleService_base implements SearchTypes.ISearchModuleService { protected readonly moduleDeclaration: InternalModuleDeclaration; protected isWorkerMode: boolean; protected readonly logger_: Logger; protected readonly searchProviderService_: SearchProviderService; protected readonly moduleOptions_: SearchModuleOptions; protected readonly indexes_: SearchIndexes; protected readonly activeVersionCache_: ActiveIndexVersionCache; protected readonly context_: SearchIndexContext; protected readonly eventRoutes_: SearchEventRoutes; constructor(container: InjectedDependencies, moduleOptions: SearchModuleOptions, moduleDeclaration: InternalModuleDeclaration); protected fetchActiveVersions_(container: InjectedDependencies): Promise>; protected resolveActiveDefinition_(name: string): Promise; __joinerConfig(): ModuleJoinerConfig; __hooks: { onApplicationStart: () => Promise; }; search>(query: SearchTypes.SearchQuery): Promise>; searchMany(queries: SearchTypes.SearchQuery[]): Promise; upsertDocuments({ index, documents, }: { index: string; documents: SearchTypes.SearchDocument[]; }): Promise; deleteDocuments({ index, filters, }: { index: string; filters: SearchTypes.SearchFilters; }): Promise; ingest(event: Event): Promise; listIndexes(): Promise; listRetrievableFields(index: string): string[]; getIndex(index: string): SearchTypes.ResolvedSearchIndexDefinition; reindex(input?: SearchTypes.SearchReindexInput): Promise; /** * Seeds whatever needs data. Indexes that are not migrated yet are skipped — * creating and migrating physical indexes is the application's job * (e.g. `db:migrate`), not something a booting worker invents. */ protected onApplicationStart_(): Promise; protected createSeedPlan_(): Promise; protected executeSeedPlan_(actions: SearchIndexSeedAction[]): Promise; createIndexMigrationPlan(): Promise; executeIndexMigrationPlan(actions: SearchTypes.SearchIndexMigrationAction[]): Promise; } export {}; //# sourceMappingURL=search-module-service.d.ts.map