import type { CometPluginContextContribution, CometPluginContextRequest } from '../../domains/comet-plugin/comet.js'; import type { ProjectLearningRequest, ProjectLearningStatus } from '../../domains/project-knowledge/index.js'; import { type CometWorkflowResult } from '../../domains/comet-entry/workflow-learning-receipt.js'; type WorkflowResult = CometWorkflowResult; type WorkflowLearningStatus = import('../../domains/comet-memory/index.js').MemoryLearningStatus | undefined; /** One process deadline covers the whole checkpoint batch, including Provider I/O. */ export declare function recordCometTaskWorkflowResults(workflowResults: readonly WorkflowResult[], options?: { readonly reuseProcessed?: boolean; }): Promise; export declare function recordCometTaskWorkflowResult(result: WorkflowResult): Promise; export declare function readCometTaskProjectLearning(projectRoot: string, projectLearning: ProjectLearningRequest): Promise; /** Isolate advisory retrieval so its deadline also stops pending I/O and child processes. */ export declare function collectCometTaskContext(projectRoot: string, request: CometPluginContextRequest, trace?: { workflow: 'native' | 'classic'; change: string; }): Promise; /** 返回可用性,避免把检索失败解释为已成功交付空上下文。 */ export declare function collectCometTaskContextResult(projectRoot: string, request: CometPluginContextRequest, trace?: { workflow: 'native' | 'classic'; change: string; }, options?: { timeoutMs: number; }): Promise<{ status: 'available' | 'unavailable'; context: readonly CometPluginContextContribution[]; }>; export {}; //# sourceMappingURL=comet-task-context.d.ts.map