import { NCInit } from "../system"; import { NCCreateUser, NCCreatePermission, NCLinkPerm, NCReturnTxs, NCBuyRam, NCKeyPair } from "../types"; export declare class NCO_account_API { private debug; private services; private urls; private sdkGen; private submitter; private utils; constructor(inpt: NCInit); SubmitTx: (actions: any[], public_keys: string[], private_keys: string[]) => Promise; /** * Create a key pair assuming a secure environment (not frontend) * @params none * @returns An EOS key pair */ createKeyPair(): Promise; /** * Create a user - multistage operation creating new user account, * defailt collection, schema and template for the account * @param NCCreateUser * @returns NCReturnTxs */ createAccount(inpt: NCCreateUser): Promise; buyRam(inpt: NCBuyRam): Promise; /** * Create a new permission subordinate to the Active permission. * (future optional: allow under owner, TBD) * @param NCCreatePermission * @returns Create permission transaction id */ createPermission(inpt: NCCreatePermission): Promise; /** * Link a permission to a specific action of a specific contract. * @param NCLinkPerm * author: the permission's owner to be linked * code: the owner of the action to be linked * type: the action to be linked * 'active', 'owner' ... * @returns Link permission transaction id */ linkPermission(inpt: NCLinkPerm): Promise; }