/** * The assertions of `assert`, each returning the value it checked, so they can * be used where a value is expected rather than as a statement of their own. * * ```ts * const port = ensure.integer(raw, "PORT must be a whole number"); * ``` */ export declare class ensure { private constructor(); static number(value: unknown, message?: string): number; static integer(value: unknown, message?: string): number; /** Inclusive of both bounds. */ static inRange(value: unknown, min: number, max: number, message?: string): number; static notNull(value: T, message?: string): Exclude; static defined(value: T, message?: string): Exclude; static present(value: T, message?: string): Exclude; }