import { Base } from '../../utils'; /** 免费试用的时间戳 */ export declare const LK_ACTIVE_FREE_START_TIMESTAMP = "lk_active_free_start_timestamp"; /** 免费试用的时间 */ export declare const FreeDays = 7; /** 许可证类型 */ export type LicenseType = 'TRIAL' | 'BASIC' | 'PRO' | 'ULTIMATE'; /** 将字符串 base64 编码 */ export declare function transStrToBase64(str: string): string; /** 将字符串 base64 解码 */ export declare function transBase64ToStr(b64: string): string; /** 许可证信息 */ export declare class LicenseHolder extends Base { /** 存放在 ClientConfig 中的激活码 */ activeKey: string; licenseType: LicenseType; featureKey: string; encryptedFeatureKey: string; /** 当前是否为激活状态 */ isActived: boolean; /** 剩余激活时间 */ remainUnix?: number; errorCode: 'INVALID_KEY' | 'EXPIRED_KEY'; /** 允许使用的时间 */ activeDayNum: number; /** 允许激活的设备数目 */ activeDeviceNum: number; /** 默认激活时间 */ activatedAt: string; /** polydevs 激活码 */ polydevsLicenseCode?: string; /** bp 激活码 */ bpcLicenseCode?: string; setLicenseType(licenseType: LicenseType): void; toActiveKey(): string; static fromActiveKey(activeKey: string): LicenseHolder; constructor(data?: Partial); } /** 邀请码 */ export declare class LicenseHolderInviteCode extends Base { /** 邀请码 */ inviteCode: string; /** 有效期截止日期 */ closeDate: string; /** 已经关联的激活码 */ activeKey: string; /** 控制创建激活码的有效期, 默认 30 */ activeDays: number; /** 控制创建激活码的有效期设备数, 默认 1 */ activeDeviceNum: number; /** 手机号 */ phoneNum: string; /** polydevs 激活码 */ polydevsLicenseCode?: string; /** bp 激活码 */ bpcLicenseCode?: string; constructor(data?: Partial); } /** 获得7天免费试用 */ export declare const activeFreeOnTrail: () => void; /** * 判断是否正在试用 * * - NONE 未开启试用 * - OVERTIME 已过期 * - ACTIVED 正在试用中 */ export declare const isActivedFreeOnTrail: () => 'NONE' | 'OVERTIME' | 'ACTIVED'; /** 判断当前是否还处于激活状态 */ export declare const inspectActivatedStatus: (featureKey?: string, activeKey?: string) => Promise;