import type { IDisposable } from './IDisposable'; /** * Performs common validation tests for properties and function parameters. * * @remarks * * This class implements provides a standard way to validate properties and function parameters. * Unlike debug assertions, Validate checks are always performed and will always throw an error, * even in a production release. As such, be careful not to overuse these checks in a way * that might impact performance. * * @public */ export default class Validate { /** * Throws an exception if the specified value is not true. * @param value - the value to check * @param variableName - the program variable name, which will be mentioned in the error message */ static isTrue(value: boolean | undefined | null, variableName: string): void; /** * Throws an exception if the specified value is null or undefined. * @param value - the value to check * @param variableName - the program variable name, which will be mentioned in the error message */ static isNotNullOrUndefined(value: unknown, variableName: string): void; /** * Throws an exception if the specified string is null, undefined, or an empty string. * @param value - the value to check * @param variableName - the program variable name, which will be mentioned in the error message */ static isNonemptyString(value: string | undefined | null, variableName: string): void; /** * Throws an exception if the specified object has been disposed. * @param value - the value to check * @param className - the class name, which will be mentioned in the error message */ static isNotDisposed(value: IDisposable, className: string): void; } //# sourceMappingURL=Validate.d.ts.map