/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module basic-styles/utils */ import type { Editor, Plugin } from '@ckeditor/ckeditor5-core'; import { MenuBarMenuListItemButtonView, type ButtonView } from '@ckeditor/ckeditor5-ui'; /** * Returns a function that creates a (toolbar or menu bar) button for a basic style feature. * * @internal */ export declare function getButtonCreator({ editor, commandName, plugin, icon, label, keystroke }: { editor: Editor; commandName: string; icon: string; label: string; plugin: Plugin; keystroke?: string; }): (ButtonClass: T) => InstanceType;