import { ActionConstructor } from "applesauce-actions";
export declare function useAction<Args extends Array<any>>(Action: ActionConstructor<Args>, args: Args | undefined): {
    loading: boolean;
    run: () => Promise<void>;
    exec: () => import("rxjs").Observable<import("nostr-tools").Event> | undefined;
};
