/** * @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 value: { readonly title: "Value"; readonly description: "Input object or array to query"; }; readonly path: { readonly type: "string"; readonly title: "Path"; readonly description: "Dot-notation path to extract (e.g. 'a.b.c', 'items.0.name', 'items.*.name')"; }; }; readonly required: readonly ["value", "path"]; readonly additionalProperties: false; }; declare const outputSchema: { readonly type: "object"; readonly properties: { readonly result: { readonly title: "Result"; readonly description: "Extracted value(s) from the path"; }; }; readonly required: readonly ["result"]; readonly additionalProperties: false; }; export type JsonPathTaskInput = FromSchema; export type JsonPathTaskOutput = FromSchema; export declare class JsonPathTask extends Task { static readonly type = "JsonPathTask"; static readonly category = "Utility"; static title: string; static description: string; static inputSchema(): { readonly type: "object"; readonly properties: { readonly value: { readonly title: "Value"; readonly description: "Input object or array to query"; }; readonly path: { readonly type: "string"; readonly title: "Path"; readonly description: "Dot-notation path to extract (e.g. 'a.b.c', 'items.0.name', 'items.*.name')"; }; }; readonly required: readonly ["value", "path"]; readonly additionalProperties: false; }; static outputSchema(): { readonly type: "object"; readonly properties: { readonly result: { readonly title: "Result"; readonly description: "Extracted value(s) from the path"; }; }; readonly required: readonly ["result"]; readonly additionalProperties: false; }; execute(input: Input, _context: IExecuteContext): Promise; executePreview(input: Input, _context: IExecutePreviewContext): Promise; } declare module "@workglow/task-graph" { interface Workflow { jsonPath: CreateWorkflow; } } export {};