import type { Context } from '@deepseek-ai/cordis'; import type { Companion } from '../../domain.js'; import type { DirectMessage } from '../direct/transport.js'; import type { QqSettings } from './settings.js'; import { type AttentionClassifier, type AttentionDiagnostic, type AttentionPrediction } from './attention-classifier.js'; type ReplyState = 'observed' | 'admitted' | 'replied' | 'silent' | 'superseded'; export interface GroupDecision { at: number; groupId: string; reason: string; messageId?: string; method?: 'local'; score?: number; probability?: number; reasons?: string[]; route?: string; addressed?: boolean; linkedMessageId?: string; followupRequest?: boolean; attachmentFollowup?: true; decisionMs?: number; contextSize?: number; discussionParticipants?: number; classification?: AttentionDiagnostic; semantic?: AttentionPrediction; } export declare const QUIET_CONVERSATION_WINDOW_MS: number; /** Per-speaker threads plus optional local semantic routing. No remote LLM gate or tools. */ export declare class QqGroupAutonomy { private readonly now; private readonly classify; private readonly decisions; private readonly decisionHistory; private readonly groups; constructor(_ctx: Context, now?: () => number, classify?: AttentionClassifier); status(channelId: string): GroupDecision | undefined; history(channelId: string): GroupDecision[]; settled(channelId: string, event: DirectMessage, state: ReplyState): void; record(channelId: string, event: DirectMessage, reason: string): false; observe(channelId: string, event: DirectMessage): void; /** Peek only for cold, unaddressed clarifications; routine chatter needs no history RPC. */ needsHistory(channelId: string, event: DirectMessage): boolean; private memberClarification; /** Delivery, not admission or silence, starts/extends the conversation. */ replied(channelId: string, event: DirectMessage, text?: string): void; context(channelId: string, event: DirectMessage): string; /** Bound short-lived group snippets; the scene policy also receives confirmed delivery evidence. */ attentionContext(channelId: string, event: DirectMessage): string[]; /** A quiet gap may preserve the last shared topic, but intervening traffic retires it. * Sequence evidence survives the ten-minute observation TTL and rejects queued old inputs. */ private quietRecent; private precedingAttachmentReply; /** Only confirmed delivery establishes a shared conversation, never admission or silence. */ private groupRecent; /** Pass role and order without exposing QQ identifiers to the classifier. */ private attentionDialogue; guidance(channelId: string, event: DirectMessage, settings?: Partial): string; shouldReply(channelId: string, event: DirectMessage, companion: Companion, signal: AbortSignal, settings?: Partial, addressOnly?: boolean, accountId?: string): Promise; } export {}; //# sourceMappingURL=autonomy.d.ts.map