/** * Collection of type guards. Use this module by importing from * `@sirpepe/shed/guard`. */ /** * Returns true when the argument is neither null nor undefined. Works as a type * guard in TypeScript. The inverse of `isNot()`. * * Example: * * ```typescript * is(42); // true * is(0); // true * is(null); // false * is(undefined); // false * ``` */ export declare function is(x: T | undefined | null): x is T; /** * Returns true when the argument is null or undefined. Works as a type guard in * TypeScript. The inverse of `is()`. * * Example: * * ```typescript * isNot(42); // false * isNot(0); // false * isNot(null); // true * isNot(undefined); // true * ``` */ export declare function isNot(x: T | undefined | null): x is null | undefined;