import { type AssertSizeErrorType } from '../data/assertSize.js'; import { type IsHexErrorType } from '../data/isHex.js'; import { type PadErrorType } from '../data/pad.js'; import { type IntegerOutOfRangeErrorType } from '../errors/data.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; export type ToHexParameters = { size?: number | undefined; }; export type ToHexErrorType = BoolToHexErrorType | BytesToHexErrorType | IsHexErrorType | NumberToHexErrorType | StringToHexErrorType | ErrorType; export declare function toHex(value: string | number | bigint | boolean | Bytes, opts?: ToHexParameters): Hex; export type BoolToHexOpts = { size?: number | undefined; }; export type BoolToHexErrorType = AssertSizeErrorType | PadErrorType | ErrorType; export declare function boolToHex(value: boolean, opts?: BoolToHexOpts): Hex; export type BytesToHexOpts = { size?: number | undefined; }; export type BytesToHexErrorType = AssertSizeErrorType | PadErrorType | ErrorType; export declare function bytesToHex(value: Bytes, opts?: BytesToHexOpts): Hex; export type NumberToHexOpts = { signed?: boolean | undefined; size: number; } | { signed?: undefined; size?: number | undefined; }; export type NumberToHexErrorType = IntegerOutOfRangeErrorType | PadErrorType | ErrorType; export declare function numberToHex(value_: number | bigint, opts?: NumberToHexOpts): Hex; export type StringToHexOpts = { size?: number | undefined; }; export type StringToHexErrorType = BytesToHexErrorType | ErrorType; export declare function stringToHex(value_: string, opts?: StringToHexOpts): Hex; //# sourceMappingURL=toHex.d.ts.map