import { Dispatch } from 'react'; import { END_LOADING, RESET_STATE, SEARCH_DATA, SET_INPUT, START_LOADING } from '../src/const'; export declare type Action = { type: typeof SET_INPUT | typeof START_LOADING | typeof END_LOADING | typeof SEARCH_DATA | typeof RESET_STATE; payload?: any; }; export interface State { isLoading: boolean; searchData: any[]; input: string; } export declare type ContextType = { suggestions: any[]; isLoading: boolean; input: string; dispatch: Dispatch | undefined; startLoading: VoidFunction; endLoading: VoidFunction; isResultsEmpty: boolean; resetState: VoidFunction; };