import { ValidationException } from './ValidationException'; /** * Is the value a number? * See: https://developer.mozilla.org/en-US/docs/Glossary/Number * * @example * ```ts * isNumber(1) // true * isNumber('') // false * ``` * * @param value the value to check * @returns a boolean indicating whether the value is the expected type */ export declare const isNumber: (value: unknown) => value is number; /** * Validate that the value is a number. * See: https://developer.mozilla.org/en-US/docs/Glossary/Number * * @example * ```ts * validateNumber(1) // null * validateNumber('') // ValidationException * ``` * * @param value the value to check * @returns `null` if the value is the expected type or a `ValidationException` * if not */ export declare const validateNumber: (value: unknown) => ValidationException | null; /** * Assert that the value is a number. * See: https://developer.mozilla.org/en-US/docs/Glossary/Number * * @example * ```ts * assertNumber(1) // void * assertNumber('') // throws AssertionException * ``` * * @param value the value to check * @throws an `AssertionException` if the value is not the expected type */ export declare const assertNumber: (value: unknown) => asserts value is number;