import { NodeDefinition, NodeLike, StatelessGraphNode, StatelessNodeDefinition, StatelessNodeType } from '../../types/graph'; /** * An instance of the [[ceil]] node. * See the [[ceil]] documentation to find out more. */ export interface CeilNode extends StatelessGraphNode<'ceil', CeilNodeProperties> { } /** * A definition of the [[ceil]] node. * See the [[ceil]] documentation to find out more. */ export interface CeilNodeDefinition extends StatelessNodeDefinition<'ceil', CeilNodeProperties> { } export interface CeilNodeProperties { target: NodeDefinition; } /** * The implementation of the [[ceil]] node. * See the [[ceil]] documentation to learn more. */ export declare const CeilNodeType: StatelessNodeType<'ceil', CeilNodeProperties>; /** * Creates a new instance of a [[ceil]] node, which is a type of a [[NodeDefinition]] used when converting a number * (int or float) to a smallest integer greater or equal to the current number. * It works in the same way as the `Math.ceil` from JavaScript. * @returns {CeilNodeDefinition} * * @example **Ceil the value** * ```js * import muster, { ceil, ref } from '@dws/muster'; * * const app = muster({ * fivePointThree: 5.3, * }); * * await app.resolve(ceil(5)); * // === 5 * * await app.resolve(ceil(5.2)); * // === 6 * * await app.resolve(ceil(ref('fivePointThree'))); * // === 6 * ``` */ export declare function ceil(target: NodeLike): CeilNodeDefinition; export declare function isCeilNodeDefinition(value: NodeDefinition): value is CeilNodeDefinition;