import { Class } from '@ephox/sugar';
const swap = (element, addCls, removeCls) => {
    Class.remove(element, removeCls);
    Class.add(element, addCls);
};
const toAlpha = (component, swapConfig, _swapState) => {
    swap(component.element, swapConfig.alpha, swapConfig.omega);
};
const toOmega = (component, swapConfig, _swapState) => {
    swap(component.element, swapConfig.omega, swapConfig.alpha);
};
const clear = (component, swapConfig, _swapState) => {
    Class.remove(component.element, swapConfig.alpha);
    Class.remove(component.element, swapConfig.omega);
};
const isAlpha = (component, swapConfig, _swapState) => Class.has(component.element, swapConfig.alpha);
const isOmega = (component, swapConfig, _swapState) => Class.has(component.element, swapConfig.omega);
export { toAlpha, toOmega, isAlpha, isOmega, clear };
//# sourceMappingURL=SwapApis.js.map