//#region src/utils/crypto.d.ts declare function generateRandomValues(array: Uint8Array): typeof array; /** * Generates a secure alphanumeric string using the system's cryptographically secure * random number generator. */ declare function generateSecureRandomString(minBitsOfEntropy?: number): string; declare function encrypt({ purpose, secret, value }: { purpose: string; secret: string | Uint8Array; value: Uint8Array; }): Promise>; declare function decrypt({ purpose, secret, cipher }: { purpose: string; secret: string | Uint8Array; cipher: Uint8Array; }): Promise<({ status: "ok"; data: Uint8Array; } & { status: "ok"; }) | ({ status: "error"; error: Error; } & { status: "error"; })>; type HashOptions = { purpose: string; salt?: string | Uint8Array; extra?: string | Uint8Array; value: string | Uint8Array; }; declare function hash(options: HashOptions): Promise>; declare function iteratedHash(options: HashOptions & { iterations: number; }): Promise>; //#endregion export { HashOptions, decrypt, encrypt, generateRandomValues, generateSecureRandomString, hash, iteratedHash }; //# sourceMappingURL=crypto.d.ts.map