import { NodeType } from '@sse-editor/pm/model'; import { InputRule, InputRuleFinder } from '../InputRule.js'; import { ExtendedRegExpMatchArray } from '../types.js'; /** * Build an input rule that adds a node when the * matched text is typed into it. */ export declare function nodeInputRule(config: { /** * The regex to match. */ find: InputRuleFinder; /** * The node type to add. */ type: NodeType; /** * A function that returns the attributes for the node * can also be an object of attributes */ getAttributes?: Record | ((match: ExtendedRegExpMatchArray) => Record) | false | null; }): InputRule;