import { ReactiveActionState, ReactiveActionStore } from '@solana/kit'; export { isAbortError } from '@solana/kit'; /** * Framework-agnostic action state machine for Solana async work. * * Wraps an async function receiving a fresh `AbortSignal` per call and exposes a * `{ getState, subscribe, dispatch, reset, withSignal }` store that UI frameworks * can bridge into reactive state (Vue composables, React hooks, etc.). * * - Each `dispatch` aborts the previous in-flight call (fresh signal per dispatch). * - Superseded calls reject with an abort error; real failures surface on state. * - `withSignal` composes a caller-provided cancellation source per dispatch * (per-attempt timeouts, shared kill switches). * * @see `createReactiveActionStore` from `@solana/kit`, which this wraps. */ type SolanaActionStore = ReactiveActionStore; declare function createSolanaActionStore(fn: (signal: AbortSignal, ...args: TArgs) => Promise): SolanaActionStore; /** * Snapshot shape bridged into reactive state by framework composables. */ type SolanaActionState = ReactiveActionState; declare function isSolanaActionAborted(error: unknown): boolean; export { createSolanaActionStore, isSolanaActionAborted }; export type { SolanaActionState, SolanaActionStore };