import { LaraJoinPoint } from "../LaraJoinPoint.js";
/**
 * Utility methods to check preconditions.
 *
 */
export default class Check {
    /**
     * @deprecated Use the javascript `throw` statement instead
     */
    static isTrue(booleanExpr: boolean, message?: string, source?: string): void;
    /**
     * @deprecated Use the javascript '===' operator instead
     */
    static isUndefined<T>(value: T): boolean;
    /**
     * @deprecated Use the javascript '===' operator instead
     */
    static isDefined<T>(value: T, message?: string): void;
    /**
     * @deprecated Use the javascript 'instanceof' operator instead
     */
    static instance<T>(value: T, type: string, source?: string, userTypeName?: string): void;
    /**
     * @deprecated Use LaraCore.checkType instead
     */
    static type<T>(value: T, type: string, source: string): void;
    /**
     * @deprecated Use the javascript `instanceof` operator instead
     */
    static isBoolean<T>(variable: T, source: string): void;
    /**
     * @deprecated Use the javascript `instanceof` operator instead
     */
    static isString<T>(variable: T, source: string): void;
    /**
     * @deprecated Use the javascript `instanceof` operator instead
     */
    static isNumber<T>(variable: T, source: string): void;
    /**
     * @deprecated Use the javascript `instanceof` operator instead
     */
    static isArray<T>(variable: T, source: string): void;
    /**
     * @deprecated Use the javascript `instanceof` operator instead
     */
    static isRegex<T>(variable: T, source: string): void;
    /**
     * Checks if the given value is a join point. If a type is given, checks if the join point is an instance of the given type. Otherwise, throws an exception.
     *
     * @param $jp -
     * @param type -
     * @param isOptional - If true, passes check if value is undefined
     *
     * @deprecated Use the javascript `instanceof` operator instead
     */
    static isJoinPoint($jp: LaraJoinPoint, type?: string | typeof LaraJoinPoint, isOptional?: boolean): void;
    /**
     * Checks if two strings are identical, not considering empty spaces. Throws and exception if strings do not match.
     */
    static strings(currentString: string, expectedString: string): void;
    /**
     * @param original - The original text
     * @param revised - The revised text
     */
    static diff(original: string, revised: string): any;
    /**
     * Checks if the array contains the element. Throws an expression if it doens't.
     * The test is equivalent to array.indexOf(element) != -1.
     *
     * @deprecated Use the javascript `array.includes(element)` method instead
     */
    static arrayContains<T>(array: T[], element: T, message?: string, source?: string): void;
}
//# sourceMappingURL=Check.d.ts.map