export function validateConfiguration(config, validator) {
    const result = validator(config);
    if (!result.success) {
        const errorMessages = result.errors.map((e) => `  - ${e.path}: ${e.message}`).join('\n');
        throw new Error(`Configuration validation failed:
${errorMessages}`);
    }
}
//# sourceMappingURL=validation.js.map