import { SearchTypes } from "@medusajs/framework/types"; import { MedusaError } from "@medusajs/framework/utils"; import { SearchIndexContext, SearchIndexRegistry, SearchIndexSeedAction, SearchSeedRuntime } from "../types"; type LockContext = Pick; /** * Which indexes need data, and which version it goes into. The highest version * above the active one is what a migration built for a schema or provider * change; it needs filling and then becoming active. Otherwise an index needs * seeding in place if its active version was never filled, its last attempt * failed, or it holds nothing — the last catching an engine that lost its data * while the record still says ready. */ export declare function createSeedPlan(context: SearchIndexRegistry): Promise; export declare function executeSeedPlan(context: SearchSeedRuntime & LockContext, actions: SearchIndexSeedAction[]): Promise; export declare function reindexIndexes(context: SearchSeedRuntime & LockContext, input?: SearchTypes.SearchReindexInput): Promise; export declare class SearchSeedLockLost extends MedusaError { constructor(message: string); } export {}; //# sourceMappingURL=seeding.d.ts.map