import { AbstractObjectSchema } from "./schema"; /** * Schema for Number */ export declare class NumberObjectSchema extends AbstractObjectSchema { /** * Creates number schema * @returns a new instance of NumberObjectSchema */ static create(): NumberObjectSchema; private schema; /** * Constructor */ constructor(); /** * Sets default value, in case the object is null, undefined or cannot be parsed * @param defaultValue The default value * @returns self */ withDefaultValue(defaultValue: number): NumberObjectSchema; /** * Forces number to integer * @returns self */ forceInteger(): NumberObjectSchema; /** * Allows NaN as an option. * By default, if NaN, the default value is set. * @returns self */ allowNaN(): NumberObjectSchema; /** * Allos Infinite values * By default, infinite values are ignored, and default value is set. * @returns self */ allowInfinite(): NumberObjectSchema; /** * Sets the min value. If the value is lower, this value will be set. * @param min The min value * @returns self */ withMin(min: number): NumberObjectSchema; /** * Sets the max value. if the value is greater, this value will be set. * @param max The max value * @returns self */ withMax(max: number): NumberObjectSchema; /** * Sets an enumeration of allowed values * @param enumeration The enumeration * @returns self */ withEnumeration(enumeration: number[]): NumberObjectSchema; }