import type { InlineEditor, KeyboardBindingContext } from '@blockeditor/inline'; import { type AttributeRenderer, type BaseTextAttributes, type DeltaInsert, type InlineRange, type KeyboardBindingHandler } from '@blockeditor/inline'; import type { Y } from '@blockeditor/store'; import { type ZodObject, type ZodTypeAny } from 'zod'; export type InlineSpecs = { name: string; schema: ZodTypeAny; match: (delta: DeltaInsert) => boolean; renderer: AttributeRenderer; embed?: boolean; }; export type InlineMarkdownMatchAction = (props: { inlineEditor: InlineEditor; prefixText: string; inlineRange: InlineRange; pattern: RegExp; undoManager: Y.UndoManager; }) => ReturnType; export type InlineMarkdownMatch = { name: string; pattern: RegExp; action: InlineMarkdownMatchAction; }; export declare class InlineManager { private _specs; get specs(): InlineSpecs[]; private _markdownMatches; get markdownMatches(): InlineMarkdownMatch[]; registerSpecs(specs: InlineSpecs[]): void; registerMarkdownMatches(markdownMatches: InlineMarkdownMatch[]): void; markdownShortcutHandler: (context: KeyboardBindingContext, undoManager: Y.UndoManager) => boolean; embedChecker: (delta: DeltaInsert) => boolean; getRenderer(): AttributeRenderer; getSchema(): ZodObject>; } //# sourceMappingURL=inline-manager.d.ts.map