1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export class ExternalObject<T> {
|
7 | readonly '': {
|
8 | readonly '': unique symbol
|
9 | [K: symbol]: T
|
10 | }
|
11 | }
|
12 | export function xxh32(input: string | Buffer, seed?: number | undefined | null): number
|
13 | export function xxh64(input: string | Buffer, seed?: BigInt | undefined | null): BigInt
|
14 | export 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 | }
|
20 | export 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 | }
|
26 | export 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 |