import { EventEmitter, Subscription } from '@unimodules/core'; import { DownloadOptions, DownloadPauseState, DownloadProgressCallback, DownloadProgressData, DownloadResult, EncodingType, FileInfo, FileSystemAcceptedUploadHttpMethod, FileSystemDownloadResult, FileSystemRequestDirectoryPermissionsResult, FileSystemSessionType, FileSystemUploadOptions, FileSystemUploadResult, FileSystemUploadType, ProgressEvent, ReadingOptions, WritingOptions } from './FileSystem.types'; export { DownloadOptions, DownloadPauseState, DownloadProgressCallback, DownloadProgressData, DownloadResult, EncodingType, FileInfo, FileSystemDownloadResult, FileSystemRequestDirectoryPermissionsResult, FileSystemAcceptedUploadHttpMethod, FileSystemSessionType, FileSystemUploadOptions, FileSystemUploadResult, FileSystemUploadType, ProgressEvent, ReadingOptions, WritingOptions, }; export declare const documentDirectory: string | null; export declare const cacheDirectory: string | null; export declare const bundledAssets: string | null, bundleDirectory: string | null; export declare function getInfoAsync(fileUri: string, options?: { md5?: boolean; size?: boolean; }): Promise; export declare function readAsStringAsync(fileUri: string, options?: ReadingOptions): Promise; export declare function getContentUriAsync(fileUri: string): Promise; export declare function writeAsStringAsync(fileUri: string, contents: string, options?: WritingOptions): Promise; export declare function deleteAsync(fileUri: string, options?: { idempotent?: boolean; }): Promise; export declare function deleteLegacyDocumentDirectoryAndroid(): Promise; export declare function moveAsync(options: { from: string; to: string; }): Promise; export declare function copyAsync(options: { from: string; to: string; }): Promise; export declare function makeDirectoryAsync(fileUri: string, options?: { intermediates?: boolean; }): Promise; export declare function readDirectoryAsync(fileUri: string): Promise; export declare function getFreeDiskStorageAsync(): Promise; export declare function getTotalDiskCapacityAsync(): Promise; export declare function downloadAsync(uri: string, fileUri: string, options?: DownloadOptions): Promise; export declare function uploadAsync(url: string, fileUri: string, options?: FileSystemUploadOptions): Promise; export declare function createDownloadResumable(uri: string, fileUri: string, options?: DownloadOptions, callback?: DownloadProgressCallback, resumeData?: string): DownloadResumable; export declare class DownloadResumable { _uuid: string; _url: string; _fileUri: string; _options: DownloadOptions; _resumeData?: string; _callback?: DownloadProgressCallback; _subscription?: Subscription | null; _emitter: EventEmitter; constructor(url: string, fileUri: string, options?: DownloadOptions, callback?: DownloadProgressCallback, resumeData?: string); downloadAsync(): Promise; pauseAsync(): Promise; resumeAsync(): Promise; savable(): DownloadPauseState; _addSubscription(): void; _removeSubscription(): void; } /** * Android only */ export declare namespace StorageAccessFramework { function getUriForDirectoryInRoot(folderName: string): string; function requestDirectoryPermissionsAsync(initialFileUrl?: string | null): Promise; function readDirectoryAsync(dirUri: string): Promise; function makeDirectoryAsync(parentUri: string, dirName: string): Promise; function createFileAsync(parentUri: string, fileName: string, mimeType: string): Promise; const writeAsStringAsync: typeof import("./FileSystem").writeAsStringAsync; const readAsStringAsync: typeof import("./FileSystem").readAsStringAsync; const deleteAsync: typeof import("./FileSystem").deleteAsync; const moveAsync: typeof import("./FileSystem").moveAsync; const copyAsync: typeof import("./FileSystem").copyAsync; }