UNPKG

1.23 kBTypeScriptView Raw
1/* auto-generated by NAPI-RS */
2/* eslint-disable */
3export class Xxh32 {
4 constructor(seed?: number | undefined | null)
5 update(input: string | Uint8Array): this
6 digest(): number
7 reset(newState?: number | undefined | null): void
8}
9
10export class Xxh64 {
11 constructor(seed?: bigint | undefined | null)
12 update(input: string | Uint8Array): this
13 digest(): bigint
14 reset(newState?: bigint | undefined | null): void
15}
16
17export function xxh32(input: string | Uint8Array, seed?: number | undefined | null): number
18
19export function xxh64(input: string | Uint8Array, seed?: bigint | undefined | null): bigint
20
21export namespace xxh3 {
22 export class Xxh3 {
23 static withSeed(seed?: bigint | undefined | null): Xxh3
24 static withSecret(secret: Uint8Array): Xxh3
25 update(input: string | Uint8Array): this
26 digest(): bigint
27 reset(): void
28 }
29 export function xxh128(input: string | Uint8Array, seed?: bigint | undefined | null): bigint
30 export function xxh128WithSecret(input: string | Uint8Array, secret: Uint8Array): bigint
31 export function xxh64(input: string | Uint8Array, seed?: bigint | undefined | null): bigint
32 export function xxh64WithSecret(input: string | Uint8Array, secret: Uint8Array): bigint
33}
34
35
\No newline at end of file