import { NodeDefinition, NodeLike, StaticGraphNode, StaticNodeDefinition, StaticNodeType } from '../../types/graph'; /** * An instance of the [[when]] node. * See the [[when]] documentation to find out more. */ export interface WhenNode extends StaticGraphNode<'when', WhenNodeProperties> { } /** * A definition of the [[when]] node. * See the [[when]] documentation to find out more. */ export interface WhenNodeDefinition extends StaticNodeDefinition<'when', WhenNodeProperties> { } export interface WhenNodeProperties { pattern: NodeDefinition; value: NodeDefinition; } /** * The implementation of the [[when]] node. * See the [[when]] documentation to learn more. */ export declare const WhenNodeType: StaticNodeType<'when', WhenNodeProperties>; /** * Creates a new instance of a [[when]] node, which is used when defining a [[switchOn]] and * [[choose]] nodes. See the [[switchOn]] and [[choose]] documentation for examples of use. */ export declare function when(pattern: NodeDefinition | NodeLike, value: NodeDefinition | NodeLike): WhenNodeDefinition; export declare function isWhenNodeDefinition(value: NodeDefinition): value is WhenNodeDefinition;