Files
NapCatQQ/.pnpm-store/v3/files/60/c524d51263d93ed37bbaa6bbb59dc10bc29a170cad138d972574d707cdad115823b54617600cd9aafadef83f7147c63e692810e06b9a26b559ffee19f39dc0
T
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

28 lines
944 B
Plaintext

export interface HttpDownloadOptions {
url: string;
headers?: Record<string, string> | string;
proxy?: string;
}
type Uri2LocalRes = {
success: boolean;
errMsg: string;
fileName: string;
path: string;
};
export declare function checkFileExist(path: string, timeout?: number): Promise<void>;
export declare function checkFileExistV2(path: string, timeout?: number): Promise<void>;
export declare function calculateFileMD5(filePath: string): Promise<string>;
export declare function httpDownload(options: string | HttpDownloadOptions): Promise<Buffer>;
export enum FileUriType {
Unknown = 0,
Local = 1,
Remote = 2,
Base64 = 3
}
export declare function checkUriType(Uri: string): Promise<{
Uri: string;
Type: FileUriType;
}>;
export declare function uriToLocalFile(dir: string, uri: string, filename?: string, headers?: Record<string, string>, proxy?: string): Promise<Uri2LocalRes>;
export {};