UNPKG

react-native-cloud-storage

Version:

☁️ Save to & read from iCloud and Google Drive using React Native

24 lines 977 B
import type { CodegenTypes, TurboModule } from 'react-native'; export type LocalFileSystemConstants = { temporaryDirectory: string; }; export type LocalFileSystemDownloadOptions = { headers?: CodegenTypes.UnsafeObject; }; export type LocalFileSystemUploadOptions = { headers?: CodegenTypes.UnsafeObject; method?: string; uploadType?: string; fieldName?: string; parameters?: CodegenTypes.UnsafeObject; }; export interface Spec extends TurboModule { getConstants(): LocalFileSystemConstants; createFile(path: string, data: string): Promise<string>; readFile(path: string): Promise<string>; downloadFile(remoteUri: string, localPath: string, options?: LocalFileSystemDownloadOptions): Promise<void>; uploadFile(localPath: string, remoteUri: string, options: LocalFileSystemUploadOptions): Promise<void>; } declare const _default: Spec | null; export default _default; //# sourceMappingURL=NativeCloudStorageLocalFileSystem.d.ts.map