/** * @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 additionalProperties: true; }; declare const outputSchema: { readonly type: "object"; readonly properties: { readonly output: { readonly type: "array"; readonly title: "Merged Array"; readonly description: "Array containing all input values in order"; }; }; readonly additionalProperties: false; }; export type MergeTaskInput = FromSchema; export type MergeTaskOutput = FromSchema; /** * Merges multiple input properties into a single array output. Properties are * sorted by key name (natural numeric) for deterministic ordering. * * Example: `{ input_0: "a", input_1: "b" }` → `{ output: ["a", "b"] }`. */ export declare class MergeTask extends Task { static type: string; static category: string; static title: string; static description: string; static readonly cacheable = true; static inputSchema(): { readonly type: "object"; readonly properties: {}; readonly additionalProperties: true; }; static outputSchema(): { readonly type: "object"; readonly properties: { readonly output: { readonly type: "array"; readonly title: "Merged Array"; readonly description: "Array containing all input values in order"; }; }; readonly additionalProperties: false; }; execute(input: Input, _context: IExecuteContext): Promise; } export declare const merge: (input: MergeTaskInput, config?: TaskConfig) => Promise<{ output?: unknown[] | undefined; }>; declare module "@workglow/task-graph" { interface Workflow { merge: CreateWorkflow; } } export {};