export interface KeyPair { privateKey: string; publicKey: string; } export interface KeyPairs { [role: string]: KeyPair; } export interface Authority { key_auths: [string, number][]; } export interface Auth { verify(name: string, password: string, auths: unknown): boolean; generateKeys(name: string, password: string, roles: string[]): { [key: string]: string; }; getPrivateKeys(name: string, password: string, roles?: string[]): { [key: string]: string; }; isWif(privWif: string): boolean; toWif(name: string, password: string, role: string): string; wifIsValid(privWif: string, pubWif: string): boolean; wifToPublic(privWif: string): string; isPubkey(pubkey: string, address_prefix?: string): boolean; signTransaction(trx: unknown, keys: string[]): unknown; } export declare const Auth: Auth; export default Auth; export declare const verify: (name: string, password: string, auths: unknown) => boolean; export declare const generateKeys: (name: string, password: string, roles: string[]) => { [key: string]: string; }; export declare const getPrivateKeys: (name: string, password: string, roles?: string[]) => { [key: string]: string; }; export declare const isWif: (privWif: string) => boolean; export declare const toWif: (name: string, password: string, role: string) => string; export declare const wifIsValid: (privWif: string, pubWif: string) => boolean; export declare const wifToPublic: (privWif: string) => string; export declare const isPubkey: (pubkey: string, address_prefix?: string) => boolean; export { PrivateKey } from './ecc/src/key_private'; export { PublicKey } from './ecc/src/key_public'; export { Signature } from './ecc/src/signature'; export { Address } from './ecc/src/address'; export declare const sign: (message: string, privateKey: string) => string; export declare const verifySignature: (message: string, signature: string, publicKey: string) => boolean; export declare const verifyTransaction: (transaction: unknown, publicKey: string) => boolean; export declare const getPublicKey: (privateKey: string) => string; export declare const getPrivateKey: (seed: string) => string; export declare const signTransaction: (trx: unknown, keys: string[]) => unknown;