import type { ICommand, TCommandAgentState, TTriggerPromise } from "../../query/types/index.js"; /** * The returned `trigger` never rejects: it resolves with a `TTriggerResult` * envelope (`{ status: "success", data }` / `{ status: "error", error }`), so * fire-and-forget usage (`onClick={() => trigger(args)}`) cannot produce an * unhandled rejection — the failure also surfaces through `state`. Call * `.unwrap()` for the raw throwing promise. */ export declare function useCommand(command: ICommand, key?: string): [trigger: (args: TArgs) => TTriggerPromise, state: TCommandAgentState];