1import { EventEmitter, Subscription } from 'expo-core'; 2import { DownloadOptions, DownloadResult, DownloadProgressCallback, DownloadProgressData, DownloadPauseState, FileInfo, EncodingType, ReadingOptions, WritingOptions, ProgressEvent } from './FileSystem.types'; 3export { DownloadOptions, DownloadResult, DownloadProgressCallback, DownloadProgressData, DownloadPauseState, FileInfo, EncodingType, ReadingOptions, WritingOptions, ProgressEvent, }; 4export declare const documentDirectory: any, cacheDirectory: any, bundledAssets: any, bundleDirectory: any; 5export declare function getInfoAsync(fileUri: string, options?: { 6 md5?: boolean; 7 cache?: boolean; 8}): Promise<FileInfo>; 9export declare function readAsStringAsync(fileUri: string, options?: ReadingOptions): Promise<string>; 10export declare function writeAsStringAsync(fileUri: string, contents: string, options?: WritingOptions): Promise<void>; 11export declare function deleteAsync(fileUri: string, options?: { 12 idempotent?: boolean; 13}): Promise<void>; 14export declare function moveAsync(options: { 15 from: string; 16 to: string; 17}): Promise<void>; 18export declare function copyAsync(options: { 19 from: string; 20 to: string; 21}): Promise<void>; 22export declare function makeDirectoryAsync(fileUri: string, options?: { 23 intermediates?: boolean; 24}): Promise<void>; 25export declare function readDirectoryAsync(fileUri: string): Promise<string[]>; 26export declare function downloadAsync(uri: string, fileUri: string, options?: DownloadOptions): Promise<DownloadResult>; 27export declare function createDownloadResumable(uri: string, fileUri: string, options?: DownloadOptions, callback?: DownloadProgressCallback, resumeData?: string): DownloadResumable; 28export declare class DownloadResumable { 29 _uuid: string; 30 _url: string; 31 _fileUri: string; 32 _options: DownloadOptions; 33 _resumeData?: string; 34 _callback?: DownloadProgressCallback; 35 _subscription?: Subscription | null; 36 _emitter: EventEmitter; 37 constructor(url: string, fileUri: string, options?: DownloadOptions, callback?: DownloadProgressCallback, resumeData?: string); 38 downloadAsync(): Promise<DownloadResult | undefined>; 39 pauseAsync(): Promise<DownloadPauseState>; 40 resumeAsync(): Promise<DownloadResult | undefined>; 41 savable(): DownloadPauseState; 42 _addSubscription(): void; 43 _removeSubscription(): void; 44} 45