44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
interface Window {
|
|
debug: boolean;
|
|
ethSigUtil: any;
|
|
cc: any;
|
|
Stream: any;
|
|
jc: {
|
|
wallet: JCWallet;
|
|
};
|
|
jcwallet: JCWallet;
|
|
}
|
|
declare namespace jc {
|
|
export const wallet: JCWallet;
|
|
}
|
|
|
|
declare namespace jsb {
|
|
export function walletSign(str: string);
|
|
export function loadLocalStorage(key: string);
|
|
export function signWithGoogle(id: number);
|
|
export function signWithApple(id: number);
|
|
export function signWithTikTok(id: number);
|
|
export function signWithFacebook(id: number);
|
|
export function callJcVoidMethodJNI(id: number, methodName: string);
|
|
export function signWithTwitter(id: number);
|
|
export function signWithEmail(id: number);
|
|
export function signOutGoogle(id: number);
|
|
export function showWebPage(url: string);
|
|
export function openURL(url: string);
|
|
export function scanQRCode(id: number, title: string);
|
|
export function hexDeflate(str: string): string;
|
|
export function hexInflate(str: string): string;
|
|
export function hashSvrPass(pass: string): string;
|
|
export function walletEncrypt(str: string): string;
|
|
export function walletDecrypt(str: string): string;
|
|
export function prepareWallet(
|
|
id: string,
|
|
openid: string,
|
|
key_master: string,
|
|
salt: string,
|
|
pass: string
|
|
): string;
|
|
}
|
|
|
|
declare let window: Window;
|