//#region src/utils/validation.d.ts /** * @description Validate that a required configuration value is set * @param {T | undefined} value - The value to validate * @param {string} errorMessage - Error message if validation fails * @returns {T} The validated value * @throws {ConfigurationError} If the value is not set */ declare function validateRequired(value: T | undefined, errorMessage: string): T; /** * @description Validate that a Sui address is valid * @param {string} address - The address to validate * @param {string} [fieldName] - Name of the field for error messages (default 'Address') * @returns {string} The validated address * @throws {ValidationError} If the address is invalid */ declare function validateAddress(address: string, fieldName?: string): string; /** * @description Validate that a number is positive * @param {number} value - The value to validate * @param {string} fieldName - Name of the field for error messages * @returns {number} The validated value * @throws {ValidationError} If the value is not positive */ declare function validatePositiveNumber(value: number, fieldName: string): number; /** * @description Validate that a number is non-negative * @param {number} value - The value to validate * @param {string} fieldName - Name of the field for error messages * @returns {number} The validated value * @throws {ValidationError} If the value is negative */ declare function validateNonNegativeNumber(value: number, fieldName: string): number; /** * @description Validate that a value is within a specified range * @param {number} value - The value to validate * @param {number} min - Minimum allowed value (inclusive) * @param {number} max - Maximum allowed value (inclusive) * @param {string} fieldName - Name of the field for error messages * @returns {number} The validated value * @throws {ValidationError} If the value is outside the range */ declare function validateRange(value: number, min: number, max: number, fieldName: string): number; /** * @description Validate array is not empty * @param {T[]} array - The array to validate * @param {string} fieldName - Name of the field for error messages * @returns {T[]} The validated array * @throws {ValidationError} If the array is empty */ declare function validateNonEmptyArray(array: T[], fieldName: string): T[]; //#endregion export { validateAddress, validateNonEmptyArray, validateNonNegativeNumber, validatePositiveNumber, validateRange, validateRequired }; //# sourceMappingURL=validation.d.mts.map