import ArgumentAssertionBuilder, { IArgumentAssertionBuilder } from './ArgumentAssertionBuilder'; import { IComparable } from '../Comparers/_types'; export default class StringArgumentAssertionBuilder extends ArgumentAssertionBuilder implements IArgumentAssertionBuilder { /** * Ensures the string is not null, undefined or empty * @throws {ArgumentNullException} * @throws {ArgumentUndefinedException} * @throws {ArgumentException} */ isNotNullOrUndefinedOrEmpty(): this; /** * Ensures the string is not empty * @throws {ArgumentException} */ isNotEmpty(): this; /** * Ensures the string matches the specified regex. * @param {RegExp} regex The regex. * @throws {ArgumentException} */ matchesRegex(regex: RegExp): this; /** * Ensures the string is greater than or equal to the specified value. * @param {T} value The value. * @throws {ArgumentException} */ isGreaterThanOrEqualTo(value: T): this; /** * Ensures the string is less than or equal to the specified value. * @param value The value. * */ isLessThanOrEqualTo(value: T): this; /** * Ensures the string is less than the specified value. * @param {T} value The value. * @throws {ArgumentException} */ isLessThan(value: T): this; /** * Ensures the string is greater than the specified value. * @param {T} value The value. * @throws {ArgumentException} */ isGreaterThan(value: T): this; /** * Ensures the string is equal to the specified value. * @param {T} value The value. * @throws {ArgumentException} */ isEqualTo(value: T): this; }