import type { Config } from '../config/schema.js'; import type { UnderstandingSourceItem } from '../user-context/sources/types.js'; import type { CalibrationQuestion, WorkContextSnapshot, WorkDiscoveryCandidate, WorkDiscoveryProfileCandidate, WorkDiscoveryResult, WorkUnderstandingThreadCandidate, WritingStyleCandidate } from './types.js'; export declare function analyzeWorkContext(input: { config: Config; snapshot: WorkContextSnapshot; candidateContext?: WorkDiscoveryCandidate[]; projectOverviewOnly?: boolean; locale?: string; signal?: AbortSignal; }): Promise<{ modelRef: string; result: WorkDiscoveryResult; }>; type BoundedUnderstandingSourceItem = { ref: string; source: string; type: UnderstandingSourceItem['type']; title: string; group?: string; occurredAt?: number; modifiedAt?: number; startsAt?: number; endsAt?: number; ownerAttribution: UnderstandingSourceItem['ownerAttribution']; sensitivity: UnderstandingSourceItem['sensitivity']; resourceUri?: string; text: string; }; export type UnderstandingSourceAnalysisStatus = { sourceId: string; status: 'completed' | 'partial' | 'failed'; error?: string; }; export interface UnderstandingBudgetProfile { maxTotalChars: number; maxPerSourceChars: number; maxBatchChars: number; maxBatchItems: number; maxItems: number; maxPerItemChars: number; maxWritingSamples: number; maxWritingSampleChars: number; } export declare function resolveUnderstandingBudgets(contextWindow?: number): UnderstandingBudgetProfile; export declare function analyzeWritingStyle(input: { modelRef: string; items: BoundedUnderstandingSourceItem[]; locale?: string; signal?: AbortSignal; }): Promise; export declare function synthesizeCrossSourceUnderstanding(input: { modelRef: string; stageAProfiles: WorkDiscoveryProfileCandidate[]; stageAWriting: WritingStyleCandidate[]; stageAThreads: WorkUnderstandingThreadCandidate[]; allowedRefs: Set; refToSourceId?: ReadonlyMap; existingProfileStatements?: string[]; workContext?: Pick; locale?: string; signal?: AbortSignal; }): Promise<{ profileCandidates: WorkDiscoveryProfileCandidate[]; writingPreferences: WritingStyleCandidate[]; workThreadCandidates: WorkUnderstandingThreadCandidate[]; calibrationQuestions: CalibrationQuestion[]; }>; export declare function analyzeUnderstandingSources(input: { config: Config; items: UnderstandingSourceItem[]; workContext?: Pick; existingProfileStatements?: string[]; locale?: string; signal?: AbortSignal; onPhase?: (phase: 'analyzing_writing' | 'synthesizing') => void; }): Promise<{ modelRef: string; profileCandidates: WorkDiscoveryProfileCandidate[]; writingPreferences: WritingStyleCandidate[]; workThreadCandidates: WorkUnderstandingThreadCandidate[]; calibrationQuestions: CalibrationQuestion[]; sourceStatuses: UnderstandingSourceAnalysisStatus[]; }>; export declare function workDiscoveryResultMarkdown(result: WorkDiscoveryResult): string; export {};