math_compound_store.d.ts 1.2 KB

123456789101112131415161718192021
  1. import { BaseJson, MathSimpleStore, SiJson, MappingsJson, SimpleRule, UnicodeJson } from './math_simple_store.js';
  2. import { DynamicCstr } from './dynamic_cstr.js';
  3. export declare function changeLocale(json: UnicodeJson): boolean;
  4. export declare function setSiPrefixes(prefixes: SiJson): void;
  5. export declare const subStores: Map<string, MathSimpleStore>;
  6. export declare const baseStores: Map<string, BaseJson>;
  7. export declare function defineRules(base: string, str: string, mappings: MappingsJson): void;
  8. export declare function defineRule(domain: string, style: string, str: string, content: string): void;
  9. export declare function addSymbolRules(json: UnicodeJson[]): void;
  10. export declare const addCharacterRules: (json: UnicodeJson[]) => void;
  11. export declare function addFunctionRules(json: UnicodeJson[]): void;
  12. export declare function addUnitRules(json: UnicodeJson[]): void;
  13. export declare function lookupRule(node: string, dynamic: DynamicCstr): SimpleRule;
  14. export declare function lookupCategory(character: string): string;
  15. export declare function lookupString(text: string, dynamic: DynamicCstr): string;
  16. export declare function enumerate(info?: {
  17. [key: string]: any;
  18. }): {
  19. [key: string]: any;
  20. };
  21. export declare function reset(): void;