/****************************************************************************** * * (C) 2022 AhnLab Blockchain Company, Inc. All rights reserved. * Any part of this source code can not be copied with any method without * prior written permission from the author or authorized person. * ******************************************************************************/ export declare const ascii_to_hexa: (str: any) => string; export declare const padWithZeroes: (number: string, length: number) => string; export declare const addHexPrefix: (str: any) => any; /** * Validates that the input is a hex address. This utility method is a thin * wrapper around ethereumjs-util.isValidAddress, with the exception that it * does not throw an error when provided values that are not hex strings. In * addition, and by default, this method will return true for hex strings that * meet the length requirement of a hex address, but are not prefixed with `0x` * Finally, if the mixedCaseUseChecksum flag is true and a mixed case string is * provided this method will validate it has the proper checksum formatting. * @param {string} possibleAddress - Input parameter to check against * @param {Object} [options] - options bag * @param {boolean} [options.allowNonPrefixed] - If true will first ensure '0x' * is prepended to the string * @param {boolean} [options.mixedCaseUseChecksum] - If true will treat mixed * case addresses as checksum addresses and validate that proper checksum * format is used * @returns {boolean} whether or not the input is a valid hex address */ export declare const isValidHexAddress: (possibleAddress: any, { allowNonPrefixed, mixedCaseUseChecksum }?: { allowNonPrefixed?: boolean; mixedCaseUseChecksum?: boolean; }) => boolean; export declare const trimUrl: (url: string) => string; export declare const isValidURL: (string: string) => boolean;