-
Notifications
You must be signed in to change notification settings - Fork 23
/
references.d.ts
29 lines (24 loc) · 1.02 KB
/
references.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.es6.d.ts" />
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.es2016.d.ts" />
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" />
declare module 'polyfill-crypto.getrandomvalues';
declare function alert(message?: any): void;
type HTMLElement = never;
type HTMLDivElement = never;
interface Thenable<R> {
then<U>(onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>;
}
namespace openpgp {
interface DecryptOptions {
message: openpgp.message.Message,
privateKey: openpgp.key.Key,
}
interface DecryptKeyOptions {
passphrase: string,
privateKey: openpgp.key.Key,
}
function decrypt(o:DecryptOptions) : Promise<string>;
function decryptKey(o:DecryptKeyOptions) : Promise<{key: openpgp.key.Key}>;
function initWorker(options:any);
}