import { ExtendedRegExpMatchArray, InputRule, InputRuleFinder } from '@tiptap/core'; import { NodeType } from '@tiptap/pm/model'; /** * Build an input rule that changes the type of a textblock when the * matched text is typed into it. When using a regular expresion you’ll * probably want the regexp to start with `^`, so that the pattern can * only occur at the start of a textblock. * * 基于 tiptap 的 textblockTypeInputRule 方法,修改了 handler 方法,使其支持在输入规则后,自动聚焦到编辑器 */ export declare function textblockTypeInputRule(config: { find: InputRuleFinder; type: NodeType; getAttributes?: Record | ((match: ExtendedRegExpMatchArray) => Record) | false | null; autoFocus?: boolean; }): InputRule; //# sourceMappingURL=textblockTypeInputRule.d.ts.map