declare type useFetchParams = { cacheKey?: string; expiryTime?: number; initialData: T; isJsonP?: boolean; options?: RequestInit; url: string; }; declare function useFetch({ cacheKey, expiryTime, initialData, isJsonP, options, url, }: useFetchParams): { abort: () => void; start: () => void; data: T; error?: Error | undefined; loading: boolean; canceled: boolean; }; export default useFetch;