import { WebPlugin } from '@capacitor/core'; import type { AppendFileOptions, CopyOptions, CopyResult, DeleteFileOptions, FilesystemPlugin, GetUriOptions, GetUriResult, MkdirOptions, PermissionStatus, ReadFileOptions, ReadFileResult, ReaddirOptions, ReaddirResult, RenameOptions, RmdirOptions, StatOptions, StatResult, WriteFileOptions, WriteFileResult, ReadFileInChunksOptions, CallbackID, DownloadFileOptions, DownloadFileResult, ReadFileInChunksCallback } from './definitions'; export declare class FilesystemWeb extends WebPlugin implements FilesystemPlugin { readFileInChunks(_options: ReadFileInChunksOptions, _callback: ReadFileInChunksCallback): Promise; DB_VERSION: number; DB_NAME: string; private _writeCmds; private _db?; static _debug: boolean; initDb(): Promise; static doUpgrade(event: IDBVersionChangeEvent): void; dbRequest(cmd: string, args: any[]): Promise; dbIndexRequest(indexName: string, cmd: string, args: [any]): Promise; private getPath; clear(): Promise; /** * Read a file from disk * @param options options for the file read * @return a promise that resolves with the read file data result */ readFile(options: ReadFileOptions): Promise; /** * Write a file to disk in the specified location on device * @param options options for the file write * @return a promise that resolves with the file write result */ writeFile(options: WriteFileOptions): Promise; /** * Append to a file on disk in the specified location on device * @param options options for the file append * @return a promise that resolves with the file write result */ appendFile(options: AppendFileOptions): Promise; /** * Delete a file from disk * @param options options for the file delete * @return a promise that resolves with the deleted file data result */ deleteFile(options: DeleteFileOptions): Promise; /** * Create a directory. * @param options options for the mkdir * @return a promise that resolves with the mkdir result */ mkdir(options: MkdirOptions): Promise; /** * Remove a directory * @param options the options for the directory remove */ rmdir(options: RmdirOptions): Promise; /** * Return a list of files from the directory (not recursive) * @param options the options for the readdir operation * @return a promise that resolves with the readdir directory listing result */ readdir(options: ReaddirOptions): Promise; /** * Return full File URI for a path and directory * @param options the options for the stat operation * @return a promise that resolves with the file stat result */ getUri(options: GetUriOptions): Promise; /** * Return data about a file * @param options the options for the stat operation * @return a promise that resolves with the file stat result */ stat(options: StatOptions): Promise; /** * Rename a file or directory * @param options the options for the rename operation * @return a promise that resolves with the rename result */ rename(options: RenameOptions): Promise; /** * Copy a file or directory * @param options the options for the copy operation * @return a promise that resolves with the copy result */ copy(options: CopyOptions): Promise; requestPermissions(): Promise; checkPermissions(): Promise; /** * Function that can perform a copy or a rename * @param options the options for the rename operation * @param doRename whether to perform a rename or copy operation * @return a promise that resolves with the result */ private _copy; /** * Function that performs a http request to a server and downloads the file to the specified destination * * @deprecated Use the @capacitor/file-transfer plugin instead. * @param options the options for the download operation * @returns a promise that resolves with the download file result */ downloadFile: (options: DownloadFileOptions) => Promise; private isBase64String; }