import { FieldSchema } from '@ephox/boulder';
import { Arr, Fun } from '@ephox/katamari';
import { derive } from '../behaviour/Behaviour';
const field = (name, forbidden) => FieldSchema.defaultedObjOf(name, {}, Arr.map(forbidden, (f) => FieldSchema.forbid(f.name(), 'Cannot configure ' + f.name() + ' for ' + name)).concat([
    FieldSchema.customField('dump', Fun.identity)
]));
const get = (data) => data.dump;
const augment = (data, original) => ({
    ...derive(original),
    ...data.dump
});
// Is this used?
export const SketchBehaviours = {
    field,
    augment,
    get
};
export { field, get, augment };
//# sourceMappingURL=SketchBehaviours.js.map