import { FieldSchema } from '@ephox/boulder';
import { Cell, Fun } from '@ephox/katamari';
import { Toolbar } from '../../api/ui/Toolbar';
import * as Fields from '../../data/Fields';
import * as PartType from '../../parts/PartType';
import * as SplitToolbarBase from '../common/SplitToolbarBase';
import * as ToolbarSchema from './ToolbarSchema';
const schema = Fun.constant([
    Fields.markers(['overflowToggledClass']),
    FieldSchema.optionFunction('getOverflowBounds'),
    FieldSchema.required('lazySink'),
    FieldSchema.customField('overflowGroups', () => Cell([]))
].concat(SplitToolbarBase.schema()));
const parts = Fun.constant([
    PartType.required({
        factory: Toolbar,
        schema: ToolbarSchema.schema(),
        name: 'primary'
    }),
    PartType.external({
        schema: ToolbarSchema.schema(),
        name: 'overflow'
    }),
    PartType.external({
        name: 'overflow-button'
    }),
    PartType.external({
        name: 'overflow-group'
    })
]);
const name = Fun.constant('SplitFloatingToolbar');
export { name, schema, parts };
//# sourceMappingURL=SplitFloatingToolbarSchema.js.map