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