export type MessageVote = 'up' | 'down'; export interface FeedbackEntry { messageIndex: number; messageId?: string; vote: MessageVote; updatedAt: string; } /** Mint a durable chat-message id (also used by SessionManager.addMessage). */ export declare function mintChatMessageId(): string; export declare function listMessageFeedback(platform: string, channelId: string, threadId: string): Promise; /** Resolve vote for a history message (prefer id, fall back to index). */ export declare function resolveFeedbackVote(entries: readonly FeedbackEntry[], opts: { messageId?: string; messageIndex: number; }): MessageVote | undefined; export declare function upsertMessageFeedback(opts: { platform: string; channelId: string; threadId: string; messageIndex: number; messageId?: string; vote: MessageVote | null; }): Promise<{ vote: MessageVote | null; }>; export declare function clearThreadFeedback(platform: string, channelId: string, threadId: string): Promise; //# sourceMappingURL=message-feedback.d.ts.map