import type { ToolDefinition } from '@deepseek-ai/dsh-tools'; import type { SessionEvent } from '@deepseek-ai/dsh-session'; import type { PartnerStore } from '../store.js'; import type { PartnerState } from '../domain.js'; /** A terminal receipt, never a magic text token that could accidentally be sent to QQ. */ export declare function isSilentActivityResult(event: SessionEvent): boolean; /** A model's explicit silence choice remains silent even if finishing fails. * Read execution events only; quoted text and failed unrelated tools do not count. */ export declare function isActivitySilenceRequested(event: SessionEvent): boolean; /** Ending a valid claimed activity is allowed after sleep, but never after new input or revocation. */ export declare function canFinishIdleActivity(owner: string, state: PartnerState, sessionId: string, events: readonly SessionEvent[]): boolean; export declare function idleActivityFinishTool(owner: string, store: PartnerStore): ToolDefinition; //# sourceMappingURL=activity-tool.d.ts.map