
declare namespace cc { }
declare namespace cc._decorator {
	// export function ccclass(name?: string): Function;
	// export function ccclass(_class?: Function): void;
}
namespace cc._decorator {
	// export function ccclass(name?: string): Function { return () => { }; }
	export const ccclass: any = undefined;
}

namespace cc {
	export function log(msg: string | any, ...subst: any[]): void {
		if (CC_DEV) {
			console.log(msg, ...subst);
		}
	}
	export function warn(msg: string | any, ...subst: any[]): void {
		if (CC_DEV) {
			console.warn(msg, ...subst);
		}
	}
	export function error(msg: string | any, ...subst: any[]): void {
		if (CC_DEV) {
			console.error(msg, ...subst);
		}
	}
}

/** Running in the editor. */
declare const CC_EDITOR: boolean;
/** Preview in browser or simulator. */
declare const CC_PREVIEW: boolean;
/** Running in the editor or preview. */
declare const CC_DEV: boolean;
/** Running in the editor or preview, or build in debug mode. */
declare const CC_DEBUG: boolean;
/** Running in published project. */
declare const CC_BUILD: boolean;
/** Running in native platforms (mobile app, desktop app, or simulator). */
declare const CC_JSB: boolean;
/** Running in runtime environments. */
declare const CC_RUNTIME: boolean;
/** Running in the engine's unit test. */
declare const CC_TEST: boolean;
/** Running in the WeChat Mini Game. */
declare const CC_WECHATGAME: boolean;


interface Window {
	/**
	 * 註冊
	 * @param key key
	 * @param oskey oskey
	 */
	VickingCallback(key: string, oskey: string): void;

	/**
	 * Aid
	 * @param key key
	 */
	GaSetUserAid(key: string): void;

	/**
	 * VIP
	 * @param key key
	 */
	GaSetUserVip(key: number): void;

	/** 加到主畫面 */
	GaSetClickAddToHome(): void;

	/** 打開商店 */
	GaSetClickShop(): void;

	/** 前往MyCard */
	MetaGoMyCard(): void;

	MetaGoMyCard(item: any): void;

}
