/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { IExecuteContext, IExecutePreviewContext, 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 template: { readonly type: "string"; readonly title: "Template"; readonly description: "Template string with {{key}} placeholders"; }; readonly values: { readonly type: "object"; readonly title: "Values"; readonly description: "Key-value pairs to substitute into the template"; readonly additionalProperties: true; }; }; readonly required: readonly ["template", "values"]; readonly additionalProperties: false; }; declare const outputSchema: { readonly type: "object"; readonly properties: { readonly text: { readonly type: "string"; readonly title: "Text"; readonly description: "Template with placeholders replaced by values"; }; }; readonly required: readonly ["text"]; readonly additionalProperties: false; }; export type StringTemplateTaskInput = FromSchema; export type StringTemplateTaskOutput = FromSchema; /** * @deprecated Use {@link TemplateTask} instead, which supports dot-notation paths * and `{{key|default}}` fallback syntax. */ export declare class StringTemplateTask extends Task { static readonly type = "StringTemplateTask"; static readonly category = "String"; static title: string; static description: string; static inputSchema(): { readonly type: "object"; readonly properties: { readonly template: { readonly type: "string"; readonly title: "Template"; readonly description: "Template string with {{key}} placeholders"; }; readonly values: { readonly type: "object"; readonly title: "Values"; readonly description: "Key-value pairs to substitute into the template"; readonly additionalProperties: true; }; }; readonly required: readonly ["template", "values"]; readonly additionalProperties: false; }; static outputSchema(): { readonly type: "object"; readonly properties: { readonly text: { readonly type: "string"; readonly title: "Text"; readonly description: "Template with placeholders replaced by values"; }; }; readonly required: readonly ["text"]; readonly additionalProperties: false; }; execute(input: Input, _context: IExecuteContext): Promise; executePreview(input: Input, _context: IExecutePreviewContext): Promise; } declare module "@workglow/task-graph" { interface Workflow { stringTemplate: CreateWorkflow; } } export {};