import { Account } from './classes/Account'; import { Event } from './classes/Event'; import { EventChain } from './classes/EventChain'; import { HTTPSignature } from './classes/HTTPSignature'; import { Request } from './classes/Request'; import { IKeyPairBytes } from "../interfaces"; import * as PublicNodeAPI from './api/public-node/index'; export { Account, Event, EventChain, HTTPSignature, Request }; export declare class LTO { readonly networkByte: string; readonly API: { PublicNode: typeof PublicNodeAPI; }; constructor(networkByte?: string, nodeAddress?: string); /** * Creates an account based on a random seed */ createAccount(words?: number): Account; /** * Creates an account based on an existing seed */ createAccountFromExistingPhrase(phrase: string): Account; /** * Creates an account based on a private key */ createAccountFromPrivateKey(privateKey: string): Account; /** * Encrypt seed phrase */ encryptSeedPhrase(seedPhrase: string, password: string, encryptionRounds?: number): string; /** * Decrypt seed phrase */ decryptSeedPhrase(encryptedSeedPhrase: string, password: string, encryptionRounds?: number): string; isValidAddress(address: string): boolean; /** * Create an event chain id based on a public sign key * * @param publicSignKey {string} - Public sign on which the event chain will be based * @param nonce {string} - (optional) A random nonce will generate by default */ createEventChainId(publicSignKey: string, nonce?: string): string; protected createSignKeyPairFromSecret(privatekey: string): IKeyPairBytes; protected createSignKeyPairFromSeed(seed: string): IKeyPairBytes; protected convertSignToEcnryptKeys(signKeys: IKeyPairBytes): IKeyPairBytes; }