system.d.ts 1.5 KB

12345678910111213141516171819202122232425262728
  1. import { AuditoryDescription } from '../audio/auditory_description.js';
  2. import { KeyCode } from './event_util.js';
  3. import * as FileUtil from './file_util.js';
  4. import { standardLoader } from '../speech_rules/math_map.js';
  5. export declare const version: string;
  6. export declare function setupEngine(feature: {
  7. [key: string]: boolean | string;
  8. }): Promise<string>;
  9. export declare function engineSetup(): {
  10. [key: string]: boolean | string;
  11. };
  12. export declare function engineReady(): Promise<any>;
  13. export declare const localeLoader: typeof standardLoader;
  14. export declare function toSpeech(expr: string): string;
  15. export declare function toSemantic(expr: string): Node;
  16. export declare function toJson(expr: string): any;
  17. export declare function toDescription(expr: string): AuditoryDescription[];
  18. export declare function toEnriched(expr: string): Element;
  19. export declare function number(expr: string): string;
  20. export declare function ordinal(expr: string): string;
  21. export declare function numericOrdinal(expr: string): string;
  22. export declare function vulgar(expr: string): string;
  23. export declare const file: Record<string, (input: string, output?: string) => any>;
  24. export declare function processFile(processor: string, input: string, opt_output?: string): string | Promise<string>;
  25. export declare function walk(expr: string): string;
  26. export declare function move(direction: KeyCode | string): string | null;
  27. export declare function exit(opt_value?: number): void;
  28. export declare const localePath: typeof FileUtil.localePath;