import { type ChatPart } from '../chat/protocol.js'; import type { SessionEvent } from '@deepseek-ai/dsh-session'; export declare function isInternalTaskNotice(event: SessionEvent): boolean; /** Appended delivery bookkeeping, not a new agent instruction or turn owner. */ export declare function isRequirementDeliveryReceipt(event: SessionEvent): boolean; /** Goal completion may share a turn with review; it must not bypass silence. */ export declare function isAutonomousDeliveryTurn(events: readonly SessionEvent[], history?: readonly SessionEvent[]): boolean; export declare function isQuietStatus(text: string): boolean; export interface ChannelReplyParts { alreadyDelivered?: boolean; chatParts?: ChatPart[]; chatOriginRouteId?: string | null; text: string; /** Assistant-authored file references survive filtering of progress prose. */ referenceTexts: string[]; } /** Select the last non-tool answer per eligible turn, never tool preambles. */ export declare function channelReplyPartsAfter(events: readonly SessionEvent[], fromSeq: number, autonomous?: boolean): ChannelReplyParts; /** whenIdle may encompass follow-up turns: don't append internal reviews to a user reply. */ export declare function channelReplyTextAfter(events: readonly SessionEvent[], fromSeq: number): string; /** Archive semantic speech separately from transport output: a confirmed voice * reply has no outgoing text parts, but its exact spoken text is still history. * Never change channelReplyPartsAfter or replay an already delivered message. */ export declare function conversationReplyText(events: readonly SessionEvent[]): string; //# sourceMappingURL=delivery-policy.d.ts.map