export type IndexBase = { type: IndexType; load(indexRootUrl: string, valueHint: QueryType): Promise; search(query: QueryType, queryOptions?: any): Promise>; }; export enum IndexType { numeric = "numeric", enum = "enum", text = "text" } export const indexTypes = Object.keys(IndexType);