File size: 767 Bytes
89d6d49
 
 
 
 
 
 
 
 
6f65083
 
a8e0628
6f65083
 
 
 
b6846ab
a8e0628
 
 
6f65083
b6846ab
 
 
 
 
 
 
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
declare module 'langdetect' {
    interface DetectionResult {
        lang: string;
        prob: number;
    }

    export function detect(text: string): DetectionResult[];
    export function detectOne(text: string): string | null;
}

declare module 'jsdom' {
    import EventEmitter from 'events';
    export class JSDOM {
        constructor(html: string, options?: any);
        window: typeof window;
    }
    export class VirtualConsole extends EventEmitter {
        constructor();
        sendTo(console: any, options?: any);
    }
}

declare module 'simple-zstd' {
    import { Duplex } from 'stream';
    export function ZSTDCompress(lvl: Number): Duplex;
    export function ZSTDDecompress(): Duplex;
    export function ZSTDDecompressMaybe(): Duplex;
}