/**
 * Validation helper functions for configuration objects
 */
export const isValidStringOrRegExp = (value, defaultValue) => {
    return typeof value === 'string' || value instanceof RegExp ? value : defaultValue;
};
export const isValidString = (value, defaultValue) => {
    return typeof value === 'string' ? value.trim() : defaultValue;
};
export const isValidNumber = (value, defaultValue) => {
    return typeof value === 'number' ? value : defaultValue;
};
export const isValidBoolean = (value, defaultValue) => {
    return typeof value === 'boolean' ? value : defaultValue;
};
export const isValidArray = (value, defaultValue) => {
    return Array.isArray(value) ? value : defaultValue;
};
export const isValidEnum = (value, defaultValue, enumValues) => {
    return enumValues.includes(value) ? value : defaultValue;
};
export const isValidFunction = (value, defaultValue) => {
    return typeof value === 'function' ? value : defaultValue;
};
//# sourceMappingURL=validators.js.map