import type { IndexEntry, SearchInterface } from './SearchInterface'; import type { LunaticSource } from '../../use-lunatic/type'; /** * This file retains a dictionary of all the search indexed by storeName */ export declare function registerSuggesters(infos: LunaticSource['suggesters'], fetcher: (name: string) => Promise>): void; export type SearchStore = { error: string; } | { error?: null; search: SearchInterface; index: () => Promise; }; export declare function getSearchForStore(storeName: string): { error: string; search?: undefined; index?: undefined; } | { error: null; search: SearchInterface; index: () => Promise; };