import { SearchTypes } from "@medusajs/types";
/**
 * Declares a search index. Like `defineLink`, the file registers itself on
 * import: the application loads every file under `search/` and hands what was
 * registered to the Search Module as its `indexes` option, so the module has one
 * input rather than a registry and an option that can disagree.
 *
 * `fields` accepts either plain JSON field definitions or a schema from
 * `search.define({ ... })`. With a schema, the documents `seed` yields are
 * type-checked against the declared fields.
 */
export declare function defineSearchIndex<Fields extends SearchTypes.SearchIndexFieldsInput>(definition: SearchTypes.SearchIndexDefinitionInput<Fields>): SearchTypes.SearchIndexDefinition;
//# sourceMappingURL=define-search-index.d.ts.map