import { InlineTool, SanitizerConfig } from '@editorjs/editorjs'; import { ParagraphStyleTool } from './tool-type/paragraph-style-tool.component'; /** * Quote formatting tool for EditorJS * Allows applying quote formatting to selected text or entire blocks */ export declare class QuoteTool extends ParagraphStyleTool implements InlineTool { static title: string; private readonly commandName; tag: string; CSS: { button: string; buttonActive: string; buttonModifier: string; }; nodes: { button: HTMLButtonElement | null; }; private selectedBlocksService; api: any; private _state; private readonly BLOCK_ELEMENTS; 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 */ render(): HTMLElement; /** * Applies quote formatting to selected text or selected blocks */ surround(range: Range): Promise; /** * Applies quote formatting to all selected blocks */ private applyQuoteToSelectedBlocks; /** * Applies quote formatting to a specific block */ private applyQuoteToBlock; /** * Applies quote formatting to a block element */ private applyQuoteToBlockElement; /** * Recursively finds the deepest block element in the hierarchy */ private findDeepestBlockElement; /** * Unwraps any spans that might be wrapping the block element */ private unwrapSpans; /** * Applies quote to the specified element */ private applyQuoteToElement; /** * 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; }