export declare enum FetchState { Idle = "idle", Loading = "loading", Done = "done" } export type FetchResponse = Omit & { syncArrayBuffer: () => ArrayBuffer; json: () => any; text: () => string; yaml: () => any; }; export declare function useFetch(url?: string, options?: RequestInit): { state: FetchState; response: FetchResponse; error: Error; refetch: () => () => void; };