UNPKG

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