export function createStructuredOutputNormalizerRegistry(normalizers) {
    return {
        normalize(value, context) {
            const normalizer = normalizers.find((candidate) => candidate.supports(context.step));
            return normalizer ? normalizer.normalize(value, context) : value;
        },
        buildFailureFallback(context) {
            const normalizer = normalizers.find((candidate) => candidate.supports(context.step));
            return normalizer?.buildFailureFallback?.(context);
        },
    };
}
//# sourceMappingURL=structured-output-normalizer.js.map