import { Snapshot } from './contract'; export type Logger = (msg: string) => void; export declare class Store { private capBytes; private log; readonly rawDir: string; readonly rollupDir: string; private chain; private currentHourKey; private knownKeys; private bytes; onHourClosed: ((closedHour: string) => Promise) | null; constructor(dataDir: string, capBytes: number, log: Logger); init(now: number): Promise; private enqueue; rawPath(hour: string): string; append(snap: Snapshot): Promise; listRawKeys(): Promise; readRaw(hour: string): Promise; rawUsage(): Promise<{ bytes: number; files: number; oldest: string | null; }>; enforceCap(): Promise; flush(): Promise; } export declare function parseNdjson(text: string): T[];