import { Focus } from '@ephox/sugar';
const focus = (component, focusConfig) => {
    if (!focusConfig.ignore) {
        Focus.focus(component.element);
        focusConfig.onFocus(component);
    }
};
const blur = (component, focusConfig) => {
    if (!focusConfig.ignore) {
        Focus.blur(component.element);
    }
};
const isFocused = (component) => Focus.hasFocus(component.element);
export { focus, blur, isFocused };
//# sourceMappingURL=FocusApis.js.map