Repository navigation
Expand file tree
/
Copy pathindex.ts
More file actions
58 lines (55 loc) · 1.52 KB
/
Copy pathindex.ts
File metadata and controls
58 lines (55 loc) · 1.52 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2022 DeepL SE (https://www.deepl.com)
// Use of this source code is governed by an MIT
// license that can be found in the LICENSE file.
import { HttpClient } from './client';
import {
AuthorizationError,
DeepLError,
DocumentNotReadyError,
DocumentTranslationError,
GlossaryNotFoundError,
QuotaExceededError,
TooManyRequestsError,
} from './errors';
import { GlossaryEntries } from './glossaryEntries';
import {
parseDocumentHandle,
parseDocumentStatus,
parseGlossaryInfo,
parseGlossaryInfoList,
parseGlossaryLanguagePairArray,
parseLanguageArray,
parseTextResultArray,
parseUsage,
} from './parsing';
import { Translator } from './translator';
import {
AppInfo,
DocumentTranslateOptions,
Formality,
GlossaryId,
GlossaryInfo,
LanguageCode,
NonRegionalLanguageCode,
RequestParameters,
SentenceSplittingMode,
SourceGlossaryLanguageCode,
SourceLanguageCode,
TagList,
TargetGlossaryLanguageCode,
TargetLanguageCode,
TranslateTextOptions,
TranslatorOptions,
} from './types';
import { isString, logInfo, streamToBuffer, streamToString, timeout, toBoolString } from './utils';
import * as fs from 'fs';
import { IncomingMessage, STATUS_CODES } from 'http';
import path from 'path';
import * as os from 'os';
import { URLSearchParams } from 'url';
import * as util from 'util';
export * from './errors';
export * from './glossaryEntries';
export * from './types';
export * from './deeplClient';
export * from './translator';