import { ChainId } from '@dodoex/api';
export declare enum ContractStatus {
    Initial = "Initial",
    Pending = "Pending",
    ApproveSuccess = "ApproveSuccess",
    TxSuccess = "TxSuccess",
    Failed = "Failed"
}
interface GlobalState {
    fromTokenChainId?: ChainId;
    latestBlockNumber: number;
    openConnectWalletInfo: boolean | {
        /** Wallet is connected, chainID needs to be switched */
        chainId?: ChainId;
    };
    contractStatus?: ContractStatus;
    autoConnectLoading?: boolean;
    showCoingecko?: boolean;
    /** source: props.getAutoSlippage */
    autoSlippage?: {
        loading: boolean;
        value: number | null;
    };
    slippage: string | null;
}
export declare const useGlobalState: import("zustand").UseBoundStore<import("zustand").StoreApi<GlobalState>>;
export declare function setContractStatus(value: GlobalState['contractStatus']): void;
export declare function setAutoConnectLoading(value: GlobalState['autoConnectLoading']): void;
export declare function setAutoSlippage(value: GlobalState['autoSlippage']): void;
export declare function setAutoSlippageLoading(loading: boolean): void;
export declare function setSlippage(value: GlobalState['slippage']): void;
export {};
