import type { AnyFunc } from "../utils/basic.js"; export type UseVersionedActionReturns = readonly [ /** * Increase the version */ incVersion: () => object, /** * Run the action with the specified version */ runVersionedAction: (version: object, handler: T) => ReturnType | undefined ]; export declare function useVersionedAction(): UseVersionedActionReturns;