import { SQLiteDriver } from "../dal/drivers/SQLiteDriver"; import { FileDALParams } from "../dal/fileDAL"; export interface FileSystem { isMemoryOnly(): boolean; fsExists(file: string): Promise; fsReadFile(file: string): Promise; fsUnlink(file: string): Promise; fsList(dir: string): Promise; fsWrite(file: string, content: string): Promise; fsMakeDirectory(dir: string): Promise; fsRemoveTree(dir: string): Promise; fsStreamTo(file: string, iterator: IterableIterator): Promise; } export declare const RealFS: () => FileSystem; export declare const MemFS: (initialTree?: { [folder: string]: { [file: string]: string; }; }) => FileSystem; export declare const Directory: { DATA_FILES: string[]; WW_FILES: string[]; DATA_DIRS: string[]; INSTANCE_NAME: string; INSTANCE_HOME: string; GET_FILE_PATH: (fileSubPath: string, home?: string) => string; INSTANCE_HOMELOG_FILE: string; DUNITER_DB_NAME: string; LOKI_DB_DIR: string; DATA_DIR: string; OLD_WOTB_FILE: string; NEW_WOTB_FILE: string; getHome: (profile?: string | null, directory?: string | null) => string; getHomeDB: (isMemory: boolean, dbName: string, home?: string) => Promise; getHomeLevelDB: (isMemory: boolean, dbName: string, home?: string) => Promise, import("abstract-leveldown").AbstractIterator>>; getHomeFS: (isMemory: boolean, theHome: string, makeTree?: boolean) => Promise<{ home: string; fs: FileSystem; }>; getWotbFilePath: (home: string) => string; getHomeParams: (isMemory: boolean, theHome: string) => Promise; createHomeIfNotExists: (fileSystem: any, theHome: string) => Promise; };