import type { Config } from '../config/schema.js'; import type { UnderstandingSourceItem } from '../user-context/sources/types.js'; import type { WorkContextSnapshot, WorkDiscoveryCandidate, WorkDiscoveryProfileCandidate, WorkDiscoveryResult, WorkUnderstandingThreadCandidate } from './types.js'; export declare function analyzeWorkContext(input: { config: Config; snapshot: WorkContextSnapshot; candidateContext?: WorkDiscoveryCandidate[]; signal?: AbortSignal; }): Promise<{ modelRef: string; result: WorkDiscoveryResult; }>; export type UnderstandingSourceAnalysisStatus = { sourceId: string; status: 'completed' | 'partial' | 'failed'; error?: string; }; export declare function analyzeUnderstandingSources(input: { config: Config; items: UnderstandingSourceItem[]; workContext?: Pick; signal?: AbortSignal; }): Promise<{ modelRef: string; profileCandidates: WorkDiscoveryProfileCandidate[]; workThreadCandidates: WorkUnderstandingThreadCandidate[]; sourceStatuses: UnderstandingSourceAnalysisStatus[]; }>; export declare function workDiscoveryResultMarkdown(result: WorkDiscoveryResult): string;