import { Fun } from '@ephox/katamari';
const uncurried = (handler, purpose) => ({
    handler,
    purpose
});
const curried = (handler, purpose) => ({
    cHandler: handler,
    purpose
});
const curryArgs = (descHandler, extraArgs) => curried(Fun.curry.apply(undefined, [descHandler.handler].concat(extraArgs)), descHandler.purpose);
const getCurried = (descHandler) => descHandler.cHandler;
const getUncurried = (descHandler) => descHandler.handler;
export { curried, uncurried, curryArgs, getCurried, getUncurried };
//# sourceMappingURL=DescribedHandler.js.map