import { type ProactiveFeedback, type ProactiveProvenanceDetail } from '@xopcai/gateway-contract'; import { getAttention, getAttentionSources, listAttention, sourceFingerprint, userText, type AttentionSource, type AttentionThread, type Outreach, type Wakeup } from './attention-repository.js'; import { getProactivitySettings, isQuiet, localDay, patchProactivitySettings, reserveModelCall } from './settings.js'; export { getAttention, getAttentionSources, getProactivitySettings, isQuiet, listAttention, localDay, patchProactivitySettings, reserveModelCall, sourceFingerprint, userText, type AttentionSource, type AttentionThread, type Outreach, type Wakeup, }; export { getRemainingInferredDailyMessages, getUsedInferredDailyMessages, INFERRED_PROACTIVE_MESSAGES_NAMESPACE, isAssistantConversationDeliverable, isProactiveAccessible, ProactiveDeliveryGovernor, proactiveDeliveryGovernor, } from './delivery-governor.js'; /** Only user transcript rows can establish attention; inferred attention never grants work authorization. */ export declare function saveAttention(input: { conversationId: string; subject: string; summary: string; kind: AttentionThread['kind']; entryIds: string[]; explicit: boolean; nextCheckAt: number; taskId?: string; projectId?: string; }, now?: number): AttentionThread; export declare function patchAttention(ownerId: string, id: string, revision: number, patch: { status?: 'candidate' | 'active' | 'paused' | 'completed'; nextCheckAt?: number | null; }, now?: number): AttentionThread; export declare function enqueueWakeup(thread: AttentionThread, kind: string, identity: string, now?: number): void; export declare function enqueueDue(now?: number): void; export declare function getOutreach(id: string, ownerId?: string): Outreach | undefined; export declare function provenanceDetail(ownerId: string, id: string): ProactiveProvenanceDetail | undefined; export declare function recordFeedback(ownerId: string, id: string, raw: ProactiveFeedback, now?: number): void; export declare function listInterestCandidates(conversationId: string, now?: number): { lastSupportedAt: number; expiresAt: number; sources: { excerpt: string; entryId: string; observedAt: number; }[]; independentStatements: number; independentDays: number; confidence: number; id: string; subject: string; summary: string; status: "expired" | "active" | "paused" | "completed" | "candidate"; }[]; export declare function preparationStrategy(threadId: string, now?: number): 'brief' | 'thorough' | null; export declare function strategyState(threadId: string, now?: number): { preparation: "brief" | "thorough" | null; versions: { id: string; revision: number; kind: "stop" | "rollback" | "defer" | "adjust"; createdAt: number; preparation: "brief" | "thorough" | null; }[]; }; export declare function applyThreadFeedback(ownerId: string, threadId: string, revision: number, raw: ProactiveFeedback, source?: { feedbackId?: string; entryId?: string; }, now?: number): AttentionThread; export declare function rollbackStrategy(ownerId: string, threadId: string, raw: { versionId: string; revision: number; idempotencyKey: string; }, sourceEntryId?: string, now?: number): AttentionThread;