UNPKG

react-native-fast-io

Version:

Modern IO for React Native, built on top of Nitro and Web standards

27 lines 819 B
import { HybridObject } from 'react-native-nitro-modules'; export type Metadata = { name: string; path: string; root: string; size: number; type: string; lastModified: number; }; type WellKnownDirectory = 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos'; export type NativeFilePickerOptions = { multiple?: boolean; startIn?: string; extensions?: string[]; mimeTypes?: string[]; }; interface FileSystem extends HybridObject<{ ios: 'swift'; android: 'kotlin'; }> { getMetadata(path: string): Metadata; getWellKnownDirectoryPath(directory: WellKnownDirectory): string; showOpenFilePicker(options?: NativeFilePickerOptions): Promise<string[]>; } export declare const FileSystem: FileSystem; export {}; //# sourceMappingURL=fs.nitro.d.ts.map