/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { TaskGraph } from "@workglow/task-graph"; import React from "react"; interface WorkflowRunAppProps { readonly graph: TaskGraph; readonly input: Record; readonly config?: Record; /** * When set (e.g. from {@link Workflow.run}), runs this instead of `graph.run(input, config)` so * abort/output-cache/merge semantics match the Workflow API. */ readonly runExecutor?: () => Promise; readonly onComplete: (result: unknown) => void; readonly onError: (error: Error) => void; } export declare function WorkflowRunApp({ graph, input, config, runExecutor, onComplete, onError, }: WorkflowRunAppProps): React.ReactElement; export {};