type Falsy = undefined | null | false | '' | 0; /** * Type guard that checks if a value is *truthy*. * * This narrows out common falsy values: `undefined`, `null`, `false`, `''` (empty string), and `0`. * It’s especially useful for filtering arrays to remove falsy values with proper TypeScript narrowing. * * @template Truthy The inferred type of a truthy value. * @param value The value to check. * @returns `true` if the value is truthy; otherwise `false`. * * @example * const arr = [0, 1, '', 'hello', false, true]; * const truthyValues = arr.filter(isTruthy); // [1, 'hello', true] */ export declare function isTruthy(value: Truthy | Falsy): value is Truthy; export {}; //# sourceMappingURL=is-truthy.d.ts.map