/opt/canhelp/node_modules/@better-auth/utils/dist/shared
Edit: /opt/canhelp/node_modules/@better-auth/utils/dist/shared/utils.ecd028f7.d.ts (1153B)
type TypedArray = Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
/**
* Equivalent to `Uint8Array` before TypeScript 5.7, and `Uint8Array
` in TypeScript 5.7
* and beyond.
*
* **Context**
*
* `Uint8Array` became a generic type in TypeScript 5.7, requiring types defined simply as
* `Uint8Array` to be refactored to `Uint8Array` starting in Deno 2.2. `Uint8Array` is
* _not_ generic in Deno 2.1.x and earlier, though, so this type helps bridge this gap.
*
* Inspired by Deno's std library:
*
* https://github.com/denoland/std/blob/b5a5fe4f96b91c1fe8dba5cc0270092dd11d3287/bytes/_types.ts#L11
*/
type Uint8Array_ = ReturnType;
type SHAFamily = "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512";
type EncodingFormat = "hex" | "base64" | "base64url" | "base64urlnopad" | "none";
type ECDSACurve = "P-256" | "P-384" | "P-521";
type ExportKeyFormat = "jwk" | "spki" | "pkcs8" | "raw";
export type { EncodingFormat as E, SHAFamily as S, TypedArray as T, Uint8Array_ as U, ECDSACurve as a, ExportKeyFormat as b };