import type { ItemFlow, ControlFlow } from "../../types/flow/model"; import type { Position } from "../../types/state/position"; /** * Type guard for `ControlFlow` objects. * * @param flow An `ItemFlow` object. * @returns A boolean indicating whether the `flow` is a `ControlFlow` object. */ export declare function is(flow: ItemFlow): flow is ControlFlow; /** * Returns the initial position for the given `ControlFlow` object if there is an initial position, otherwise it returns `null`. * * @param flow A `ControlFlow` object. * @param values An object containing the generated values within the multi-step form. * @returns A `Position` object representing the initial position, or `null` if there is no initial position. */ export declare function into(flow: ControlFlow, values: Record): Position | null; /** * Returns the next position for the given `ControlFlow` object if there is a next position, otherwise it returns `null`. * * @param flow A `ControlFlow` object. * @param position A `Position` object representing the current position. * @param values An object containing the generated values within the multi-step form. * @returns A `Position` object representing the next position, or `null` if there is no next position. */ export declare function next(flow: ControlFlow, position: Position, values: Record): Position | null; /** * Returns the `ItemFlow` object at the given position within the given `ControlFlow` object. * * @param flow The `ControlFlow` object. * @param position The position within the `ControlFlow` object. * @returns The `ItemFlow` object at the given position within the `ControlFlow` object. */ export declare function at(flow: ControlFlow, position: Position): ItemFlow; /** * Returns the `ItemFlow` object at the given path within the given `ControlFlow` object. * * @param flow The `ControlFlow` object. * @param path The path within the `ControlFlow` object. * @returns The `ItemFlow` object at the given path within the `ControlFlow` object. */ export declare function find(flow: ControlFlow, path: Position[]): ItemFlow; //# sourceMappingURL=control.d.ts.map