type State = { /** * User data. */ data?: T; /** * Status of data loading. */ loading: boolean; /** * Error information. */ error?: unknown; }; /** * @deprecated This package will be deprecated by 2026-07. */ export type Data = State & { /** * reload function. */ reload: () => void; }; /** * Helper function to fetch data with status and error. * * @param fetchDataAsync - async function of how to fetch data * @param options - if autoLoad is true, reload data immediately * @returns data, loading status, error and reload function * * @deprecated This package will be deprecated by 2026-07. * @public */ export declare function useData(fetchDataAsync: () => Promise, options?: { autoLoad: boolean; }): Data; export {}; //# sourceMappingURL=useData.d.ts.map