import { ReactNode } from 'react'; import { IStorageSuite } from '@portkey/types'; import { IStorageSuite as IStorageSuiteV1 } from '@portkey-v1/types'; import { NetworkType } from '@portkey/provider-types'; import { GlobalConfigProps as GlobalConfigPropsV1 } from '@portkey-v1/did-ui-react/dist/_types/src/components/config-provider/types'; import { GlobalConfigProps } from '@portkey/did-ui-react/dist/_types/src/components/config-provider/types'; import { EventEmitter } from 'ahooks/lib/useEventEmitter'; export type AelfNode = { rpcUrl: string; chainId: string; }; export type AElfReactProviderProps = { children: ReactNode; appName: string; nodes?: { [key: string]: AelfNode; }; }; export type WebLoginConfig = { onlyShowV2?: boolean; appName: string; chainId: string; defaultRpcUrl: string; networkType: 'MAIN' | 'TESTNET'; portkey: GlobalConfigPropsV1 & { useLocalStorage?: boolean; }; portkeyV2?: GlobalConfigProps & { useLocalStorage?: boolean; networkType: NetworkType; }; aelfReact: Omit; }; export declare class Store implements IStorageSuite, IStorageSuiteV1 { getItem(key: string): Promise; setItem(key: string, value: string): Promise; removeItem(key: string): Promise; } export declare const event$: EventEmitter; export declare function setGlobalConfig(config: WebLoginConfig): void; export declare function getConfig(): WebLoginConfig;