interface AsyncActionState<Args extends unknown[]> {
	isPending: boolean;
	error: unknown;
	execute: (...args: Args) => Promise<void>;
	clearError: () => void;
}
/**
* Wraps an async callback with pending and error state tracking.
*
* - `isPending` is true while the action is executing
* - `error` holds the error from the last rejection (cleared on next execute or via clearError)
* - `execute` calls the action with pending/error bookkeeping
* - `clearError` resets the error to undefined
*/
export declare function useAsyncAction<Args extends unknown[]>(action: (...args: Args) => Promise<void> | void): AsyncActionState<Args>;
export {};
