import type { ThoughtService } from './character/thoughts.js'; import type { InteractionReviewService } from './character/interaction-review.js'; import type { Context } from '@deepseek-ai/cordis'; import type { AgentDefaultModelConfig } from '@deepseek-ai/dsh-agent-default-model'; import type { Companion } from './domain.js'; import { type ConcernCandidate, type PartnerConcern } from './concern-domain.js'; import type { ConversationTurn, DailyReviewResult, DailyReviewTarget, ReflectionResult } from './memory-domain.js'; import type { PartnerMemoryStore } from './memory-store.js'; import type { PartnerConcernStore } from './concern-store.js'; type ReflectionContext = Context & { llm: Context['llm']; agentDefaultModel: AgentDefaultModelConfig; }; export declare class MemoryReflectionService { private readonly ctx; private readonly store; private readonly concerns; private readonly interactionReview?; private readonly thoughts?; private readonly running; private readonly controllers; private readonly modelSlots; private readonly lastPruned; private closed; close(): void; constructor(ctx: ReflectionContext, store: PartnerMemoryStore, concerns: PartnerConcernStore, interactionReview?: InteractionReviewService | undefined, thoughts?: ThoughtService | undefined); reflect(companion: Companion, turn: ConversationTurn): Promise; isRunning(companionId: string): boolean; processPending(companion: Companion, notify?: (scopeId: string, created: PartnerConcern[]) => Promise): Promise<{ scopeId: string; created: PartnerConcern[]; } | undefined>; private processJob; reviewDay(companion: Companion, target: DailyReviewTarget): Promise; refreshArtifacts(companion: Companion, scopeId: string, guard: () => boolean): Promise<{ scenes: number; experiences: number; confirmations: number; }>; private runDailyReview; private extract; private applyConcerns; } export declare function protectConcernDirective(candidates: ConcernCandidate[], directive: ConversationTurn['concernDirective']): ConcernCandidate[]; export declare function explicitConcernDirective(value: string): boolean; export declare function parseReflection(raw: string, strict?: boolean): ReflectionResult; export declare function parseDailyReview(raw: string): DailyReviewResult; export {}; //# sourceMappingURL=memory-reflection.d.ts.map