import { isVNode, isWNode } from '@dojo/framework/core/vdom';
export var Keys;
(function (Keys) {
    Keys[Keys["Down"] = 40] = "Down";
    Keys[Keys["End"] = 35] = "End";
    Keys[Keys["Enter"] = 13] = "Enter";
    Keys[Keys["Escape"] = 27] = "Escape";
    Keys[Keys["Home"] = 36] = "Home";
    Keys[Keys["Left"] = 37] = "Left";
    Keys[Keys["PageDown"] = 34] = "PageDown";
    Keys[Keys["PageUp"] = 33] = "PageUp";
    Keys[Keys["Right"] = 39] = "Right";
    Keys[Keys["Space"] = 32] = "Space";
    Keys[Keys["Tab"] = 9] = "Tab";
    Keys[Keys["Up"] = 38] = "Up";
})(Keys || (Keys = {}));
export function formatAriaProperties(aria) {
    const formattedAria = Object.keys(aria).reduce((a, key) => {
        a[`aria-${key.toLowerCase()}`] = aria[key];
        return a;
    }, {});
    return formattedAria;
}
export function isRenderResult(child) {
    let childIsRenderResult = child == null ||
        typeof child === 'string' ||
        typeof child === 'boolean' ||
        Array.isArray(child) ||
        isWNode(child);
    try {
        childIsRenderResult = childIsRenderResult || isVNode(child);
    }
    catch (_a) { }
    return childIsRenderResult;
}

/*# sourceMappingURL=util.mjs.map*/