import type { $$t } from "@cassiozen/usestatemachine/dist/types";
import type { TransactionVerificationMessageDto } from "@stakekit/api-hooks";
export declare const useUnstakeMachine: () => [state: {
    value: "initial";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: import("@cassiozen/usestatemachine/dist/types").Machine.EntryEventForStateValue<{
        schema: {
            context: {
                [$$t]: {
                    error: Error | null;
                    transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
                    signedMessage: string | null;
                };
            };
        };
        initial: "initial";
        context: {
            error: null;
            transactionVerificationMessageDto: null;
            signedMessage: null;
        };
        on: {
            UNSTAKE: "unstakeCheck";
        };
        states: {
            initial: {};
            unstakeCheck: {
                on: {
                    __UNSTAKE_GET_VERIFICATION_MESSAGE__: "unstakeGetVerificationMessageLoading";
                    __UNSTAKE__: "unstakeLoading";
                };
                effect: unknown;
            };
            unstakeGetVerificationMessageLoading: {
                on: {
                    __UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__: "unstakeShowPopup";
                    __UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__: "unstakeGetVerificationMessageError";
                };
                effect: unknown;
            };
            unstakeGetVerificationMessageError: {};
            unstakeShowPopup: {
                on: {
                    CONTINUE_MESSAGE_SIGN: "unstakeSignMessageLoading";
                    CANCEL_MESSAGE_SIGN: "initial";
                };
            };
            unstakeSignMessageLoading: {
                on: {
                    __UNSTAKE_SIGN_MESSAGE_SUCCESS__: "unstakeLoading";
                    __UNSTAKE_SIGN_MESSAGE_ERROR__: "unstakeSignMessageError";
                };
                effect: unknown;
            };
            unstakeSignMessageError: {};
            unstakeLoading: {
                on: {
                    __UNSTAKE_ERROR__: "unstakeError";
                    __UNSTAKE_DONE__: "unstakeDone";
                };
                effect: unknown;
            };
            unstakeDone: {};
            unstakeError: {};
        };
    }, "initial">;
    nextEventsT: "UNSTAKE"[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeCheck";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "UNSTAKE";
    };
    nextEventsT: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__")[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeGetVerificationMessageLoading";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "__UNSTAKE_GET_VERIFICATION_MESSAGE__";
    };
    nextEventsT: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__")[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeLoading";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: import("@cassiozen/usestatemachine/dist/types").Machine.EntryEventForStateValue<{
        schema: {
            context: {
                [$$t]: {
                    error: Error | null;
                    transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
                    signedMessage: string | null;
                };
            };
        };
        initial: "initial";
        context: {
            error: null;
            transactionVerificationMessageDto: null;
            signedMessage: null;
        };
        on: {
            UNSTAKE: "unstakeCheck";
        };
        states: {
            initial: {};
            unstakeCheck: {
                on: {
                    __UNSTAKE_GET_VERIFICATION_MESSAGE__: "unstakeGetVerificationMessageLoading";
                    __UNSTAKE__: "unstakeLoading";
                };
                effect: unknown;
            };
            unstakeGetVerificationMessageLoading: {
                on: {
                    __UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__: "unstakeShowPopup";
                    __UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__: "unstakeGetVerificationMessageError";
                };
                effect: unknown;
            };
            unstakeGetVerificationMessageError: {};
            unstakeShowPopup: {
                on: {
                    CONTINUE_MESSAGE_SIGN: "unstakeSignMessageLoading";
                    CANCEL_MESSAGE_SIGN: "initial";
                };
            };
            unstakeSignMessageLoading: {
                on: {
                    __UNSTAKE_SIGN_MESSAGE_SUCCESS__: "unstakeLoading";
                    __UNSTAKE_SIGN_MESSAGE_ERROR__: "unstakeSignMessageError";
                };
                effect: unknown;
            };
            unstakeSignMessageError: {};
            unstakeLoading: {
                on: {
                    __UNSTAKE_ERROR__: "unstakeError";
                    __UNSTAKE_DONE__: "unstakeDone";
                };
                effect: unknown;
            };
            unstakeDone: {};
            unstakeError: {};
        };
    }, "unstakeLoading">;
    nextEventsT: ("UNSTAKE" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeShowPopup";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__";
    };
    nextEventsT: ("UNSTAKE" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN")[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeGetVerificationMessageError";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__";
    };
    nextEventsT: "UNSTAKE"[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeSignMessageLoading";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "CONTINUE_MESSAGE_SIGN";
    };
    nextEventsT: ("UNSTAKE" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__")[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeSignMessageError";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "__UNSTAKE_SIGN_MESSAGE_ERROR__";
    };
    nextEventsT: "UNSTAKE"[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeError";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "__UNSTAKE_ERROR__";
    };
    nextEventsT: "UNSTAKE"[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
} | {
    value: "unstakeDone";
    context: {
        error: Error | null;
        transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
        signedMessage: string | null;
    };
    event: {
        type: "__UNSTAKE_DONE__";
    };
    nextEventsT: "UNSTAKE"[];
    nextEvents: ("UNSTAKE" | "__UNSTAKE_GET_VERIFICATION_MESSAGE__" | "__UNSTAKE__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__" | "__UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__" | "CONTINUE_MESSAGE_SIGN" | "CANCEL_MESSAGE_SIGN" | "__UNSTAKE_SIGN_MESSAGE_SUCCESS__" | "__UNSTAKE_SIGN_MESSAGE_ERROR__" | "__UNSTAKE_ERROR__" | "__UNSTAKE_DONE__")[];
}, send: import("@cassiozen/usestatemachine/dist/types").Machine.Send<{
    schema: {
        context: {
            [$$t]: {
                error: Error | null;
                transactionVerificationMessageDto: TransactionVerificationMessageDto | null;
                signedMessage: string | null;
            };
        };
    };
    initial: "initial";
    context: {
        error: null;
        transactionVerificationMessageDto: null;
        signedMessage: null;
    };
    on: {
        UNSTAKE: "unstakeCheck";
    };
    states: {
        initial: {};
        unstakeCheck: {
            on: {
                __UNSTAKE_GET_VERIFICATION_MESSAGE__: "unstakeGetVerificationMessageLoading";
                __UNSTAKE__: "unstakeLoading";
            };
            effect: unknown;
        };
        unstakeGetVerificationMessageLoading: {
            on: {
                __UNSTAKE_GET_VERIFICATION_MESSAGE_SUCCESS__: "unstakeShowPopup";
                __UNSTAKE_GET_VERIFICATION_MESSAGE_ERROR__: "unstakeGetVerificationMessageError";
            };
            effect: unknown;
        };
        unstakeGetVerificationMessageError: {};
        unstakeShowPopup: {
            on: {
                CONTINUE_MESSAGE_SIGN: "unstakeSignMessageLoading";
                CANCEL_MESSAGE_SIGN: "initial";
            };
        };
        unstakeSignMessageLoading: {
            on: {
                __UNSTAKE_SIGN_MESSAGE_SUCCESS__: "unstakeLoading";
                __UNSTAKE_SIGN_MESSAGE_ERROR__: "unstakeSignMessageError";
            };
            effect: unknown;
        };
        unstakeSignMessageError: {};
        unstakeLoading: {
            on: {
                __UNSTAKE_ERROR__: "unstakeError";
                __UNSTAKE_DONE__: "unstakeDone";
            };
            effect: unknown;
        };
        unstakeDone: {};
        unstakeError: {};
    };
}>];
