import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'; export declare const PARTNER_MEDIA_MAX_BYTES: number; export interface PartnerInboundAttachment { kind: 'image' | 'file'; data: Uint8Array; name: string; mediaType?: string; referenceMessageId?: string; } export interface PartnerInboundMessage { /** Internal admission facts; optional group chatter may be superseded before execution. */ groupReply?: { kind: 'direct' | 'ambient'; receivedAt: number; }; sessionTitle?: string; text: string; attachments: PartnerInboundAttachment[]; referenceText?: string; missingReference?: boolean; storedImages?: Array<{ messageId: string; image: ImageAttachmentRef; }>; } export interface PartnerOutboundAttachment { contentHash?: string; path: string; name: string; mediaType: string; kind: 'image' | 'file'; } export interface PartnerReply { /** Terminal execution notice; group chats suppress these system messages. */ failureNotice?: boolean; /** A tool already delivered the reply to the channel (for example QQ voice). */ alreadyDelivered?: boolean; /** Internal provenance, armed only after confirmed channel delivery. */ postReplySource?: { routeId: string; sessionId: string; userMessageId: string; }; idleContactOrigin?: { routeId: string; sessionId: string; messageId: string; userMessageId: string; policyRevision: number; }; chatParts?: import('./chat/protocol.js').ChatPart[]; chatOriginRouteId?: string | null; /** Freeze the direct source; never reroute a queued reply after account or room changes. */ directSource?: { routeId: string; sessionId: string; accountId: string; baseUrl: string; targetId: string; }; /** Status-only delivery must suppress even previously queued attachment parts. */ attachmentPolicy?: 'text-only'; attachmentScope?: string; text: string; attachments: PartnerOutboundAttachment[]; } export declare function safeMediaName(value: string, fallback?: string, defaultExtension?: string): string; //# sourceMappingURL=channel-message.d.ts.map