-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
index.d.ts
33 lines (29 loc) · 1.24 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* auto-generated by NAPI-RS */
/* eslint-disable */
export declare class Xxh32 {
constructor(seed?: number | undefined | null)
update(input: string | Uint8Array): this
digest(): number
reset(newState?: number | undefined | null): void
}
export declare class Xxh64 {
constructor(seed?: bigint | undefined | null)
update(input: string | Uint8Array): this
digest(): bigint
reset(newState?: bigint | undefined | null): void
}
export declare function xxh32(input: Uint8Array | string, seed?: number | undefined | null): number
export declare function xxh64(input: Uint8Array | string, seed?: bigint | undefined | null): bigint
export declare namespace xxh3 {
export class Xxh3 {
static withSeed(seed?: bigint | undefined | null): Xxh3
static withSecret(secret: Uint8Array): Xxh3
update(input: string | Uint8Array): this
digest(): bigint
reset(): void
}
export function xxh128(input: string | Uint8Array, seed?: bigint | undefined | null): bigint
export function xxh128WithSecret(input: string | Uint8Array, secret: Uint8Array): bigint
export function xxh64(input: Uint8Array | string, seed?: bigint | undefined | null): bigint
export function xxh64WithSecret(input: string | Uint8Array, secret: Uint8Array): bigint
}