UNPKG

@open-web3/api-mobx

Version:
31 lines (30 loc) 965 B
import { ObservableMap } from 'mobx'; import { ApiPromise } from '@polkadot/api'; import StateTracker from './stateTracker'; export declare class ObservableStorageEntry { private readonly _api; private readonly _tracker; private readonly _module; private readonly _entry; private readonly _keys; private readonly _atom; private _value; private _unsub; constructor(_api: ApiPromise, _tracker: StateTracker, _module: string, _entry: string, _keys?: any[]); private _start; private _stop; get value(): any; } export declare class ObservableStorageMapEntries { private readonly _api; private readonly _tracker; private readonly _module; private readonly _entry; private readonly _atom; private _value; private _unsub; constructor(_api: ApiPromise, _tracker: StateTracker, _module: string, _entry: string); private _start; private _stop; get value(): ObservableMap<any, any>; }