/** * TODO: Compare DX with useAPI * Use API hook with similar style to other react hooks like useMemo * const {response, loading, refresh} = useThunk(() => {new Promise(resolve => resolve("arrow function changes everytime")}, [deps]); * @param thunk * @param deps */ export declare function useThunk(thunk: () => Promise, deps: any[]): { response: Response | null; loading: boolean; refresh: () => void; };