import { IEosClient, IIdentity } from '../types/eos'; /** * EOSProvider - defined the MUST interfaces of a player * @author kinghand@foxmail.com */ export default class EOSProvider { private field; /** * get or create scatter * @return {eosAPI} */ readonly eosClient: IEosClient; /** * getIdentity of cur scatter user * @return {Promise<{IIdentity}>} */ getIdentity(): Promise; /** * get auth structure from identity * @return {Object} - { authorization : [ 'name@authority' ] } */ getAuth(): Promise<{ authorization: string[]; }>; initFromConf(conf: any, account: IIdentity): void; }