/** Assert that the given condition is truthy. If the condition is falsy, an `Error` will be thrown. Because of the `asserts condition` signature, TypeScript narrows types based on the asserted condition. @param message - Custom error message to use instead of the default. @example ``` import {assert} from 'ts-extras'; const value = getValue() as string | undefined; assert(value); // `value` is now of type `string` assert(value === 'unicorn', 'Expected a unicorn'); //=> Error: Expected a unicorn ``` @category Type guard */ export declare function assert(condition: unknown, message?: string): asserts condition;