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