import type { ConversationTurn } from '../memory-domain.js'; import type { PartnerStore } from '../store.js'; export interface ReviewReceipt { at: number; sourceAt: number; turnId: string; outcome: 'changed' | 'unchanged' | 'limited' | 'stale' | 'failed'; reason: string; } export interface InteractionReviewState { affection?: ReviewReceipt; persona?: ReviewReceipt; } export interface InteractionReviewRequest { expectedAt: number; affectionAt: number; affection: boolean; persona: boolean; habits?: { scope: string; baseline: string; sources: Array<{ id: string; at: number; user: string; routeIds: string[]; }>; }; } export interface InteractionReviewResult { request: InteractionReviewRequest; evaluation: unknown; } /** Reuses the existing memory model call; never launches an extra foreground request. */ export declare class InteractionReviewService { private readonly store; constructor(store: PartnerStore); prepare(turn: ConversationTurn, now?: number, recent?: readonly ConversationTurn[]): { request: InteractionReviewRequest; prompt: string; } | undefined; apply(turn: ConversationTurn, result: InteractionReviewResult): Promise; } //# sourceMappingURL=interaction-review.d.ts.map