import { Fun, Optional } from '@ephox/katamari';
import * as Keys from '../alien/Keys';
import { NoState } from '../behaviour/common/BehaviourState';
import * as Fields from '../data/Fields';
import * as KeyMatch from '../navigation/KeyMatch';
import * as KeyRules from '../navigation/KeyRules';
import * as KeyingType from './KeyingType';
// NB: Tsc requires AlloyEventHandler and AlloyComponent to be imported here.
const schema = [
    Fields.onStrictKeyboardHandler('onEscape')
];
const doEscape = (component, simulatedEvent, escapeConfig, _escapeState) => escapeConfig.onEscape(component, simulatedEvent);
const getKeydownRules = Fun.constant([]);
const getKeyupRules = Fun.constant([
    KeyRules.rule(KeyMatch.inSet(Keys.ESCAPE), doEscape)
]);
export default KeyingType.typical(schema, NoState.init, getKeydownRules, getKeyupRules, () => Optional.none());
//# sourceMappingURL=EscapingType.js.map