import { InlineTool, SanitizerConfig } from '@editorjs/editorjs'; import { ParagraphTextTool } from './tool-type/text-tool.component'; import { TextAlign } from '../utils/texts.component'; /** * Text alignment tool for EditorJS * Allows applying text alignment to selected text or entire blocks */ export declare class TextAlignTool extends ParagraphTextTool implements InlineTool { static title: string; private readonly commandName; tag: string; hasSeparatorBefore: boolean; textAlign: Array; classes: string; CSS: { button: string; buttonActive: string; buttonModifier: string; arrowButtonModifier: string; textSelectionModifier: string; }; nodes: { button: HTMLButtonElement | null; }; private selectedBlocksService; api: any; private _state; static get isInline(): boolean; static get sanitize(): SanitizerConfig; get state(): boolean; set state(state: boolean); constructor({ api }: { api: any; }); /** * Creates and configures the tool button with dropdown functionality */ render(): HTMLElement; /** * Applies text alignment to selected text or selected blocks */ surround(range: Range | null, applyStyle?: boolean): Promise; /** * Applies text alignment to all selected blocks */ private applyTextAlignToSelectedBlocks; /** * Applies text alignment to a specific block */ private applyTextAlignToBlock; /** * Applies text alignment to a block element */ private applyTextAlignToBlockElement; /** * Finds the current container element within the block element */ private findCurrentContainer; /** * Applies text alignment class to the container element */ private applyTextAlignClass; /** * Renders the dropdown actions for text alignment options */ renderActions(): HTMLDivElement; /** * Shows the dropdown actions */ showActions(mark: any): void; /** * Hides the dropdown actions */ hideActions(): void; /** * Applies text alignment style from dropdown selection */ applyTextStyle(event: MouseEvent, classToApply: string): Promise; /** * Gets a block by its ID */ private getBlockById; /** * Gets the block element */ private getBlockElement; /** * Checks the tool state based on selection */ checkState(selection: Selection | null): boolean; }