import type { AnomalyEvent, AuditRow, BundleManifest, FollowUp, LoginDayCount, LogType } from './model.js'; export declare const BUNDLE_PATHS: { readonly manifest: 'manifest.json'; readonly anomalies: 'anomalies.json'; readonly audit: 'org/audit.json'; readonly loginsByDay: 'org/logins-by-day.json'; readonly followUp: 'org/followup.json'; }; export declare function logPath(type: LogType, day: string): string; export declare function sha256File(path: string): Promise; export declare function writeJsonAtomic(path: string, value: unknown): void; export declare class BundleIntegrityError extends Error { readonly files: string[]; constructor(files: string[]); } export declare class BundleIncompleteError extends Error { constructor(); } export interface Bundle { dir: string; manifest: BundleManifest; manifestSha256: string; anomalies: AnomalyEvent[]; audit: AuditRow[]; loginsByDay: LoginDayCount[]; followUp: FollowUp; rows(type: LogType, day: string): AsyncIterable>; hasLog(type: LogType, day: string): boolean; } /** Loads a bundle after checking every file against the manifest's sha256. */ export declare function loadBundle(dir: string, opts?: { allowIncomplete?: boolean; }): Promise; //# sourceMappingURL=bundleIo.d.ts.map