forked from mockingbot/react-native-zip-archive
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.d.ts
12 lines (12 loc) · 973 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
declare module 'react-native-zip-archive' {
export function creteFile(filePath: string, fileContent: string): Promise<string>;
export function pathParameters(): string;
export function zip(source: string, target: string): Promise<string>;
export function unzip(source: string, target: string, charset?: string): Promise<string>;
export function zipWithPassword(source: string, target: string, password: string, encryptionMethod?: 'STANDARD' | 'AES-128' | 'AES-256' | ''): Promise<string>;
export function unzipWithPassword(assetPath: string, target: string, password: string): Promise<string>;
export function isPasswordProtected(source: string): Promise<boolean>;
export function subscribe(callback: ({ progress, filePath }: { progress: number, filePath: string }) => void): void;
export function unzipAssets(assetPath: string, target: string): Promise<string>;
export function getUncompressedSize(source: string, charset?: string): Promise<number>;
}