import { type AgentExperienceEventType } from '../agent-learning/index.js'; export interface CometWorkflowResult { readonly projectRoot: string; readonly workflow: string; readonly changeId: string; readonly command: string; readonly success: boolean; readonly eventType?: AgentExperienceEventType; readonly changedPaths?: readonly string[]; readonly artifactRefs?: readonly string[]; readonly verificationCommands?: readonly string[]; readonly verificationResults?: readonly { readonly command: string; readonly success: boolean; }[]; readonly summary?: string; /** Whether the host performed the task-end learning check. */ readonly learningCheck?: 'submitted' | 'no-observation' | 'not-run'; /** Persist the checkpoint before a worker begins optional Provider maintenance. */ readonly captureOnly?: boolean; } /** 只读取权威事件回执;缺失或未完成的学习仍执行原路径。 */ export declare function areCometWorkflowResultsProcessed(results: readonly CometWorkflowResult[], signal: AbortSignal): Promise; export declare function workflowResultEvent(options: CometWorkflowResult, projectId: string, language: string): { schema: "comet.agent-experience.v1"; eventId: string; episodeId: string; occurredAt: string; type: AgentExperienceEventType; actor: "workflow"; scope: "project"; projectId: string; source: { kind: "workflow"; name: string; workflow: string; changeId: string; command: string; }; context: { paths?: readonly string[] | undefined; workflow: string; changeId: string; operation: string; }; evidence: ({ id: string; kind: "source"; summary: string; source: string; digest: string; } | { id: string; kind: "verification"; summary: string; command: string; digest: string; })[]; outcome: { status: "used-successfully" | "contributed-to-failure"; summary: string; }; }; //# sourceMappingURL=workflow-learning-receipt.d.ts.map