import { IToolbar, SylApi, Types } from '@syllepsis/adapter'; import { IToolbarOption, TContent, TMoreContent, TTrigger } from '@syllepsis/editor'; declare const noop: () => void; declare enum ToolDisplay { HORIZON = "horizon", VERTICAL = "vertical" } declare type ToolbarType = 'static' | 'inline'; declare const getGroupKey: (data: TMoreContent) => string; declare const getToolDisplay: (type?: number | undefined) => ToolDisplay; declare const getHandler: (toolbar: IToolbar, callback: IToolbarOption['onToolClick']) => (editor: SylApi, name?: string | undefined, attrs?: Types.StringMap | undefined) => (() => void) | undefined; declare const uuid: () => string; interface IRenderSylButton { activeFormat: Types.StringMap; content: TContent; editor: SylApi; option: IToolbarOption & Types.StringMap; depth?: number; props?: Types.StringMap; selectProps?: { trigger: TTrigger; } & Types.StringMap; buttonProps?: Types.StringMap; toolbarType: ToolbarType; extra?: { groupKey?: string; config?: TMoreContent['contentOption']; }; } declare const renderSylButton: ({ activeFormat, content, editor, option, depth, toolbarType, selectProps, buttonProps, extra, }: IRenderSylButton) => JSX.Element; interface IRenderMoreButton { editor: SylApi; content: TMoreContent; depth: number; toolbarType: ToolbarType; option: IToolbarOption; groupKey: string; renderMenu: (content: Array, depth: number) => JSX.Element[]; } declare const renderMoreToolButton: ({ editor, renderMenu, option, content, toolbarType, groupKey, depth, }: IRenderMoreButton) => JSX.Element; export { getGroupKey, getHandler, getToolDisplay, noop, renderMoreToolButton, renderSylButton, ToolbarType, ToolDisplay, uuid, };