import { type AssertSizeErrorType } from '../data/assertSize.js'; import { type IsBytesErrorType } from '../data/isBytes.js'; import { type IsHexErrorType } from '../data/isHex.js'; import { type PadErrorType } from '../data/pad.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; import { type NumberToHexErrorType, type NumberToHexOpts } from './toHex.js'; export type ToBytesParameters = { size?: number | undefined; }; export type ToBytesErrorType = IsBytesErrorType | NumberToBytesErrorType | BoolToBytesErrorType | HexToBytesErrorType | StringToBytesErrorType | IsHexErrorType | ErrorType; export declare function toBytes(value: string | bigint | number | boolean | Hex | Bytes, opts?: ToBytesParameters): Bytes; export type BoolToBytesOpts = { size?: number | undefined; }; export type BoolToBytesErrorType = AssertSizeErrorType | PadErrorType | ErrorType; export declare function boolToBytes(value: boolean, opts?: BoolToBytesOpts): Uint8Array; export type HexToBytesOpts = { size?: number | undefined; }; export type HexToBytesErrorType = AssertSizeErrorType | PadErrorType | ErrorType; export declare function hexToBytes(hex_: Hex, opts?: HexToBytesOpts): Bytes; export type NumberToBytesErrorType = NumberToHexErrorType | HexToBytesErrorType | ErrorType; export declare function numberToBytes(value: bigint | number, opts?: NumberToHexOpts | undefined): Uint8Array; export type StringToBytesOpts = { size?: number | undefined; }; export type StringToBytesErrorType = AssertSizeErrorType | PadErrorType | ErrorType; export declare function stringToBytes(value: string, opts?: StringToBytesOpts): Bytes; //# sourceMappingURL=toBytes.d.ts.map