import type { Config } from '../config/schema.js'; import type { AttentionThread } from './proactivity/repository.js'; import type { ScoutReadOnlyContext } from './triage-service.js'; import type { CoalescedSignal } from './types.js'; export interface AttentionLiveContextItem { ref: string; kind: 'task_state' | 'project_state' | 'proactive_signal' | 'knowledge_memory'; excerpt: string; updatedAt: number; } export declare function readTaskSnapshot(taskId: string): { excerpt: string; updatedAt: number; } | null; export declare function readProjectSnapshot(projectId: string): { excerpt: string; updatedAt: number; } | null; /** * Bounded, strictly read-only context probe for ProactiveHub Gate 3 Scout. * Supplies live authorized Task/Project state, matching user attention threads, * and recent signal history so Scout can cross-check real progress without write access. */ export declare function collectSignalReadOnlyContext(params: { ownerId: string; signal: CoalescedSignal; config: Config; now?: number; }): ScoutReadOnlyContext[]; export interface SharedFollowUpEvidenceParams { ownerId: string; conversationId: string; queryText: string; taskIds?: readonly string[]; projectIds?: readonly string[]; subscriptionIds?: ReadonlySet; config: Config; now?: number; maxSignals?: number; maxMemories?: number; } export declare function collectFollowUpReadOnlyEvidence(params: SharedFollowUpEvidenceParams): AttentionLiveContextItem[]; /** * Bounded, strictly read-only live context probe for ProactivityService recurring follow-ups. * Bridges the gap between passive transcript-only evaluation and real workspace/task/signal state. */ export declare function collectAttentionLiveContext(params: { ownerId: string; thread: AttentionThread; config: Config; now?: number; }): AttentionLiveContextItem[]; export declare function liveContextFingerprint(items: readonly AttentionLiveContextItem[]): string;