import type { InlineTool, InlineToolConstructorOptions } from "@editorjs/editorjs"; export type FontSizeOption = { label: string; value: string; }; export type FontFamilyOption = { label: string; value: string; }; interface TextStyleConfig { fontSizeEnabled?: boolean; fontFamilyEnabled?: boolean; fontSizes?: FontSizeOption[]; fontFamilies?: FontFamilyOption[]; defaultFontSize?: string; defaultFontFamily?: string; } export default class TextStyleInlineTool implements InlineTool { private api; private button; private config; constructor({ api, config, }: InlineToolConstructorOptions & { config?: TextStyleConfig; }); static get title(): string; static get isInline(): boolean; static get CSS(): string; private toggleActiveClass; private createButton; render(): HTMLElement; wrap(range: Range): void; unwrap(parent: HTMLElement): void; surround(range: Range): void; applyStyleOnUserAction(style: "fontSize" | "fontFamily", value: string): void; checkState(selection: Selection): boolean; private detectStyle; isTextStyleApplied(): boolean; renderActions(): HTMLDivElement; static get sanitize(): { span: { class: string; style: boolean; }; }; } export interface TextStyleToolConfig { class: typeof TextStyleInlineTool; inlineToolbar?: boolean | string[]; config?: TextStyleConfig; } export {}; //# sourceMappingURL=TextStyleTool.d.ts.map