import { BigNumber } from 'bignumber.js'; export type ValidatorParamType = { value?: string | number | bigint | boolean | BigNumber | Record | unknown[]; type: unknown; name?: string; msg?: string; names?: string[]; gt?: number; lt?: number; gte?: number; lte?: number; se?: number; optional?: boolean; }; /** * Strictly reads an integer argument: an integer number, a bigint, a plain digit string such as * '1000000' or an integer BigNumber. Anything else, including strings that merely coerce to an * integer ('1e6', '0x10', ' 12 ', ''), fractions, NaN/Infinity, booleans and arrays, yields * undefined. Builders encode the returned number, so the value written into a transaction is * always the one that was validated. */ export declare function toInteger(value: unknown): number | undefined; export declare class Validator { invalid(param: ValidatorParamType): string; notPositive(param: ValidatorParamType): string; notEqual(param: ValidatorParamType): string; notValid(params: ValidatorParamType[]): boolean; }