import { Key } from "../../../app/lib/common-libs/crypto/keyring"; import { TestingServer } from "./toolbox"; import { CertificationDTO } from "../../../app/lib/dto/CertificationDTO"; import { MembershipDTO } from "../../../app/lib/dto/MembershipDTO"; import { RevocationDTO } from "../../../app/lib/dto/RevocationDTO"; import { PeerDTO } from "../../../app/lib/dto/PeerDTO"; import { HttpLookup } from "../../../app/modules/bma/lib/dtos"; export interface TestInput { src: string; unlock: string; } export interface TestOutput { qty: number; base: number; lock: string; } export declare class TestUser { uid: string; private options; node: any; pub: string; sec: string; private createdIdentity; constructor(uid: string, options: any, node: any); get keypair(): Key; private init; createIdentity(useRoot?: boolean | null, fromServer?: any): Promise; makeIdentity(useRoot?: boolean | null): Promise; submitIdentity(raw: string, fromServer?: TestingServer): Promise; getIdentityRaw(): string; makeCert(user: TestUser, fromServer?: TestingServer, overrideProps?: any): Promise; cert(user: TestUser, fromServer?: TestingServer, toServer?: TestingServer): Promise; sendCert(cert: CertificationDTO, toServer?: TestingServer): Promise; join(): Promise; leave(): Promise; makeRevocation(givenLookupIdty?: HttpLookup, overrideProps?: any): Promise; revoke(givenLookupIdty?: any): Promise; makeMembership(type: string, fromServer?: TestingServer, overrideProps?: any): Promise; publishMembership(type: string): Promise; sendMembership(ms: MembershipDTO, toServer?: TestingServer): Promise; sendMoney(amount: number, recipient: TestUser, comment?: string): Promise; sendTX(rawTX: string): Promise; prepareUTX(previousTX: string, unlocks: string[], outputs: TestOutput[], opts: any): Promise; prepareMTX(previousTX: string, user2: TestUser, unlocks: string[], outputs: TestOutput[], opts: any): Promise; prepareITX(amount: number, recipient: TestUser | string, comment?: string): Promise; private signed; makeTX(inputs: TestInput[], outputs: TestOutput[], theOptions: any): string; prepareTX(inputs: TestInput[], outputs: TestOutput[], theOptions: any): string; makePeer(endpoints: string[], overrideProps: any): Promise; private post; private doPost; private getContacter; lookup(pubkey: string, fromServer?: TestingServer): Promise; }