import type { HistoryRecord } from "@gryt/crypto"; import type { HistoryArchive, HistoryCursor } from "./interfaces.js"; export declare const dayOf: (sentAt: number) => number; /** Negative when `a` is newer: by time, then by message id, the same order the archive pages in. */ export declare function newerFirst(a: HistoryCursor, b: HistoryCursor): number; /** A's archive one UTC day at a time, newest day first across every conversation and server. */ export declare function archiveByDay(archive: HistoryArchive, pageSize?: number): AsyncGenerator;