import { type DefineWorkflowOptions, type RuntimeAction, type RuntimeEvidenceValidator, type RuntimeExecutor, type RuntimeValidator, type WorkflowRun, type WorkflowTransitionHandler } from '../engine/runtime.js'; import type { ClassicProfile, ClassicState } from './classic-state.js'; export interface ClassicWorkflowApplication { workflow: DefineWorkflowOptions; transitionHandler: WorkflowTransitionHandler; evidenceValidators: readonly RuntimeEvidenceValidator[]; executors: readonly RuntimeExecutor[]; validators: readonly RuntimeValidator[]; } /** Check a host-observed delivery before claiming its SDK Action. */ export declare function validateClassicSdkDeliveryCandidate(run: WorkflowRun, action: RuntimeAction, output: { action: 'local' | 'push' | 'pr'; targetBranch: string; commit: string; remote?: string; prUrl?: string; }, projectRoot: string): Promise<{ accepted: boolean; reason?: string; }>; /** Capture the current required Open artifacts without trusting a caller-supplied digest. */ export declare function classicOpenEvidenceReceipt(projectRoot: string, changeDirRef: string, options?: { designRequirements?: boolean; presetRequirements?: boolean; taskCheckboxes?: 'include' | 'ignore'; run?: Readonly; }): Promise<{ ref: string; }>; export declare function classicDesignEvidenceReceipt(projectRoot: string, designDocRef: string): Promise<{ ref: string; }>; /** Reuse only the document accepted by the latest Design evidence. */ export declare function classicAcceptedDesignEvidence(projectRoot: string, run: WorkflowRun): Promise<{ ref: string; }>; export declare function classicPlanEvidenceReceipt(projectRoot: string, planRef: string, changeDirRef: string): Promise<{ ref: string; }>; export declare function assertClassicSdkDesignRequirementsCurrent(changeDirRef: string, run: WorkflowRun): Promise; export declare function assertClassicBuildReady(projectRoot: string, changeDirRef: string, state: ClassicState, run: WorkflowRun): Promise; /** 预设以已批准的需求为准;勾选完成任务不会改变需求摘要。 */ export declare function assertClassicPresetRequirementsCurrent(changeDirRef: string, run: Readonly): Promise; /** Classic owns phase rules; the SDK owns Action acceptance, scheduling, and Run commits. */ export declare function defineClassicWorkflowApplication(profile: ClassicProfile): ClassicWorkflowApplication; /** 通用 SDK 证据接口沿用原 Action 请求身份;不读取或摘要文件内容。 */ export declare function classicSdkEvidenceInputHash(run: Readonly, stepId: string): string; /** Reports are validated when submitted, and bound to the accepted Verify Action. */ export declare function assertClassicAgentCheckReports(output: { checks?: Array<{ name: string; result: string; note?: string; }>; checksReason?: string; }): void; export declare function readClassicAgentCheckReports(projectRoot: string, ref: string): Promise<{ checksReason?: string | undefined; checks: { name: string; result: string; note?: string; }[]; }>; /** 保留既有工厂名称;两者都只构造当前业务图。 */ export declare const defineClassicAgentWorkflowApplication: typeof defineClassicWorkflowApplication; //# sourceMappingURL=classic-sdk-application.d.ts.map