import { IStat } from "@spinajs/fs"; import { ILogArchiveContext } from "../context.js"; /** * Prefix every archived file name gets. Only files under `archiveDir` starting * with this prefix are considered archives ( so the active log dir, when it is * the same directory as the archive dir, is not touched ). */ export declare const ARCHIVE_PREFIX = "archived_"; export interface IArchiveEntry { /** * Path of the archive relative to `archiveFs` base path. */ path: string; stat: IStat; } /** * Joins archive dir + file name with forward slashes. fs providers resolve * paths against their base path and normalize separators, so a posix join keeps * behaviour identical across platforms. */ export declare function archivePath(ctx: ILogArchiveContext, name: string): string; /** * Lists archive files in `ctx.archiveDir` on `ctx.archiveFs`, sorted ascending * by modification time ( oldest first, newest last ). Only files carrying the * archive prefix are returned; directories and unrelated files are ignored. */ export declare function listArchives(ctx: ILogArchiveContext): Promise; //# sourceMappingURL=util.d.ts.map