import type { CommentNode, Element, TextNode } from 'parse5'; import type { Decoration, Decoration_Type, Node } from 'ricos-schema'; export type ContentNode = Element | TextNode | CommentNode; export type Context = { readonly decorations: Decoration[]; visit: (element: Element) => Node[]; addDecoration: (type: Decoration_Type, data: Omit, element: Element) => Node[]; }; export type Rule = [ (contentNode: ContentNode) => boolean, (context: Context) => (contentNode: ContentNode) => Node[] ]; //# sourceMappingURL=models.d.ts.map