expo-file-system
Version:
Provides access to the local file system on the device.
17 lines • 779 B
TypeScript
import { NativeModule } from 'expo-modules-core';
import type { Directory, File, DownloadOptions } from './ExpoFileSystem.types';
declare class ExpoFileSystemModule extends NativeModule {
FileSystemDirectory: typeof Directory;
FileSystemFile: typeof File;
downloadFileAsync(url: string, destination: File | Directory, options?: DownloadOptions): Promise<string>;
pickDirectoryAsync(initialUri?: string): Promise<Directory>;
pickFileAsync(initialUri?: string, mimeType?: string): Promise<File>;
totalDiskSpace: number;
availableDiskSpace: number;
documentDirectory: string;
cacheDirectory: string;
bundleDirectory: string;
}
declare const _default: ExpoFileSystemModule;
export default _default;
//# sourceMappingURL=ExpoFileSystem.d.ts.map