export type Result = { took: number; timed_out: boolean; _shards: { total: number; successful: number; failed: number; }; hits: { total: number; max_score: number; hits?: (HitEntry)[] | null; }; } export type HitEntry = { _index: string; _type: string; _id: string; _score: number; _source: TSource; }