import type EditorJS from '@editorjs/editorjs'; import type { BlockMutationEvent, OutputData } from '@editorjs/editorjs'; import type { Observable } from 'rxjs'; import { CuiBlock } from '@cuby-ui/api'; import type { CuiCombinedBlockAddingEvent, CuiCombinedBlockToolData, CuiEventActionData, CuiFullBlockData } from '../interfaces'; import * as i0 from "@angular/core"; export declare class CuiEditorService { private readonly destroyRef; private readonly jtextService; sortEventsByTypes(events: BlockMutationEvent[]): CuiEventActionData; collectAddedBlocksRequest(editorId: string, addedBlocks: CuiFullBlockData[]): Observable; collectUpdatedBlocksRequest(updatedBlocks: CuiBlock[], blockIdsMap: Map): Observable; collectRemovedBlocksRequest(editorId: string, removedBlocksIds: string[], blockIdsMap: Map): Observable; getFullBlockData(event: BlockMutationEvent, editorData: OutputData): CuiFullBlockData; setListenersOnCustomBlockChanges(editor: EditorJS, data: { removedCallback: (blockIds: string[]) => void; updatedCallback: (updatedBlocks: CuiBlock[]) => void; addedCallback: (data: CuiCombinedBlockAddingEvent) => void; }): void; setStartBlock(editorId: string, callback: (block: CuiBlock, id: string) => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }