/** * Message Cutoff Helpers * * Purpose: * - Provide reusable, storage-agnostic chat-tail cutoff logic based on a target * message identity and timestamp. * * Key Features: * - Trims same-chat items from a target message onward. * - Uses timestamp cutoff when available and falls back to index-based trimming. * - Operates on minimal message-like records so core, Electron, CLI, and API * callers can share the same semantics. * * Notes: * - This module is intentionally dependency-free so renderer code can import it * without dragging in Node-specific core runtime modules. * * Recent Changes: * - 2026-03-10: Extracted generic chat-tail cutoff logic from Electron renderer * message updates so edit/delete flows can share one cutoff policy. */ export interface ChatCutoffItemLike { messageId?: string | null; chatId?: string | null; createdAt?: string | Date | null; } export declare function getChatCutoffItemTimestamp(item: ChatCutoffItemLike): number; export declare function trimChatItemsFromCutoff(items: T[], messageId: string, chatId: string | null): T[]; //# sourceMappingURL=message-cutoff.d.ts.map