Files
NapCatQQ/.pnpm-store/v3/files/db/12a30452adbaee59696e7f9a4d5ac9b63442715d930232d1fddefdf0d4ec53f20c4860a2808bfa61e7d7281ecc988431225bec3450d5b25548c70d89302838
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
1.5 KiB
Plaintext

import { QQVersionConfigType, QQLevel } from './types';
export { compareSemVer } from './version';
export declare function solveProblem<T extends (...arg: any[]) => any>(func: T, ...args: Parameters<T>): Promise<ReturnType<T> | undefined>;
export declare function solveAsyncProblem<T extends (...args: any[]) => Promise<any>>(func: T, ...args: Parameters<T>): Promise<Awaited<ReturnType<T>> | undefined>;
export declare function sleep(ms: number): Promise<void>;
export declare function PromiseTimer<T>(promise: Promise<T>, ms: number): Promise<T>;
export declare function runAllWithTimeout<T>(tasks: Promise<T>[], timeout: number): Promise<T[]>;
export declare function isNull(value: any): boolean;
export declare function isNumeric(str: string): boolean;
export declare function truncateString(obj: any, maxLength?: number): any;
export declare function isEqual(obj1: any, obj2: any): boolean;
export declare function getDefaultQQVersionConfigInfo(): QQVersionConfigType;
export declare function getQQPackageInfoPath(exePath?: string, version?: string): string;
export declare function getQQVersionConfigPath(exePath?: string): string | undefined;
export declare function calcQQLevel(level?: QQLevel): number;
export declare function stringifyWithBigInt(obj: any): string;
export declare function parseAppidFromMajor(nodeMajor: string): string | undefined;
export declare function getAllTags(mirror?: string): Promise<{
tags: string[];
mirror: string;
}>;
export declare function getLatestTag(mirror?: string): Promise<string>;