starchild-widget
Version:
Starchild Widget
21 lines • 451 B
TypeScript
/**
* 简单的环境配置
*/
export type Environment = 'testnet' | 'mainnet';
/**
* 设置当前环境
*/
export declare function setEnvironment(env: Environment): void;
/**
* 获取当前环境
*/
export declare function getEnvironment(): Environment;
/**
* 是否为测试网
*/
export declare function isTestnet(): boolean;
/**
* 是否为主网
*/
export declare function isMainnet(): boolean;
//# sourceMappingURL=environment.d.ts.map