import { IDirectoryEntry, IFileEntry } from "../types"; import { IReadDirectoryInstanceOutput } from './parts'; export type AnyFunction = (...args: any[]) => any; export interface ICreateFsProps { databaseName?: string; databaseVersion?: number; objectStoreName?: string; rootDirectoryName?: string; } export interface ICreateFsOutput { copyFile: (sourcePath: string, destinationPath: string) => Promise>; createDirectory: (fullPath: string) => Promise; databaseName: string; databaseVersion: number; details: (fullPath: string) => Promise | IDirectoryEntry>; directoryDetails: (fullPath: string) => Promise; exists: (fullPath: string) => Promise; fileDetails: (fullPath: string) => Promise>; isDirectory: (fullPath: string) => Promise; isFile: (fullPath: string) => Promise; moveFile: (sourcePath: string, destinationPath: string) => Promise>; objectStoreName: string; readDirectory: (fullPath: string) => Promise; readFile: (fullPath: string) => Promise; remove: (fullPath: string) => Promise; removeDirectory: (fullPath: string) => Promise; removeFile: (fullPath: string) => Promise; renameFile: (fullPath: string, newFilename: string) => Promise>; rootDirectoryName: string; writeFile: (fullPath: string, data: TData) => Promise>; }