UNPKG

2.05 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright 2021 Google LLC
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { model as jaModel } from './data/models/ja.js';
17import { model as zhHansModel } from './data/models/zh-hans.js';
18import { model as zhHantModel } from './data/models/zh-hant.js';
19import { HTMLProcessingParser } from './html_processor.js';
20export { Parser } from './parser.js';
21export { HTMLProcessor, HTMLProcessingParser } from './html_processor.js';
22export { jaModel, zhHansModel, zhHantModel };
23/**
24 * Loads a parser equipped with the default Japanese model.
25 * @return A parser with the default Japanese model.
26 */
27export declare const loadDefaultJapaneseParser: () => HTMLProcessingParser;
28/**
29 * Loads a parser equipped with the default Simplified Chinese model.
30 * @return A parser with the default Simplified Chinese model.
31 */
32export declare const loadDefaultSimplifiedChineseParser: () => HTMLProcessingParser;
33/**
34 * Loads a parser equipped with the default Traditional Chinese model.
35 * @return A parser with the default Traditional Chinese model.
36 */
37export declare const loadDefaultTraditionalChineseParser: () => HTMLProcessingParser;
38/**
39 * Loads a parser equipped with the default Thai model.
40 * @returns A parser with the default Thai model.
41 */
42export declare const loadDefaultThaiParser: () => HTMLProcessingParser;
43/**
44 * Loads available default parsers.
45 * @return A map between available lang codes and their default parsers.
46 */
47export declare const loadDefaultParsers: () => Map<string, HTMLProcessingParser>;