export interface AsyncState { run: (...args: any[]) => Promise; data: T | null; error: any; loading: boolean; reset: () => void; } /** * A hook that wraps an async function with state management. * @param fn The async function to wrap * @param deps Optional dependencies array that will trigger function reference update * @returns AsyncState object containing run function, data, error, loading state, and reset function */ export declare function useAsync(fn: (...args: any[]) => Promise, deps?: any[]): AsyncState;