import { NodeDefinition, NodeLike, StaticGraphNode, StaticNodeDefinition, StaticNodeType } from '../../types/graph'; /** * An instance of the [[regex]] node. * See the [[regex]] documentation to find out more. */ export interface RegexNode extends StaticGraphNode<'regex', RegexNodeProperties, SerializedRegexNodeProperties> { } /** * A definition of the [[regex]] node. * See the [[regex]] documentation to find out more. */ export interface RegexNodeDefinition extends StaticNodeDefinition<'regex', RegexNodeProperties, SerializedRegexNodeProperties> { } export interface RegexNodeProperties { pattern: RegExp; } export interface SerializedRegexNodeProperties { pattern: { source: string; flags: string; }; } /** * The implementation of the [[regex]] node. * See the [[regex]] documentation to learn more. */ export declare const RegexNodeType: StaticNodeType<'regex', RegexNodeProperties, SerializedRegexNodeProperties>; /** * Creates a new instance of a [[regex]] node, which is used for storing a regular expressions in a form understandable * by Muster. */ export declare function regex(pattern: string | RegExp): RegexNodeDefinition; export declare function isRegexNodeDefinition(regex: NodeDefinition): regex is RegexNodeDefinition; export declare function toRegex(pattern: NodeLike): NodeDefinition;