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