// Copyright (c) 2026 Modelware. All rights reserved.
import { parse } from 'yaml';
export function parseYamlMap(input) {
    try {
        const parsed = parse(input);
        return isPlainObject(parsed) ? parsed : undefined;
    }
    catch {
        return undefined;
    }
}
function isPlainObject(value) {
    return typeof value === 'object' && value !== null && !Array.isArray(value);
}
//# sourceMappingURL=md-yaml.js.map