import type { SessionEvent } from '@deepseek-ai/dsh-session'; import type { Companion, PartnerState } from '../domain.js'; import type { PartnerStore } from '../store.js'; import type { ChannelActivitySummary } from '../channels/activity-registry.js'; export declare const ACTIVITY_KINDS: readonly ["continue", "topic", "task", "explore", "social"]; export type ActivityKind = typeof ACTIVITY_KINDS[number]; export interface ActivityDecision { at: number; routeId: string; kind: ActivityKind | 'none'; reason: string; outcome: 'scheduled' | 'declined' | 'none'; detail: string; planId?: string; } export declare const NEXT_ACTIVITY_SCHEMA: { type: string; additionalProperties: boolean; required: string[]; properties: { kind: { type: string; enum: string[]; description: string; }; cancelPending: { type: string; description: string; }; reason: { type: string; minLength: number; maxLength: number; description: string; }; delayMinutes: { type: string; minimum: number; maximum: number; description: string; }; }; }; export interface ActivityInterest { state: 'engaged' | 'settled' | 'quiet'; focus: string; kind: ActivityKind; at: number; expiresAt: number; routeId: string; sessionId: string; sourceInputId: string; userMessageId: string; policyRevision: number; detail: string; } export declare const INTEREST_LIMIT = 2; export declare const INTEREST_SCHEMA: { type: string; additionalProperties: boolean; required: string[]; properties: { state: { type: string; enum: string[]; description: string; }; focus: { type: string; minLength: number; maxLength: number; description: string; }; kind: { type: string; enum: ("task" | "continue" | "topic" | "explore" | "social")[]; description: string; }; }; }; export declare function interestWakes(c: Companion, now?: number): number[]; export declare function quietInterest(c: Companion, routeId: string, userMessageId: string, now?: number): boolean; export declare function activityDecisionAvailable(state: PartnerState, c: Companion, sessionId: string, events: readonly SessionEvent[]): boolean; /** Presentation only; registration and public/guest execution permissions stay intact. */ export declare function withActivityChoiceSchema(tool: T, required: boolean): T; export declare function renderActivityDecisionContext(state: PartnerState, c: Companion, sessionId: string, events: readonly SessionEvent[], catalog: ChannelActivitySummary[]): string; /** Durable model-authored choice; never a random callback or a second model invocation. */ export declare function saveNextActivity(owner: string, store: PartnerStore, sessionId: string, events: () => readonly SessionEvent[], raw: unknown, signal: AbortSignal): Promise; /** Interest and an explicit task plan are independent; no new decision-model request. */ export declare function saveTurnInterest(owner: string, store: PartnerStore, sessionId: string, events: () => readonly SessionEvent[], raw: unknown, signal: AbortSignal): Promise; //# sourceMappingURL=activity-decision.d.ts.map