import { type RuntimeCommandValidator, type RuntimeExecutor, type RuntimeValidator, type WorkflowRun } from '../engine/runtime.js'; import type { ClassicProfile } from './classic-state.js'; export declare function classicInterruptedSkill(run: Readonly): import("../engine/runtime-action.js").RuntimeAction | null; export declare function classicInterruptedBuilder(run: Readonly): import("../engine/runtime-action.js").RuntimeAction | null; export declare function classicArchiveRepairAction(run: Readonly): import("../engine/runtime-action.js").RuntimeAction | null; /** 只重开尚未发生归档副作用的当前验收回合。 */ export declare function canReopenClassicVerification(run: WorkflowRun): boolean; /** 仅给内置 Run 添加显式修订命令;原应用工厂和固定扩展包保持不变。 */ export declare function classicSdkRevisionApplication(profile: ClassicProfile, verification?: boolean | 'full', archiveRepair?: boolean, buildContinuation?: boolean, workContinuation?: boolean, sourceRun?: Readonly): { workflow: { steps: { 'classic.resume-work'?: { type: "call_tool"; ref: string; validator: { id: string; version: string; }; } | undefined; }; transitions: { from: string; to: string; }[]; commands: { 'revise-design': { stepId: string; validator: { id: string; version: string; }; }; 'revise-plan': { stepId: string; validator: { id: string; version: string; }; }; 'reopen-verification'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; 'repair-archive'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; 'continue-build'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; 'continue-work'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; }; entry: string | string[]; maxTransitions?: number; initialState?: import("../engine/runtime-json.js").RuntimeValue; stateSchema?: import("../engine/runtime-json.js").RuntimeValue; stateValidator?: import("../engine/workflow-definition.js").WorkflowReference; transitionHandler?: import("../engine/workflow-definition.js").WorkflowReference; id: string; version: string; }; commandValidators: RuntimeCommandValidator[]; executors: RuntimeExecutor[]; validators: RuntimeValidator[]; transitionHandler: { apply(context: Parameters<(input: { run: Readonly; event: Readonly; }) => { state: import("../engine/runtime-json.js").RuntimeValue; next: Array; }>[0]): { state: import("../engine/runtime-json.js").RuntimeValue; next: Array; } | { state: string | number | boolean | import("../engine/runtime-json.js").RuntimeValue[] | { [key: string]: import("../engine/runtime-json.js").RuntimeValue; }; next: { stepId: string; input: { summary: string; deliveryRepairCheckId?: string | undefined; interruptedActionId: string; }; }[]; }; id: string; version: string; }; evidenceValidators: readonly import("../engine/workflow-run.js").RuntimeEvidenceValidator[]; }; /** 旧 Run 的数据在加载边界转换;这里只装配当前业务定义。 */ export declare function classicSdkApplicationForRun(profile: ClassicProfile, run: WorkflowRun | null, _options?: { upgradePresetRequirements?: boolean; upgradeBuildCheckRecovery?: boolean; }): { workflow: { steps: { 'classic.resume-work'?: { type: "call_tool"; ref: string; validator: { id: string; version: string; }; } | undefined; }; transitions: (Omit & { on?: string; })[]; commands: { 'revise-design': { stepId: string; validator: { id: string; version: string; }; }; 'revise-plan': { stepId: string; validator: { id: string; version: string; }; }; 'reopen-verification'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; 'repair-archive'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; 'continue-build'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; 'continue-work'?: { stepId: string; validator: { id: string; version: string; }; } | undefined; }; entry: string | string[]; maxTransitions?: number; initialState?: import("../engine/runtime-json.js").RuntimeValue; stateSchema?: import("../engine/runtime-json.js").RuntimeValue; stateValidator?: import("../engine/workflow-definition.js").WorkflowReference; transitionHandler?: import("../engine/workflow-definition.js").WorkflowReference; id: string; version: string; }; commandValidators: RuntimeCommandValidator[]; executors: RuntimeExecutor[]; validators: RuntimeValidator[]; transitionHandler: { apply(context: Parameters<(input: { run: Readonly; event: Readonly; }) => { state: import("../engine/runtime-json.js").RuntimeValue; next: Array; }>[0]): { state: import("../engine/runtime-json.js").RuntimeValue; next: Array; } | { state: string | number | boolean | import("../engine/runtime-json.js").RuntimeValue[] | { [key: string]: import("../engine/runtime-json.js").RuntimeValue; }; next: { stepId: string; input: { summary: string; deliveryRepairCheckId?: string | undefined; interruptedActionId: string; }; }[]; }; id: string; version: string; }; evidenceValidators: readonly import("../engine/workflow-run.js").RuntimeEvidenceValidator[]; } | { commandValidators: RuntimeCommandValidator[]; workflow: import("../engine/workflow-definition.js").DefineWorkflowOptions; transitionHandler: import("../engine/workflow-run.js").WorkflowTransitionHandler; evidenceValidators: readonly import("../engine/workflow-run.js").RuntimeEvidenceValidator[]; executors: readonly RuntimeExecutor[]; validators: readonly RuntimeValidator[]; }; //# sourceMappingURL=classic-sdk-revision-application.d.ts.map