import { Hex } from 'viem'; /** * Ensures a hex string has '0x' prefix * @param value - The hex string to check * @returns The hex string with '0x' prefix */ export declare function hexPrefixed(value: string): Hex; /** * Safely converts a value to BigInt, returns 0n if conversion fails */ export declare function safeBigInt(value: string | number): bigint; /** * @example * const obj = ['a', 'b', 'c'] * ObjectMapFromArray(obj) // { a: 'a', b: 'b', c: 'c' } */ export declare const ObjectMapFromArray: (arr: T) => { [K in T[number]]: K; }; /** * Generates an array of validator URLs based on the given validator structs and network configurations. * * @property {ValidatorStruct[]} activeValidatorStructs - Array of validator structures containing IP and port information. * @returns {string[]} Array of constructed validator URLs. * * @example * // Example input * const activeValidatorStructs = [ * { ip: 3232235777, port: 443 }, // IP: 192.168.1.1 * { ip: 3232235778, port: 80 }, // IP: 192.168.1.2 * ]; * * // Example output * const urls = generateValidatorURLs(activeValidatorStructs); * console.log(urls); * Output: [ * "192.168.1.1:443", * "192.168.1.2:80" * ] */ export declare function generateValidatorURLs(ipAndPorts: { ip: number; port: number; }[]): string[]; /** * Converts an integer IP address to a string representation of the IP address. * * @param ip - The integer IP address to convert. * @returns The string representation of the IP address. */ export declare const intToIP: (ip: number) => string;