messages.d.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import * as tr from './transformers.js';
  2. export interface Messages {
  3. MS: {
  4. [msg: string]: string;
  5. };
  6. MSroots: {
  7. [msg: string]: string;
  8. };
  9. font: {
  10. [msg: string]: string | [string, string];
  11. };
  12. embellish: {
  13. [msg: string]: string | [string, string];
  14. };
  15. role: {
  16. [msg: string]: string | [string, string];
  17. };
  18. enclose: {
  19. [msg: string]: string | [string, string];
  20. };
  21. navigate: {
  22. [msg: string]: string;
  23. };
  24. regexp: {
  25. [msg: string]: string;
  26. };
  27. unitTimes: string;
  28. }
  29. export declare function MESSAGES(): Messages;
  30. export interface Numbers {
  31. zero?: string;
  32. ones?: string[];
  33. tens?: string[];
  34. large?: string[];
  35. special?: {
  36. [key: string]: string | string[];
  37. };
  38. wordOrdinal?: tr.Transformer;
  39. numericOrdinal?: tr.Transformer;
  40. numberToWords?: tr.Transformer;
  41. numberToOrdinal?: tr.GrammarCase;
  42. vulgarSep?: string;
  43. numSep?: string;
  44. }
  45. export declare function NUMBERS(numbers?: Numbers): Numbers;
  46. export interface Alphabets {
  47. latinSmall: string[];
  48. latinCap: string[];
  49. greekSmall: string[];
  50. greekCap: string[];
  51. capPrefix: {
  52. [key: string]: string;
  53. };
  54. smallPrefix: {
  55. [key: string]: string;
  56. };
  57. digitPrefix: {
  58. [key: string]: string;
  59. };
  60. languagePrefix?: {
  61. [key: string]: string;
  62. };
  63. digitTrans: {
  64. [key: string]: tr.Transformer;
  65. };
  66. letterTrans: {
  67. [key: string]: tr.Transformer;
  68. };
  69. combiner: tr.Combiner;
  70. }
  71. export declare function ALPHABETS(): Alphabets;
  72. export interface Functions {
  73. fracNestDepth: (node: Element) => boolean;
  74. radicalNestDepth: (count: number) => string;
  75. combineRootIndex: (name: string, index: string) => string;
  76. combineNestedFraction: tr.Combiner;
  77. combineNestedRadical: tr.Combiner;
  78. fontRegexp: (font: string) => RegExp;
  79. si: tr.SiCombiner;
  80. plural: tr.Transformer;
  81. }
  82. export declare function FUNCTIONS(): Functions;
  83. export interface SubIso {
  84. default: string;
  85. current: string;
  86. all: string[];
  87. }
  88. export declare function SUBISO(): SubIso;