interface IQuery { /** * @description jsapi 名称,必传参数 */ apiName: string; /** * @description 平台类型,统一转为大写后比较 * @default @hylid/env包中的platform * @enum MPWEB | MP | WEB */ platform?: string; /** * @description 客户端名称,必须传全称,统一转为大写后比较 * * @default @hylid/env中的client */ client?: string; /** * @description 客户端 app 版本号, 不传默认取当前客户端版本号 * @default getSystemInfoSync().version */ clientVersion?: string; options?: { /** * 版本号比较规则 * @default loose * @description strict: 严格比较,必须长度一致,长度不一致默认当前版本号小于被比较的版本号 * @description loose: 宽松比较,从第一位开始比较,如果当前版本号大于被比较的版本号则返回 true,否则返回 false * @description none: 不校验版本 */ compareVersion?: 'strict' | 'loose' | 'none'; [key: string]: any; }; } export declare function whichCanIUse(args: IQuery): boolean; /** * @param strict 严格模式下,版本长度不一致时返回 -1 * @returns version1 > version2 ? 1 : version1 < version2 ? -1 : 0 */ export declare function compareVersion(version1: string, version2: string, strict?: boolean): number; export {};