import type { Guard } from '../utils/types.js'; /** * Check if a value is a non-empty string. */ export declare function isNonEmptyString(value: unknown): value is string; /** * Check if a value is a string matching an email pattern. */ export declare function isEmail(value: unknown): value is string; /** * Check if a value is a valid URL string. */ export declare function isURL(value: unknown): value is string; /** * Check if a value is a valid UUID (v1-v5). */ export declare function isUUID(value: unknown): value is string; /** * Check if a value is a valid ISO 8601 date string. */ export declare function isISO8601(value: unknown): value is string; /** * Check if a value is a valid JSON string. */ export declare function isJSONString(value: unknown): value is string; /** * Check if a value is a string matching a hex color (#fff or #ffffff). */ export declare function isHexColor(value: unknown): value is string; /** * Check if a value is a positive number (> 0). */ export declare function isPositiveNumber(value: unknown): value is number; /** * Check if a value is a negative number (< 0). */ export declare function isNegativeNumber(value: unknown): value is number; /** * Check if a value is an integer. */ export declare function isInteger(value: unknown): value is number; /** * Check if a value is a safe integer (within Number.MAX_SAFE_INTEGER bounds). */ export declare function isSafeInteger(value: unknown): value is number; /** * Check if a value is a non-empty array. */ export declare function isNonEmptyArray(value: unknown): value is [T, ...T[]]; /** * Create a guard that checks if a number is within a range [min, max]. * * @example * ```ts * const isPercent = isInRange(0, 100); * isPercent(50) // true * isPercent(150) // false * ``` */ export declare function isInRange(min: number, max: number): Guard; /** * Create a guard that checks if a value is one of the specified values. * * @example * ```ts * const isDirection = isOneOf(['up', 'down', 'left', 'right'] as const); * if (isDirection(input)) { * // input is 'up' | 'down' | 'left' | 'right' * } * ``` */ export declare function isOneOf(values: T): Guard; /** * Create a guard that checks if a string matches a pattern. * * @example * ```ts * const isSlug = isMatch(/^[a-z0-9-]+$/); * isSlug("hello-world") // true * isSlug("Hello World") // false * ``` */ export declare function isMatch(pattern: RegExp): Guard; /** * Create a guard that checks if a string has a minimum length. */ export declare function isMinLength(min: number): Guard; /** * Create a guard that checks if a string has a maximum length. */ export declare function isMaxLength(max: number): Guard; /** * Check if a value is an instance of a given class. * * @example * ```ts * const isMyError = isInstanceOf(TypeError); * ``` */ export declare function isInstanceOf(constructor: new (...args: unknown[]) => T): Guard; //# sourceMappingURL=advanced.d.ts.map