import { type DefineWorkflowOptions, type WorkflowDefinition, type WorkflowRun } from '../engine/runtime.js'; import type { WorkflowApplicationManifest } from './types.js'; export interface WorkflowApplicationStepPresentation { workflowId: string; stepId: string; title: string; phase?: string; description?: string; /** 从步骤的实际输出读取字段,使用点分路径;不支持表达式或脚本。 */ outputFields?: Array<{ path: string; label: string; }>; } export interface WorkflowApplicationPresentation { title?: string; description?: string; steps?: WorkflowApplicationStepPresentation[]; } /** 与固定应用一起保存的纯数据;执行状态仍以 SDK Run 为准。 */ export interface WorkflowApplicationDefinition { schema: 'comet.workflow.application.definition.v1'; application: { id: string; version: string; }; workflows: WorkflowDefinition[]; presentation?: WorkflowApplicationPresentation; } export declare function validateWorkflowApplicationPresentation(value: unknown, workflows?: readonly WorkflowDefinition[]): asserts value is WorkflowApplicationPresentation; export declare function validateWorkflowApplicationDefinitionPath(value: unknown): asserts value is string; /** 校验并规范化静态图,不加载任何应用执行模块。 */ export declare function parseWorkflowApplicationDefinition(value: unknown, manifest?: Pick): WorkflowApplicationDefinition; export declare function readWorkflowApplicationDefinition(files: Readonly>, manifest: WorkflowApplicationManifest): WorkflowApplicationDefinition | undefined; export declare function workflowApplicationDefinitionMatchesImplementation(definition: WorkflowApplicationDefinition, workflows: readonly DefineWorkflowOptions[]): boolean; /** 固定包匹配后,再核对 Run 绑定的主流程及每个子流程定义;无需加载应用模块。 */ export declare function matchesWorkflowApplicationDefinition(definition: WorkflowApplicationDefinition, run: Pick): boolean; //# sourceMappingURL=application-definition.d.ts.map