1 |
|
2 |
|
3 |
|
4 | import { IWord } from '../segment/types';
|
5 | export declare const SYMBOL_DEBUG_KEY = "_debug";
|
6 | export declare type IWordDebugInfo<T extends IWordDebug = IWordDebug> = {
|
7 | ZhtSynonymOptimizer?: boolean;
|
8 | convertSynonym?: boolean;
|
9 | autoCreate?: boolean;
|
10 | _source?: T & IWordDebug;
|
11 | index?: number;
|
12 | ps_en?: string;
|
13 | [key: string]: any;
|
14 | [key: number]: any;
|
15 | };
|
16 | export declare type IWordDebug = IWord & {
|
17 | m?: Array<IWordDebug | string>;
|
18 | ps?: string;
|
19 | pp?: string;
|
20 | ow?: string;
|
21 | op?: number;
|
22 | ops?: string;
|
23 | opp?: string;
|
24 | os?: boolean;
|
25 | [SYMBOL_DEBUG_KEY]?: IWordDebugInfo<IWordDebug>;
|
26 | };
|
27 | export declare function clearTokemDebug(data: IWordDebugInfo, returnClone?: false): data is IWord;
|
28 | export declare function clearTokemDebug(data: IWordDebugInfo, returnClone?: true): IWord;
|
29 | export declare function debugToken<T extends IWordDebug, U extends IWordDebugInfo>(data: T, attr: U & IWordDebugInfo, returnToken: true, ...argv: any[]): T;
|
30 | export declare function debugToken<T extends IWordDebug, U extends IWordDebugInfo>(data: T, attr?: U & IWordDebugInfo, returnToken?: boolean, ...argv: any[]): U & IWordDebugInfo;
|
31 | export declare function debug_token<T extends IWordDebug>(ks: Array<T>, returnSource?: boolean): Array<T | IWordDebug>;
|
32 | export declare function token_add_info<T extends IWordDebug>(v: T): T;
|
33 | export declare function toHex(p: number): string;
|