interface EventPaths { eventsPath: string; } interface StorageOptions { objectIdLength: number; legacy?: boolean; onHash?: (entry: { type: string; bytes: number; }) => unknown; } interface FileMetadata { isDirectory(): boolean; isFile(): boolean; isSymbolicLink(): boolean; } interface SnapshotEntry { mode: string; type: string; object: string; size: number | null; name: string; } interface StorageFileSystem { lstat(path: string): Promise; readFile(path: string): Promise; snapshotEntry?(path: string): SnapshotEntry | null | undefined; snapshotFile?(path: string): Promise; } export interface EventStore { storage: "single-file"; path: string; entries: []; bytes: Buffer; length: number; digest: string; } interface StorageChange { path: string; before: Buffer | null; after: Buffer | null; } export declare function readEventStorage(root: string, paths: EventPaths, options: StorageOptions, filesystem?: StorageFileSystem): Promise; export declare function readRecoveryEventStorage(root: string, paths: EventPaths, options: StorageOptions, files: unknown): Promise; export declare function snapshotEventFileHead(_root: string, paths: EventPaths, options: StorageOptions, filesystem: StorageFileSystem): Promise; export declare function snapshotEventPrefix(root: string, paths: EventPaths, options: StorageOptions, filesystem: StorageFileSystem, length: unknown): Promise; export declare function storageDigest(_store: EventStore, bytes: Buffer, options: StorageOptions): string; export declare function eventStorageChanges(paths: EventPaths, store: EventStore, candidate: Buffer, _options: StorageOptions): StorageChange[]; export {}; //# sourceMappingURL=storage.d.ts.map