import { ChaintracksAppendableFileApi, ChaintracksFsApi, ChaintracksReadableFileApi, ChaintracksWritableFileApi } from '../Api/ChaintracksFsApi'; import { promises as fs } from 'node:fs'; import Path from 'node:path'; export declare abstract class ChaintracksFsStatics { static delete(path: string): Promise; static writeFile(path: string, data: Uint8Array): Promise; static readFile(path: string): Promise; static openReadableFile(path: string): Promise; static openWritableFile(path: string): Promise; static openAppendableFile(path: string): Promise; static ensureFoldersExist(path: string): Promise; static pathJoin(...parts: string[]): string; } /** * This object is an implementation of the `ChaintracksFsApi` interface * using the `fs` package which may not be available in all environments. */ export declare const ChaintracksFs: ChaintracksFsApi; export declare class ChaintracksReadableFile implements ChaintracksReadableFileApi { path: string; parsedPath: Path.ParsedPath; f: fs.FileHandle; protected constructor(path: string, f: fs.FileHandle); close(): Promise; getLength(): Promise; read(length?: number, offset?: number): Promise; static openAsReadable(path: string): Promise; } export declare class ChaintracksWritableFile implements ChaintracksWritableFileApi { path: string; parsedPath: Path.ParsedPath; f: fs.FileHandle; foldersEnsured: boolean; private constructor(); static openAsWritable(path: string): Promise; close(): Promise; ensureFoldersExist(): Promise; append(data: Uint8Array): Promise; } export declare class ChaintracksAppendableFile extends ChaintracksReadableFile implements ChaintracksAppendableFileApi { foldersEnsured: boolean; private constructor(); static openAsAppendable(path: string): Promise; ensureFoldersExist(): Promise; append(data: Uint8Array): Promise; } //# sourceMappingURL=ChaintracksFs.d.ts.map