import { ChainId } from '@dcl/schemas/dist/dapps/chain-id'; import { LoadingState } from '../loading/reducer'; import { ChangeAccountAction, ChangeNetworkAction, ConnectWalletFailureAction, ConnectWalletRequestAction, ConnectWalletSuccessAction, DisconnectWalletFailureAction, DisconnectWalletRequestAction, DisconnectWalletSuccessAction, EnableWalletFailureAction, EnableWalletRequestAction, EnableWalletSuccessAction, FetchWalletFailureAction, FetchWalletRequestAction, FetchWalletSuccessAction, SetAppChainIdAction, SwitchNetworkFailureAction, SwitchNetworkRequestAction, SwitchNetworkSuccessAction } from './actions'; import { Wallet } from './types'; export type WalletState = { data: Wallet | null; loading: LoadingState; error: string | null; appChainId: ChainId | null; }; export declare const INITIAL_STATE: WalletState; export type WalletReducerAction = ConnectWalletRequestAction | ConnectWalletSuccessAction | ConnectWalletFailureAction | SwitchNetworkRequestAction | SwitchNetworkSuccessAction | SwitchNetworkFailureAction | EnableWalletRequestAction | EnableWalletSuccessAction | EnableWalletFailureAction | DisconnectWalletRequestAction | DisconnectWalletSuccessAction | DisconnectWalletFailureAction | ChangeAccountAction | ChangeNetworkAction | FetchWalletRequestAction | FetchWalletSuccessAction | FetchWalletFailureAction | SetAppChainIdAction; export declare function walletReducer(state: WalletState | undefined, action: WalletReducerAction): WalletState;