interface CheckError extends Error { [key: string]: unknown; } declare function check(condition: unknown, message: string | Record): asserts condition; declare function is(value: T): value is NonNullable; declare function checkWith(ErrorClass: new (message: string) => E, condition: unknown, message: string): asserts condition; export { type CheckError, check, checkWith, is };