web_reader / src /types.d.ts
nomagick's picture
restructure: nolonger a firebase application (#1160)
23a3b80 unverified
raw
history blame contribute delete
767 Bytes
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;
}