import { NodeDefinition, NodeLike, StatelessGraphNode, StatelessNodeDefinition, StatelessNodeType } from '../../types/graph'; /** * An instance of the [[parseFloat]] node. * See the [[parseFloat]] documentation to find out more. */ export interface ParseFloatNode extends StatelessGraphNode<'parse-float', ParseFloatNodeProperties> { } /** * A definition of the [[parseFloat]] node. * See the [[parseFloat]] documentation to find out more. */ export interface ParseFloatNodeDefinition extends StatelessNodeDefinition<'parse-float', ParseFloatNodeProperties> { } export interface ParseFloatNodeProperties { subject: NodeDefinition; } /** * The implementation of the [[parseFloat]] node. * See the [[parseFloat]] documentation to learn more. */ export declare const ParseFloatNodeType: StatelessNodeType<'parse-float', ParseFloatNodeProperties>; /** * Creates a new instance of a [[parseFloat]] node, which is used to convert values of a [[value]] to a float. * * * @example **Convert string to a float** * ```js * import muster, { parseFloat, ref } from '@dws/muster'; * * const app = muster({ * one: '1', * two: 2, * threeAndAHalf: '3.5' * }); * * const one = await app.resolve(parseFloat(ref('one'))); * // one === 1 * * const two = await app.resolve(parseFloat(ref('two'))); * // two === 2 * * const three = await app.resolve(parseFloat(ref('threeAndAHalf'))); * // three === 3.5 * ``` * This example shows how to use the [[parseFloat]] to convert a value of a [[value]] * to a float. */ export declare function parseFloat(subject: NodeLike): ParseFloatNodeDefinition; export declare function isParseFloatNodeDefinition(value: NodeDefinition): value is ParseFloatNodeDefinition;