diff --git a/index.d.ts b/index.d.ts index 2e5e5b9..58cf44e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -24,6 +24,10 @@ interface DetectLanguage { readonly chunks: Chunk[]; } export declare module 'cld' { + const LANGUAGES: {[name: string]: string}; + const DETECTED_LANGUAGES: string[]; + const ENCODINGS: string[]; + declare function detect(text: string, options: Options, callback: (err: string, result: DetectLanguage) => void): void; declare function detect(text: string, callback: (err: string, result: DetectLanguage) => void): void; declare function detect(text: string, options: Options): Promise;