// engine/event-schema-validator/helpers.ts — Private type helpers (SPEC-031)
export function getJsonType(value) {
    if (value === null) {
        return 'null';
    }
    if (Array.isArray(value)) {
        return 'array';
    }
    return typeof value;
}
export function typesMatch(actual, expected) {
    if (actual === expected) {
        return true;
    }
    /* v8 ignore next 3 — actual===expected===number already returned true at line 14 */
    if (expected === 'number' && actual === 'number') {
        return true;
    }
    if (expected === 'integer' && actual === 'number') {
        return true;
    }
    return false;
}
export function asStringArray(value) {
    return Array.isArray(value) ? value : [];
}
export function asPropertiesMap(value) {
    if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
        return value;
    }
    return {};
}
//# sourceMappingURL=helpers.js.map