import { AxiosError, AxiosResponse } from 'axios'; export declare type ApiResponse = AxiosResponse; export declare type ApiResponseError = AxiosError; export interface Pagination { results: Data[]; view: View; } export interface View { total: number; page: number; itemsPerPage: number; } export interface ISearchResult extends Pagination { aggregations?: { [key: string]: { count: number; id: string; key: string; sub?: { [key: string]: { count: number; id: string; key: string; }; }; }; }; }