import { CommandTypes } from "../commands/enums/command-types"; import { IHelpMessage } from "../commands/models/ihelp-message"; import { IProgramOptions } from "./models/iprogram-options"; export declare class Utils { static ALIASES: { V: string; h: string; u: string; }; /** * This will get all the program arguments */ static getProgramArguments(): IProgramOptions; /** * Check if a value is a hex * @param hex The hex string */ static isHex(hex: string): boolean; /** * To hex string * @param value The value */ static toHex(value: any): string; /** * Bytes to hex * @param bytes The bytes */ static bytesToHex(bytes: Uint8Array): string; /** * Adding padding to the hex * @param hex The hex string * @param charAmount The char amount */ static padLeft(hex: string, charAmount: number): string; /** * Hex to bytes * @param hex The hex string */ static hexToBytes(hex: string): Uint8Array; /** * Checks to see if its a uint8array * @param array The array */ static isUint8Array(array: Uint8Array): boolean; /** * Check if bytes are equal * @param array1 The uint8array 1 * @param array2 the uint8array 2 */ static isBytesEqual(array1: Uint8Array, array2: Uint8Array): boolean; /** * Converts a ethereum address to a checksum address * @param address The string ethereum address */ static toChecksumAddress(address: string): string; /** * Gets the help message by the command type * @param commandType The command type */ static getHelpMessageByCommandType(commandType: CommandTypes): string; /** * Builds the help message up * @param helpMessage The help message object */ static buildUpHelpMessage(helpMessage: IHelpMessage): string; /** * Deep clone a object * @param object The object */ static deepClone(object: T): T; /** * Splits the array to string * @param value The value * @param seperator The seperator */ static splitArrayToString(value: string, seperator: string): string[]; }