import { NodeDefinition, NodeLike, StatelessGraphNode, StatelessNodeDefinition, StatelessNodeType } from '../../types/graph'; /** * An instance of the [[min]] node. * See the [[min]] documentation to find out more. */ export interface MinNode extends StatelessGraphNode<'min', MinNodeProperties> { } /** * A definition of the [[min]] node. * See the [[min]] documentation to find out more. */ export interface MinNodeDefinition extends StatelessNodeDefinition<'min', MinNodeProperties> { } export interface MinNodeProperties { operands: Array; } /** * The implementation of the [[min]] node. * See the [[min]] documentation to learn more. */ export declare const MinNodeType: StatelessNodeType<'min', MinNodeProperties>; /** * Creates a new instance of a [[min]] node, which is a type of a [[NodeDefinition]] used when retrieving a minimum value * of given operands. The node expects the operands to be a [value](_nodes_graph_value_.html#value) node * that contains a numeric value. It work in a similar way as the `Math.min(...)` function from JS. * @returns {MinNodeDefinition} * * * @example **Compute the minimum value** * ```js * import muster, { min, ref } from '@dws/muster'; * * const app = muster({ * zero: 0, * }); * * await app.resolve(min(1, ref('zero'), 0.5)); * // === '0.5' * ``` */ export declare function min(...operands: Array): MinNodeDefinition; export declare function isMinNodeDefinition(value: NodeDefinition): value is MinNodeDefinition;