import type { ActionDto } from "@stakekit/api-hooks";
import type { Maybe } from "purify-ts";
export declare const useSteps: ({ session, onSignSuccess, onSubmitSuccess, }: {
    onSignSuccess?: (() => void) | undefined;
    onSubmitSuccess?: (() => void) | undefined;
    session: Maybe<ActionDto>;
}) => {
    retry: (() => void) | undefined;
    txStates: {
        state: TxStateEnum;
        tx: import("@stakekit/api-hooks/dist/yieldYields200-6PERGfk7").b;
        meta: {
            url: string | null;
            signedTx: string | null;
            broadcasted: boolean | null;
            signError: Error | import("./errors").SendTransactionError | import("./errors").SignError | import("./errors").GetStakeSessionError | null;
            txCheckError: import("./errors").GetStakeSessionError | null;
            done: boolean;
        };
    }[];
};
export declare enum TxStateEnum {
    SIGN_IDLE = 0,
    SIGN_ERROR = 1,
    SIGN_LOADING = 2,
    SIGN_SUCCESS = 3,
    BROADCAST_IDLE = 4,
    BROADCAST_ERROR = 5,
    BROADCAST_LOADING = 6,
    BROADCAST_SUCCESS = 7,
    CHECK_TX_STATUS_IDLE = 8,
    CHECK_TX_STATUS_ERROR = 9,
    CHECK_TX_STATUS_LOADING = 10,
    CHECK_TX_STATUS_SUCCESS = 11
}
