import { DeriveBalancesAll, DeriveStakingQuery } from '@polkadot/api-derive/types'; import { InjectedAccountWithMeta, InjectedExtension } from '@polkadot/extension-inject/types'; import { Option } from '@polkadot/types'; import { AccountId, AccountInfo, StakingLedger } from '@polkadot/types/interfaces'; import React, { Dispatch, ReducerAction, ReducerState } from 'react'; import { ValueOf } from './types'; export declare type AccountBalanceMap = Record; export declare type StashControllerMap = Record; interface State { accountBalanceMap: AccountBalanceMap; allAccounts: InjectedAccountWithMeta[]; allBonded: Option[]; allControllers: InjectedAccountWithMeta[]; allLedger: Option[]; allStashes: string[]; currentAccount?: string; currentAccountNonce?: AccountInfo; readonly extension?: InjectedExtension; extensionNotFound: boolean; isExtensionReady: boolean; loadingAccountStaking: boolean; loadingBalances: boolean; stashControllerMap: StashControllerMap; } declare enum ActionTypes { 'setAccountBalanceMap' = 0, 'setAllAccounts' = 1, 'setAllBonded' = 2, 'setAllControllers' = 3, 'setAllLedger' = 4, 'setAllStashes' = 5, 'setCurrentAccount' = 6, 'setCurrentAccountNonce' = 7, 'setExtension' = 8, 'setExtensionNotFound' = 9, 'setIsExtensionReady' = 10, 'setLoadingAccountStaking' = 11, 'setLoadingBalances' = 12, 'setStashControllerMap' = 13 } interface Action { type: keyof typeof ActionTypes; data: ValueOf; } declare const stateReducer: (state: State, action: Action) => State; interface AccountsContext { state: ReducerState; dispatch: Dispatch>; } export declare const AccountsContext: React.Context; interface Props { children: React.ReactElement; /** * Slug specific to your app, * @see https://github.com/polkadot-js/extension/tree/master/packages/extension-inject#polkadotextension-inject */ originName: string; } export declare function AccountsContextProvider(props: Props): React.ReactElement; export {}; //# sourceMappingURL=AccountsContext.d.ts.map