export { thoughtPriority } from './thought-budget.js'; import type { ChannelSession, Companion, PartnerState } from '../domain.js'; import type { ConversationTurn } from '../memory-domain.js'; import type { PartnerStore } from '../store.js'; export interface CompanionThought { id: string; text: string; why: string; sourceTurnId: string; sourceRouteIds: string[]; sourceAt: number; evidence: string; targetRouteId: string; createdAt: number; updatedAt: number; status: 'open' | 'done' | 'dismissed'; attempts: number; lastConsideredAt?: number; lastOutcome?: 'considered' | 'silent' | 'delivered' | 'failed'; lastActivityId?: string; result?: string; resultRouteId?: string; /** Retired by the active-memory budget, not completed by the model. */ capacityArchivedAt?: number; } export interface ThoughtProposal { sourceRouteIds: string[]; value: unknown; } export declare function thoughtTargetAllowed(state: PartnerState, c: Companion, sources: readonly string[], target: ChannelSession): boolean; export declare function thoughtTargets(state: PartnerState, c: Companion, sources: readonly string[]): ChannelSession[]; export declare function thoughtRouteLabel(state: PartnerState, r: ChannelSession): string; export declare function activeThoughts(state: PartnerState, c: Companion, route?: ChannelSession, now?: number): CompanionThought[]; export declare function renderThoughts(state: PartnerState, c: Companion, route: ChannelSession): string; export declare class ThoughtService { private readonly store; constructor(store: PartnerStore); prepare(turn: ConversationTurn): { sourceRouteIds: string[]; prompt: string; } | undefined; apply(turn: ConversationTurn, proposal: ThoughtProposal): Promise; } //# sourceMappingURL=thoughts.d.ts.map