import { TEth } from '../models/TEth'; export declare namespace $hex { const ZERO = "0x"; /** * Adds '00' bytes to the hex string. * @param hex * @param byteSize Min bytes count in the hex string */ function padBytes(hex: TEth.Hex, byteSize: number, opts?: { padEnd?: boolean; }): TEth.Hex; /** * Trims '00' bytes from start or end, e.g. 0x68656c6c6f000000 => 0x68656c6c6f */ function trimBytes(hex: TEth.Hex): TEth.Hex; function trimLeadingZerosFromNumber(hex: string): string; function getBytes(hex: string, offset: number, length: number): TEth.Hex; function getBytesLength(hex: string): number; function getNumber(hex: string, byteIndex: number, bytesCount?: number): number; function raw(hex: string): string; function concat(arr: (string | TEth.Hex | Uint8Array)[]): TEth.Hex; function split(hex: TEth.Hex, bytes?: number): any[]; function toHex(value: string | boolean | number | bigint): TEth.Hex; function toHexBuffer(value: string | boolean | number | bigint): TEth.Hex; function convert(hex: string, abiType: 'uint256' | 'address' | 'bool' | 'string' | string): string | number | bigint | boolean; /** * Adds `0x` to the start if not present */ function ensure(mix: string | number | boolean | bigint | Uint8Array): TEth.Hex; function isEmpty(hex: string): boolean; }