import { type AsyncState } from './types'; export interface UseAsyncResult extends AsyncState { readonly refetch: () => Promise; } /** * Consolidates the shared async-lifecycle pattern (state machine + abort + mount guard) used by * every data-fetching hook in this package. * * Callers must provide a **stable** `run` callback — typically wrapped in `useCallback` — along * with the operation identifier used for error reporting. * * @internal */ export default function useAsync(run: (signal: AbortSignal) => Promise, operation: string, options?: { readonly hint?: string | undefined; readonly skip?: boolean | undefined; /** When `true`, data is preserved on error instead of being reset to `null`. */ readonly preserveDataOnError?: boolean | undefined; }): UseAsyncResult; //# sourceMappingURL=useAsync.d.ts.map