import { type AsyncState, type UseAsyncActions, type UseAsyncMeta } from '../useAsync/index.js'; export type UseAsyncAbortableActions = { abort: () => void; reset: () => void; } & UseAsyncActions; export type UseAsyncAbortableMeta = { abortController: AbortController | undefined; } & UseAsyncMeta; export type ArgsWithAbortSignal = [AbortSignal, ...Args]; export declare function useAsyncAbortable(asyncFn: (...params: ArgsWithAbortSignal) => Promise, initialValue: Result): [ AsyncState, UseAsyncAbortableActions, UseAsyncAbortableMeta ]; export declare function useAsyncAbortable(asyncFn: (...params: ArgsWithAbortSignal) => Promise, initialValue?: Result): [ AsyncState, UseAsyncAbortableActions, UseAsyncAbortableMeta ];