/** Chat-owned aggregation, not a count over the visible client message page. */ export interface ConversationWordsQuery { accountScope: string; sourceRef: string; timezone: string; fromDate: string | null; toDate: string | null; sender: 'all' | 'self' | 'peer' | string; } export interface ConversationWord { key: string; text: string; count: number; messageCount: number; } export interface ConversationWordsResult { id: string; updatedAt: number; fromAt: number | null; toAt: number | null; analyzedMessages: number; eligibleMessages: number; excludedMessages: number; voiceTranscriptMessages: number; words: ConversationWord[]; } export interface ConversationWordsState { supported: boolean; stale: boolean; result: ConversationWordsResult | null; job: { id: string; status: 'queued' | 'processing' | 'failed'; completed: number; total: number; } | null; } export interface ConversationWordParticipant { ref: string; name: string; isSelf: boolean; former: boolean; } export interface ConversationWordParticipants { items: ConversationWordParticipant[]; nextCursor: string | null; } export interface ConversationWordMessage { key: string; sourceRef: string | null; senderName: string; text: string; sentAt: number; count: number; basis: 'text' | 'voice_transcript'; } export interface ConversationWordMessages { items: ConversationWordMessage[]; total: number; nextCursor: string | null; } export declare const wordObject: (v: unknown) => Record; export declare const wordText: (v: unknown, max?: number) => string; export declare function parseConversationWordsQuery(input: unknown): ConversationWordsQuery; export declare function conversationWordsEnvelope(q: ConversationWordsQuery, sessionUid: string, scope?: 'conversation_words' | 'conversation_activity'): { schema_version: number; scope: "conversation_words" | "conversation_activity"; chat_session_uid: string; time_zone: string; from_date: string | null; to_date: string | null; sender: string; }; export declare function assertConversationWordsEnvelope(v: Record, q: ConversationWordsQuery, sessionUid: string, scope?: 'conversation_words' | 'conversation_activity'): void; export declare const unavailableConversationWords: () => ConversationWordsState; export declare function parseConversationWordsState(value: unknown, q: ConversationWordsQuery, sessionUid: string): ConversationWordsState; export declare function parseConversationWordParticipants(value: unknown, q: ConversationWordsQuery, sessionUid: string, scope?: 'conversation_words' | 'conversation_activity'): ConversationWordParticipants; export declare function parseConversationWordMessages(value: unknown, q: ConversationWordsQuery, sessionUid: string, resultId: string, wordKey: string): ConversationWordMessages; //# sourceMappingURL=conversation-word-frequency.d.ts.map