/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { IExecuteContext, TaskConfig } from "@workglow/task-graph"; import { CreateWorkflow, Task } from "@workglow/task-graph"; import type { FromSchema } from "@workglow/util/schema"; declare const inputSchema: { readonly type: "object"; readonly properties: { readonly value: { readonly type: "number"; readonly title: "Value"; readonly description: "Input number"; }; }; readonly required: readonly ["value"]; readonly additionalProperties: false; }; declare const outputSchema: { readonly type: "object"; readonly properties: { readonly result: { readonly type: "number"; readonly title: "Result"; readonly description: "Rounded value"; }; }; readonly required: readonly ["result"]; readonly additionalProperties: false; }; export type ScalarRoundTaskInput = FromSchema; export type ScalarRoundTaskOutput = FromSchema; export declare class ScalarRoundTask extends Task { static readonly type = "ScalarRoundTask"; static readonly category = "Math"; static title: string; static description: string; static inputSchema(): { readonly type: "object"; readonly properties: { readonly value: { readonly type: "number"; readonly title: "Value"; readonly description: "Input number"; }; }; readonly required: readonly ["value"]; readonly additionalProperties: false; }; static outputSchema(): { readonly type: "object"; readonly properties: { readonly result: { readonly type: "number"; readonly title: "Result"; readonly description: "Rounded value"; }; }; readonly required: readonly ["result"]; readonly additionalProperties: false; }; execute(input: Input, _context: IExecuteContext): Promise; } declare module "@workglow/task-graph" { interface Workflow { scalarRound: CreateWorkflow; } } export {};