//#region src/is-noyes/index.d.ts /** * Returns true if the given value is found in any of: * - `isFalse(val)` * - `isNo(val)` * - `isOff(val)` * * @param val - The value to check whether or not it is falsey. * @returns True if the value matches any falsy variant, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isAnyFalsy } from '@accelint/predicates/is-noyes'; * * isAnyFalsy(''); // true * isAnyFalsy('no'); // true * isAnyFalsy('off'); // true * isAnyFalsy(0); // true * isAnyFalsy(1); // false * isAnyFalsy(true); // false * isAnyFalsy('on'); // false * isAnyFalsy('yes'); // false * ``` */ declare const isAnyFalsy: (val: unknown) => boolean; /** * Returns true if the given value is found in any of: * - `isTrue(val)` * - `isYes(val)` * - `isOn(val)` * * @param val - The value to check whether or not it is truthy. * @returns True if the value matches any truthy variant, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isAnyTruthy } from '@accelint/predicates/is-noyes'; * * isAnyTruthy(''); // false * isAnyTruthy('no'); // false * isAnyTruthy('off'); // false * isAnyTruthy(0); // false * isAnyTruthy(1); // true * isAnyTruthy(true); // true * isAnyTruthy('on'); // true * isAnyTruthy('yes'); // true * ``` */ declare const isAnyTruthy: (val: unknown) => boolean; /** * Returns true if the given value is found in a case-insensitive list of * "false" values. * * False values: ['', '0', 'false', 'nan', 'null', 'undefined'] * * For a more liberal comparison/coercion to true or false see the converters * package (\@accelint/converters). * * @param val - The value to check whether or not it is false. * @returns True if the value is in the false values list, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isFalse } from '@accelint/predicates/is-noyes'; * * isFalse(''); // true * isFalse(0); // true * isFalse(1); // false * isFalse(true); // false * ``` */ declare const isFalse: (val: unknown) => boolean; /** * Returns true if the given value is found in a case-insensitive list of * "no" values. * * False values: ['', '0', 'false', 'nan', 'null', 'undefined'] * Additional values: ['n', 'no'] * * For a more liberal comparison/coercion to true or false see the converters * package (\@accelint/converters). * * @param val - The value to check whether or not it is no. * @returns True if the value is in the no values list, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isNo } from '@accelint/predicates/is-noyes'; * * isNo('n'); // true * isNo(''); // true * isNo(0); // true * isNo(1); // false * isNo(true); // false * isNo('yes'); // false * ``` */ declare const isNo: (val: unknown) => boolean; /** * Returns true if the given value is found in a case-insensitive list of * "off" values. * * False values: ['', '0', 'false', 'nan', 'null', 'undefined'] * Additional values: ['off'] * * For a more liberal comparison/coercion to true or false see the converters * package (\@accelint/converters). * * @param val - The value to check whether or not it is off. * @returns True if the value is in the off values list, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isOff } from '@accelint/predicates/is-noyes'; * * isOff('off'); // true * isOff(''); // true * isOff(0); // true * isOff(1); // false * isOff(true); // false * isOff('on'); // false * ``` */ declare const isOff: (val: unknown) => boolean; /** * Returns true if the given value is found in a case-insensitive list of * "on" values. * * True values: ['1', 'true'] * Additional values: ['on'] * * For a more liberal comparison/coercion to true or false see the converters * package (\@accelint/converters). * * @param val - The value to check whether or not it is on. * @returns True if the value is in the on values list, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isOn } from '@accelint/predicates/is-noyes'; * * isOn('off'); // false * isOn(''); // false * isOn(0); // false * isOn(1); // true * isOn(true); // true * isOn('on'); // true * ``` */ declare const isOn: (val: unknown) => boolean; /** * Returns true if the given value is found in a case-insensitive list of * "true" values. * * True values: ['1', 'true'] * * For a more liberal comparison/coercion to true or false see the converters * package (\@accelint/converters). * * @param val - The value to check whether or not it is true. * @returns True if the value is in the true values list, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isTrue } from '@accelint/predicates/is-noyes'; * * isTrue('no'); // false * isTrue(''); // false * isTrue(0); // false * isTrue(1); // true * isTrue(true); // true * isTrue('yes'); // true * ``` */ declare const isTrue: (val: unknown) => boolean; /** * Returns true if the given value is found in a case-insensitive list of * "yes" values. * * True values: ['1', 'true'] * Additional values: ['y', 'yes'] * * For a more liberal comparison/coercion to true or false see the converters * package (\@accelint/converters). * * @param val - The value to check whether or not it is yes. * @returns True if the value is in the yes values list, false otherwise. * * @remarks * pure function * * @example * ```typescript * import { isYes } from '@accelint/predicates/is-noyes'; * * isYes(''); // false * isYes(0); // false * isYes(1); // true * isYes(true); // true * isYes('yes'); // true * ``` */ declare const isYes: (val: unknown) => boolean; //#endregion export { isAnyFalsy, isAnyTruthy, isFalse, isNo, isOff, isOn, isTrue, isYes }; //# sourceMappingURL=index.d.ts.map