react-native-fs-turbo
Version:
React-Native library for working with Android/iOS file system, written using JSI and C++ TurboModules
33 lines • 1.06 kB
TypeScript
import type { TurboModule } from "react-native";
import { UnsafeObject } from "react-native/Libraries/Types/CodegenTypes";
/**
* Used for configuration of a single RNFSTurbo instance.
*/
export interface Configuration {
mainBundlePath: string;
cachesDirectoryPath: string;
documentDirectoryPath: string;
temporaryDirectoryPath: string;
libraryDirectoryPath: string;
externalDirectoryPath: string;
externalStorageDirectoryPath: string;
externalCachesDirectoryPath: string;
downloadDirectoryPath: string;
picturesDirectoryPath: string;
roamingDirectoryPath: string;
}
/**
* Used for configuration of a single RNFSTurbo instance.
*/
export interface Spec extends TurboModule {
/**
* Create a new instance of RNFSTurbo.
* The returned {@linkcode UnsafeObject} is a `jsi::HostObject`.
*/
readonly createRNFSTurbo: () => UnsafeObject;
}
export declare function getRNFSTurboModule(): {
configuration: Configuration;
module: Spec;
};
//# sourceMappingURL=NativeRNFSTurboModule.d.ts.map