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