UNPKG

kura-expo-fs

Version:

The FileSystem API abstraction library, Expo Filesystem Plugin

24 lines 1.26 kB
/// <reference types="node" /> import { AbstractAccessor, FileSystem, FileSystemObject } from "kura"; import { FileSystemOptions } from "kura/lib/FileSystemOptions"; export declare class ExpoFsAccessor extends AbstractAccessor { private rootUri; filesystem: FileSystem; name: string; constructor(rootDir: string, options: FileSystemOptions); doDelete(fullPath: string, isFile: boolean): Promise<void>; doGetObject(fullPath: string, _isFile: boolean): Promise<FileSystemObject>; doGetObjects(dirPath: string): Promise<FileSystemObject[]>; doMakeDirectory(fullPath: string): Promise<void>; doReadContent(fullPath: string): Promise<Blob | Uint8Array | ArrayBuffer | string>; getURL(fullPath: string): Promise<string>; protected doWriteArrayBuffer(fullPath: string, buffer: ArrayBuffer): Promise<void>; protected doWriteBase64(fullPath: string, base64: string): Promise<void>; protected doWriteBlob(fullPath: string, blob: Blob): Promise<void>; protected doWriteBuffer(fullPath: string, buffer: Buffer): Promise<void>; protected doWriteUint8Array(fullPath: string, view: Uint8Array): Promise<void>; private doGetInfo; private log; private toURL; } //# sourceMappingURL=ExpoFsAccessor.d.ts.map