import { type CollaborationRule, type ContextEvidence, type PersonalizationItem, type UnderstandingStatus, type UserContextScope, type UserProfile, type UserUnderstanding } from '../../user-context/domain.js'; export declare function getUserProfile(principalId?: string): UserProfile; export declare function updateUserProfile(patch: Partial>, principalId?: string): UserProfile; export type CreateUnderstandingInput = Omit & { statement: string; payload?: Record; createdBy: 'user' | 'runtime' | 'connector' | 'consolidation'; changeReason: string; }; export declare function createUnderstanding(input: CreateUnderstandingInput, principalId?: string): UserUnderstanding; export declare function getUnderstanding(id: string): UserUnderstanding | undefined; export declare function listUnderstandings(statuses?: UnderstandingStatus[], principalId?: string): UserUnderstanding[]; export declare function reviseUnderstanding(id: string, statement: string, options: { payload?: Record; canonicalKey?: string; explicitness?: UserUnderstanding['explicitness']; confidence?: number; changeReason: string; }): UserUnderstanding; export declare function setUnderstandingStatus(id: string, status: UnderstandingStatus, confirmation?: { explicitness: UserUnderstanding['explicitness']; confidence: number; }): UserUnderstanding; export declare function rejectUnderstanding(id: string, reason: string): UserUnderstanding; export declare function deleteUnderstanding(id: string): boolean; export declare function isUnderstandingSuppressed(canonicalKey: string, scope: UserContextScope, principalId?: string): boolean; export declare function createCollaborationRule(input: Pick, principalId?: string): CollaborationRule; export declare function getCollaborationRule(id: string): CollaborationRule | undefined; export declare function listCollaborationRules(principalId?: string): CollaborationRule[]; export declare function reviseCollaborationRule(id: string, statement: string): CollaborationRule; export declare function setCollaborationRuleStatus(id: string, status: CollaborationRule['status']): CollaborationRule; export declare function deleteCollaborationRule(id: string): boolean; export declare function createContextEvidence(input: Omit, principalId?: string): ContextEvidence; export declare function linkUnderstandingEvidence(versionId: string, evidenceId: string, relation: 'supports' | 'contradicts' | 'supersedes', confidence: number): void; export declare function listUnderstandingEvidence(understandingId: string, relation?: 'supports' | 'contradicts' | 'supersedes'): ContextEvidence[]; export declare function recordContextRun(input: { turnId: string; sessionKey: string; query: string; budget: number; durationMs: number; items: PersonalizationItem[]; principalId?: string; }): string; export declare function getTurnPersonalization(turnId: string): { runId: string; items: PersonalizationItem[]; } | undefined; export declare function recordContextFeedback(input: { turnId: string; runId: string; objectType?: PersonalizationItem['objectType']; objectId?: string; rating: 'helpful' | 'irrelevant' | 'wrong' | 'stale' | 'sensitive'; reason?: string; }): void; export declare function hasContextConsent(understandingId: string, sessionKey: string): boolean; export declare function consumeContextConsent(understandingId: string, sessionKey: string): 'granted' | 'denied' | 'missing'; export declare function ensureContextConsent(understandingId: string, sessionKey: string, purpose: string): { id: string; understandingId: string; purpose: string; }; export declare function decideContextConsent(id: string, decision: 'once' | 'session' | 'always' | 'deny'): boolean;