export type UseFetchStateProps = { isError: boolean; isLoading: boolean; msg: { code: number; msg: string; }; data?: T; isFirstFetch: boolean; }; export declare function useFetch(url?: string, options?: { method: "POST" | "GET"; body: unknown | null; }): { data: DataStructure | undefined; isLoading: boolean; isError: boolean; isFirstFetch: boolean; msg: { code: number; msg: string; }; };