import type { Config } from '../config/schema.js'; import type { KnowledgeSourceItem } from '../knowledge/types.js'; import type { UnderstandingSourceItem } from '../user-context/sources/types.js'; import { analyzeUnderstandingSources } from '../work-discovery/analyzer.js'; export declare function connectedItemsForUnderstanding(items: KnowledgeSourceItem[]): UnderstandingSourceItem[]; export declare function deriveConnectedSourceUnderstanding(input: { config: Config; agentId: string; sourceInstanceId: string; sourceRunId: string; processingPolicy: 'local_only' | 'remote_allowed'; analyze?: typeof analyzeUnderstandingSources; }): Promise<{ created: number; knowledgeCount: number; status: 'completed' | 'partial' | 'failed'; error?: string; }>;