import { type AnalyzeDeps } from "./study-analysis-service.js"; import { type AutomaticStudyAnalysisView, type AutomaticStudyAnalysisOutcome, type AutomaticStudyAnalysisCancellation } from "./study-analysis-job.js"; import type { StudyAnalysisConfig } from "./study-analysis.js"; export type { AutomaticStudyAnalysisView, AutomaticStudyAnalysisOutcome, AutomaticStudyAnalysisCancellation } from "./study-analysis-job.js"; export type AutomaticStudyAnalysisDeps = Omit & { /** A missing default key records a skip before admission, preserving a successful recording. */ defaultRequest?: boolean; /** Expand an omitted output limit only within the existing admission budget. */ preferLargerOutput?: boolean; }; /** Small read-only TUI/CLI projection. Neither this nor Observer can resume a job. */ export declare function readAutomaticStudyAnalysis(cwd: string, runId: string): Promise; export declare function requestAutomaticStudyAnalysisCancellation(cwd: string, runId: string): Promise; /** One permanent claim per completed run, consumed even when preparation/cancellation fails. * Only the original producer calls this after all recording writes return. * No file reader, restart recovery, Observer poll or export calls this function. */ export declare function runAutomaticStudyAnalysis(cwdInput: string, runId: string, configInput: StudyAnalysisConfig, deps?: AutomaticStudyAnalysisDeps): Promise;