import { PayloadAction } from '@reduxjs/toolkit';
import { TokenConfig } from '../config/types';
import { TransferWallet } from '../utils/wallet';
import { WalletData } from './wallet';
import { DataWrapper } from './helpers';
import { Chain, amount } from '@wormhole-foundation/sdk';
export type Balance = {
    lastUpdated: number;
    balance: amount.Amount | null;
};
export type Balances = {
    [key: string]: Balance;
};
export type ChainBalances = {
    balances: Balances;
};
export type BalancesCache = {
    [key in Chain]?: ChainBalances;
};
type WalletAddress = string;
export type WalletBalances = {
    [key: WalletAddress]: BalancesCache;
};
export declare const getNativeVersionOfToken: (tokenSymbol: string, chain: Chain) => string;
export declare const accessChainBalances: (balances: WalletBalances | undefined, walletAddress: WalletAddress | undefined, chain: Chain | undefined) => ChainBalances | undefined;
export declare const accessBalance: (balances: WalletBalances | undefined, walletAddress: WalletAddress | undefined, chain: Chain | undefined, token: string) => Balance | undefined;
export type ValidationErr = string;
export type TransferValidations = {
    sendingWallet: ValidationErr;
    receivingWallet: ValidationErr;
    fromChain: ValidationErr;
    toChain: ValidationErr;
    token: ValidationErr;
    destToken: ValidationErr;
    amount: ValidationErr;
    toNativeToken: ValidationErr;
    relayerFee: ValidationErr;
    receiveAmount: ValidationErr;
};
export interface TransferInputState {
    showValidationState: boolean;
    validations: TransferValidations;
    fromChain: Chain | undefined;
    toChain: Chain | undefined;
    token: string;
    destToken: string;
    amount?: amount.Amount;
    receiveAmount: DataWrapper<string>;
    route?: string;
    preferredRouteName?: string | undefined;
    balances: WalletBalances;
    foreignAsset: string;
    associatedTokenAddress: string;
    gasEst: {
        send: string;
        claim: string;
    };
    isTransactionInProgress: boolean;
    receiverNativeBalance: string | undefined;
    supportedSourceTokens: TokenConfig[];
    supportedDestTokens: TokenConfig[];
}
export declare const transferInputSlice: import('@reduxjs/toolkit').Slice<TransferInputState, {
    setValidations: (state: TransferInputState, { payload: { showValidationState, validations }, }: PayloadAction<{
        showValidationState: boolean;
        validations: TransferValidations;
    }>) => void;
    setToken: (state: TransferInputState, { payload }: PayloadAction<string>) => void;
    setDestToken: (state: TransferInputState, { payload }: PayloadAction<string>) => void;
    setFromChain: (state: TransferInputState, { payload }: PayloadAction<Chain>) => void;
    setToChain: (state: TransferInputState, { payload }: PayloadAction<Chain>) => void;
    setAmount: (state: TransferInputState, { payload }: PayloadAction<string>) => void;
    updateBalances: (state: TransferInputState, { payload, }: PayloadAction<{
        address: WalletAddress;
        chain: Chain;
        balances: Balances;
    }>) => void;
    setTransferRoute: (state: TransferInputState, { payload }: PayloadAction<string | undefined>) => void;
    clearTransfer: (state: TransferInputState) => void;
    setIsTransactionInProgress: (state: TransferInputState, { payload }: PayloadAction<boolean>) => void;
    setSupportedSourceTokens: (state: TransferInputState, { payload }: PayloadAction<TokenConfig[]>) => void;
    setSupportedDestTokens: (state: TransferInputState, { payload }: PayloadAction<TokenConfig[]>) => void;
    swapInputs: (state: TransferInputState) => void;
}, "transfer">;
export declare const isDisabledChain: (chain: Chain, wallet: WalletData) => boolean;
export declare const selectFromChain: (dispatch: any, chain: Chain, wallet: WalletData) => Promise<void>;
export declare const selectToChain: (dispatch: any, chain: Chain, wallet: WalletData) => Promise<void>;
export declare const selectChain: (type: TransferWallet, dispatch: any, chain: Chain, wallet: WalletData) => Promise<void>;
export declare const setValidations: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    showValidationState: boolean;
    validations: TransferValidations;
}, "transfer/setValidations">, setToken: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "transfer/setToken">, setDestToken: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "transfer/setDestToken">, setFromChain: import('@reduxjs/toolkit').ActionCreatorWithPayload<"Ethereum" | "Terra" | "Solana" | "Algorand" | "Near" | "Aptos" | "Sui" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Rootstock" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadDevnet", "transfer/setFromChain">, setToChain: import('@reduxjs/toolkit').ActionCreatorWithPayload<"Ethereum" | "Terra" | "Solana" | "Algorand" | "Near" | "Aptos" | "Sui" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Rootstock" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadDevnet", "transfer/setToChain">, setAmount: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "transfer/setAmount">, setTransferRoute: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string | undefined, "transfer/setTransferRoute">, updateBalances: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    address: WalletAddress;
    chain: Chain;
    balances: Balances;
}, "transfer/updateBalances">, clearTransfer: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"transfer/clearTransfer">, setIsTransactionInProgress: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "transfer/setIsTransactionInProgress">, setSupportedDestTokens: import('@reduxjs/toolkit').ActionCreatorWithPayload<TokenConfig[], "transfer/setSupportedDestTokens">, setSupportedSourceTokens: import('@reduxjs/toolkit').ActionCreatorWithPayload<TokenConfig[], "transfer/setSupportedSourceTokens">, swapInputs: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"transfer/swapInputs">;
declare const _default: import('redux').Reducer<TransferInputState>;
export default _default;
//# sourceMappingURL=transferInput.d.ts.map