import type { Bytes, Hex } from '../types/data.js'; import { BaseError } from './base.js'; export type IntegerOutOfRangeErrorType = IntegerOutOfRangeError & { name: 'IntegerOutOfRangeError'; }; export declare class IntegerOutOfRangeError extends BaseError { constructor({ max, min, signed, size, value, }: { max?: string | undefined; min: string; signed?: boolean | undefined; size?: number | undefined; value: string; }); } export type InvalidBytesBooleanErrorType = InvalidBytesBooleanError & { name: 'InvalidBytesBooleanError'; }; export declare class InvalidBytesBooleanError extends BaseError { constructor(bytes: Bytes); } export type InvalidHexBooleanErrorType = InvalidHexBooleanError & { name: 'InvalidHexBooleanError'; }; export declare class InvalidHexBooleanError extends BaseError { constructor(hex: Hex); } export type InvalidHexValueErrorType = InvalidHexValueError & { name: 'InvalidHexValueError'; }; export declare class InvalidHexValueError extends BaseError { constructor(value: Hex); } export type SizeOverflowErrorType = SizeOverflowError & { name: 'SizeOverflowError'; }; export declare class SizeOverflowError extends BaseError { constructor({ givenSize, maxSize }: { givenSize: number; maxSize: number; }); } export type SliceOffsetOutOfBoundsErrorType = SliceOffsetOutOfBoundsError & { name: 'SliceOffsetOutOfBoundsError'; }; export declare class SliceOffsetOutOfBoundsError extends BaseError { constructor({ offset, position, size, }: { offset: number; position: 'start' | 'end'; size: number; }); } export type SizeExceedsPaddingSizeErrorType = SizeExceedsPaddingSizeError & { name: 'SizeExceedsPaddingSizeError'; }; export declare class SizeExceedsPaddingSizeError extends BaseError { constructor({ size, targetSize, type, }: { size: number; targetSize: number; type: 'hex' | 'bytes'; }); } export type InvalidBytesLengthErrorType = InvalidBytesLengthError & { name: 'InvalidBytesLengthError'; }; export declare class InvalidBytesLengthError extends BaseError { constructor({ size, targetSize, type, }: { size: number; targetSize: number; type: 'hex' | 'bytes'; }); } //# sourceMappingURL=data.d.ts.map