decode.d.ts 669 B

123456789101112131415
  1. import htmlDecodeTree from "./generated/decode-data-html";
  2. import xmlDecodeTree from "./generated/decode-data-xml";
  3. export { htmlDecodeTree, xmlDecodeTree };
  4. export declare enum BinTrieFlags {
  5. HAS_VALUE = 32768,
  6. BRANCH_LENGTH = 32512,
  7. MULTI_BYTE = 128,
  8. JUMP_TABLE = 127
  9. }
  10. export declare const JUMP_OFFSET_BASE: number;
  11. export declare function determineBranch(decodeTree: Uint16Array, current: number, nodeIdx: number, char: number): number;
  12. export declare function decodeHTML(str: string): string;
  13. export declare function decodeHTMLStrict(str: string): string;
  14. export declare function decodeXML(str: string): string;
  15. //# sourceMappingURL=decode.d.ts.map