import type { LunaticSuggester } from '../../use-lunatic/type'; export type SearchInfo = LunaticSuggester; export type IndexEntry = { id: string; label: string; [k: string]: any; }; export interface SearchInterface { isIndexed(): boolean; index(data: T[]): Promise; search(q: string): Promise; getFieldsById(id: any): T; }