/** * Shared utilities for conversation-based parsers (Slack, Discord). */ /** Time gap threshold for splitting unthreaded messages (30 minutes) */ export declare const TIME_GAP_MS: number; /** * Batch a sorted array of items into groups separated by time gaps. * * Items within `TIME_GAP_MS` of each other end up in the same batch. * The caller provides a `getTimestamp` function that returns a * millisecond-epoch number for each item. * * @param items - Pre-sorted array of items (oldest first) * @param getTimestamp - Extract ms-epoch timestamp from an item * @returns Array of batches (each batch is a non-empty array of items) */ export declare function batchByTimeGap(items: readonly T[], getTimestamp: (item: T) => number): T[][]; //# sourceMappingURL=chat-utils.d.ts.map