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