import type { Session } from "@stigmer/protos/ai/stigmer/agentic/session/v1/api_pb";
/** A time-based group of sessions produced by {@link groupSessionsByTime}. */
export interface SessionGroup {
    /** Display label for this group (e.g. "Today", "Yesterday"). */
    readonly label: string;
    /** Sessions belonging to this group, in their original input order. */
    readonly sessions: readonly Session[];
}
/**
 * Groups sessions by their creation timestamp into time-based buckets:
 * "Today", "Yesterday", "Previous 7 Days", "Previous 30 Days", "Older".
 *
 * Empty groups are omitted. Sessions with missing timestamps are placed
 * in the last group. Input order is preserved within each group.
 *
 * @param sessions - List of sessions to group (typically from `useSessionList`).
 * @param now - Reference time for grouping; defaults to the current time.
 *              Accepts an explicit value for deterministic testing.
 *
 * @example
 * ```tsx
 * function GroupedSessionList() {
 *   const { sessions } = useSessionList();
 *   const groups = groupSessionsByTime(sessions);
 *
 *   return (
 *     <div>
 *       {groups.map((group) => (
 *         <section key={group.label}>
 *           <h3>{group.label}</h3>
 *           <ul>
 *             {group.sessions.map((s) => (
 *               <li key={s.metadata?.id}>{s.status?.subject}</li>
 *             ))}
 *           </ul>
 *         </section>
 *       ))}
 *     </div>
 *   );
 * }
 * ```
 */
export declare function groupSessionsByTime(sessions: readonly Session[], now?: Date): readonly SessionGroup[];
//# sourceMappingURL=group-sessions.d.ts.map