Files
SnowLuma/.pnpm-store/v11/files/32/9d937785e58f247801d573371becb6fcfae7a96efef73a20f4924ebecbd462c5e7edd8d07d35354a67fe1d92542cb26b3e42a60a91668866b35305ff975c6d
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

14 lines
531 B
Plaintext

import { JSONValue } from "./types.js";
//#region src/utils/crypto.d.ts
type Algorithm = {
name: string;
alias: string;
};
type Data = string | boolean | number | JSONValue | ArrayBufferView | ArrayBuffer;
export declare const sha256: (data: Data) => Promise<string | null>;
export declare const sha1: (data: Data) => Promise<string | null>;
export declare const md5: (data: Data) => Promise<string | null>;
export declare const createHash: (data: Data, algorithm: Algorithm) => Promise<string | null>;
//#endregion
export {};