const COMMAND_ALIASES = {
    flip: 'toggle',
    switch: 'toggle',
    display: 'show',
    reveal: 'show',
    conceal: 'hide',
    increase: 'increment',
    decrease: 'decrement',
    fire: 'trigger',
    dispatch: 'send',
    navigate: 'go',
    goto: 'go',
};
const EVENT_ALIASES = {
    clicked: 'click',
    pressed: 'keydown',
    changed: 'change',
    submitted: 'submit',
    loaded: 'load',
};
function normalizeCommand(name) {
    const lower = name.toLowerCase();
    return COMMAND_ALIASES[lower] || lower;
}
function normalizeEvent(name) {
    const lower = name.toLowerCase();
    return EVENT_ALIASES[lower] || lower;
}
function addCommandAliases(aliases) {
    Object.assign(COMMAND_ALIASES, aliases);
}
function addEventAliases(aliases) {
    Object.assign(EVENT_ALIASES, aliases);
}

export { COMMAND_ALIASES, EVENT_ALIASES, addCommandAliases, addEventAliases, normalizeCommand, normalizeEvent };
//# sourceMappingURL=aliases.mjs.map
