@twip/web 0.0.0 → 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/LICENSE +202 -0
  2. package/dist/AccessibleNode.d.ts +51 -0
  3. package/dist/AccessibleNode.mjs +177 -0
  4. package/dist/Alignment.d.ts +38 -0
  5. package/dist/Alignment.mjs +90 -0
  6. package/dist/BorderEdges.d.ts +50 -0
  7. package/dist/BorderEdges.mjs +114 -0
  8. package/dist/BorderStyle.d.ts +27 -0
  9. package/dist/BorderStyle.mjs +81 -0
  10. package/dist/Bytes.d.ts +19 -0
  11. package/dist/Bytes.mjs +76 -0
  12. package/dist/CaretPosition.d.ts +34 -0
  13. package/dist/CaretPosition.mjs +148 -0
  14. package/dist/CellAlignment.d.ts +25 -0
  15. package/dist/CellAlignment.mjs +75 -0
  16. package/dist/CellShift.d.ts +30 -0
  17. package/dist/CellShift.mjs +78 -0
  18. package/dist/Clipboard.d.ts +22 -0
  19. package/dist/Clipboard.mjs +90 -0
  20. package/dist/ColumnSide.d.ts +24 -0
  21. package/dist/ColumnSide.mjs +72 -0
  22. package/dist/ControlKind.d.ts +28 -0
  23. package/dist/ControlKind.mjs +84 -0
  24. package/dist/ControlLock.d.ts +42 -0
  25. package/dist/ControlLock.mjs +96 -0
  26. package/dist/DocumentStatus.d.ts +34 -0
  27. package/dist/DocumentStatus.mjs +148 -0
  28. package/dist/Editor.d.ts +773 -0
  29. package/dist/Editor.mjs +2269 -0
  30. package/dist/EditorMode.d.ts +34 -0
  31. package/dist/EditorMode.mjs +84 -0
  32. package/dist/Element.d.ts +57 -0
  33. package/dist/Element.mjs +201 -0
  34. package/dist/ElementKind.d.ts +28 -0
  35. package/dist/ElementKind.mjs +78 -0
  36. package/dist/ElementList.d.ts +20 -0
  37. package/dist/ElementList.mjs +71 -0
  38. package/dist/ElementText.d.ts +34 -0
  39. package/dist/ElementText.mjs +84 -0
  40. package/dist/Event.d.ts +45 -0
  41. package/dist/Event.mjs +159 -0
  42. package/dist/EventKind.d.ts +39 -0
  43. package/dist/EventKind.mjs +93 -0
  44. package/dist/EventList.d.ts +20 -0
  45. package/dist/EventList.mjs +71 -0
  46. package/dist/Fonts.d.ts +29 -0
  47. package/dist/Fonts.mjs +107 -0
  48. package/dist/Highlight.d.ts +41 -0
  49. package/dist/Highlight.mjs +117 -0
  50. package/dist/MarginPreset.d.ts +38 -0
  51. package/dist/MarginPreset.mjs +90 -0
  52. package/dist/MarkSeverity.d.ts +25 -0
  53. package/dist/MarkSeverity.mjs +75 -0
  54. package/dist/Modifiers.d.ts +34 -0
  55. package/dist/Modifiers.mjs +148 -0
  56. package/dist/OpenError.d.ts +30 -0
  57. package/dist/OpenError.mjs +78 -0
  58. package/dist/Orientation.d.ts +30 -0
  59. package/dist/Orientation.mjs +78 -0
  60. package/dist/PageNumber.d.ts +34 -0
  61. package/dist/PageNumber.mjs +84 -0
  62. package/dist/PaperSize.d.ts +50 -0
  63. package/dist/PaperSize.mjs +108 -0
  64. package/dist/ParagraphBorders.d.ts +34 -0
  65. package/dist/ParagraphBorders.mjs +84 -0
  66. package/dist/PictureWrap.d.ts +34 -0
  67. package/dist/PictureWrap.mjs +90 -0
  68. package/dist/PointerKind.d.ts +23 -0
  69. package/dist/PointerKind.mjs +75 -0
  70. package/dist/Rect.d.ts +34 -0
  71. package/dist/Rect.mjs +148 -0
  72. package/dist/Request.d.ts +55 -0
  73. package/dist/Request.mjs +207 -0
  74. package/dist/RequestKind.d.ts +45 -0
  75. package/dist/RequestKind.mjs +105 -0
  76. package/dist/RequestList.d.ts +20 -0
  77. package/dist/RequestList.mjs +71 -0
  78. package/dist/RowHeightRule.d.ts +34 -0
  79. package/dist/RowHeightRule.mjs +84 -0
  80. package/dist/RowSide.d.ts +24 -0
  81. package/dist/RowSide.mjs +72 -0
  82. package/dist/SaveError.d.ts +24 -0
  83. package/dist/SaveError.mjs +72 -0
  84. package/dist/SelectionInfo.d.ts +39 -0
  85. package/dist/SelectionInfo.mjs +166 -0
  86. package/dist/SelectionKind.d.ts +37 -0
  87. package/dist/SelectionKind.mjs +93 -0
  88. package/dist/THIRD-PARTY-NOTICES.md +4475 -0
  89. package/dist/TableAlignment.d.ts +25 -0
  90. package/dist/TableAlignment.mjs +75 -0
  91. package/dist/TableSelection.d.ts +38 -0
  92. package/dist/TableSelection.mjs +90 -0
  93. package/dist/TableWidthUnit.d.ts +31 -0
  94. package/dist/TableWidthUnit.mjs +81 -0
  95. package/dist/TextUnit.d.ts +25 -0
  96. package/dist/TextUnit.mjs +75 -0
  97. package/dist/diplomat-runtime.d.ts +15 -0
  98. package/dist/diplomat-runtime.mjs +786 -0
  99. package/dist/diplomat-wasm.mjs +18 -0
  100. package/dist/gpu.d.ts +15 -0
  101. package/dist/gpu.mjs +42 -0
  102. package/dist/index.d.ts +98 -0
  103. package/dist/index.mjs +101 -0
  104. package/dist/twip-wasm.js +2 -0
  105. package/dist/twip_wasm.wasm +0 -0
  106. package/package.json +18 -4
@@ -0,0 +1,45 @@
1
+ // generated by diplomat-tool
2
+ import type { EventKind } from "./EventKind"
3
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
+
5
+
6
+
7
+ export class Event {
8
+ /** @internal */
9
+ get ffiValue(): pointer;
10
+ /** @internal */
11
+ constructor();
12
+
13
+
14
+ get kind(): EventKind;
15
+
16
+ /**
17
+ * Activate: the element's id.
18
+ */
19
+ id(): string;
20
+
21
+ /**
22
+ * Command: the application command's name.
23
+ */
24
+ name(): string;
25
+
26
+ /**
27
+ * FieldUpdate: the token to pass back with the results.
28
+ */
29
+ get token(): number;
30
+
31
+ /**
32
+ * FieldUpdate: how many fields to compute.
33
+ */
34
+ get fieldCount(): number;
35
+
36
+ /**
37
+ * FieldUpdate: the field's id.
38
+ */
39
+ fieldId(index: number): string;
40
+
41
+ /**
42
+ * FieldUpdate: the field's code (`MERGEFIELD Name`, ...).
43
+ */
44
+ fieldCode(index: number): string;
45
+ }
package/dist/Event.mjs ADDED
@@ -0,0 +1,159 @@
1
+ // generated by diplomat-tool
2
+ import { EventKind } from "./EventKind.mjs"
3
+ import wasm from "./diplomat-wasm.mjs";
4
+ import * as diplomatRuntime from "./diplomat-runtime.mjs";
5
+
6
+ const Event_box_destroy_registry = new FinalizationRegistry((ptr) => {
7
+ wasm.Event_destroy(ptr);
8
+ });
9
+
10
+ export class Event {
11
+ // Internal ptr reference:
12
+ #ptr = null;
13
+
14
+ // Lifetimes are only to keep dependencies alive.
15
+ // Since JS won't garbage collect until there are no incoming edges.
16
+ #selfEdge = [];
17
+
18
+ #internalConstructor(symbol, ptr, selfEdge) {
19
+ if (symbol !== diplomatRuntime.internalConstructor) {
20
+ console.error("Event is an Opaque type. You cannot call its constructor.");
21
+ return;
22
+ }
23
+ this.#ptr = ptr;
24
+ this.#selfEdge = selfEdge;
25
+
26
+ // Are we being borrowed? If not, we can register.
27
+ if (this.#selfEdge.length === 0) {
28
+ Event_box_destroy_registry.register(this, this.#ptr);
29
+ }
30
+
31
+ return this;
32
+ }
33
+ /** @internal */
34
+ get ffiValue() {
35
+ return this.#ptr;
36
+ }
37
+
38
+
39
+ get kind() {
40
+
41
+ const result = wasm.Event_kind(this.ffiValue);
42
+
43
+ try {
44
+ return new EventKind(diplomatRuntime.internalConstructor, result);
45
+ }
46
+
47
+ finally {
48
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Activate: the element's id.
54
+ */
55
+ id() {
56
+ const write = new diplomatRuntime.DiplomatWriteBuf(wasm);
57
+
58
+ wasm.Event_id(this.ffiValue, write.buffer);
59
+
60
+ try {
61
+ return write.readString8();
62
+ }
63
+
64
+ finally {
65
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
66
+ write.free();
67
+ }
68
+ }
69
+
70
+ /**
71
+ * Command: the application command's name.
72
+ */
73
+ name() {
74
+ const write = new diplomatRuntime.DiplomatWriteBuf(wasm);
75
+
76
+ wasm.Event_name(this.ffiValue, write.buffer);
77
+
78
+ try {
79
+ return write.readString8();
80
+ }
81
+
82
+ finally {
83
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
84
+ write.free();
85
+ }
86
+ }
87
+
88
+ /**
89
+ * FieldUpdate: the token to pass back with the results.
90
+ */
91
+ get token() {
92
+
93
+ const result = wasm.Event_token(this.ffiValue);
94
+
95
+ try {
96
+ return result;
97
+ }
98
+
99
+ finally {
100
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
101
+ }
102
+ }
103
+
104
+ /**
105
+ * FieldUpdate: how many fields to compute.
106
+ */
107
+ get fieldCount() {
108
+
109
+ const result = wasm.Event_field_count(this.ffiValue);
110
+
111
+ try {
112
+ return result;
113
+ }
114
+
115
+ finally {
116
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
117
+ }
118
+ }
119
+
120
+ /**
121
+ * FieldUpdate: the field's id.
122
+ */
123
+ fieldId(index) {
124
+ const write = new diplomatRuntime.DiplomatWriteBuf(wasm);
125
+
126
+ wasm.Event_field_id(this.ffiValue, index, write.buffer);
127
+
128
+ try {
129
+ return write.readString8();
130
+ }
131
+
132
+ finally {
133
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
134
+ write.free();
135
+ }
136
+ }
137
+
138
+ /**
139
+ * FieldUpdate: the field's code (`MERGEFIELD Name`, ...).
140
+ */
141
+ fieldCode(index) {
142
+ const write = new diplomatRuntime.DiplomatWriteBuf(wasm);
143
+
144
+ wasm.Event_field_code(this.ffiValue, index, write.buffer);
145
+
146
+ try {
147
+ return write.readString8();
148
+ }
149
+
150
+ finally {
151
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
152
+ write.free();
153
+ }
154
+ }
155
+
156
+ constructor(symbol, ptr, selfEdge) {
157
+ return this.#internalConstructor(...arguments)
158
+ }
159
+ }
@@ -0,0 +1,39 @@
1
+ // generated by diplomat-tool
2
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
3
+
4
+
5
+
6
+ /**
7
+ * What happened in the document that the application may act on.
8
+ */
9
+ export class EventKind {
10
+
11
+ /** @internal */
12
+ static fromValue(value: EventKind | string): EventKind;
13
+
14
+ get value(): string;
15
+
16
+ /** @internal */
17
+ get ffiValue(): number;
18
+
19
+ /**
20
+ * An unfilled placeholder was activated (see `Request.placeholder_key`).
21
+ */
22
+ static Placeholder : EventKind;
23
+ /**
24
+ * A field or control was activated in design mode: `id`.
25
+ */
26
+ static Activate : EventKind;
27
+ /**
28
+ * The user asked to update fields: compute each field's result and pass it back with `token`.
29
+ */
30
+ static FieldUpdate : EventKind;
31
+ /**
32
+ * A key asked for an application command (`name`: Find, Replace, Hyperlink, Font, ...).
33
+ */
34
+ static Command : EventKind;
35
+ static Unknown : EventKind;
36
+
37
+
38
+ constructor(value: EventKind | string );
39
+ }
@@ -0,0 +1,93 @@
1
+ // generated by diplomat-tool
2
+ import wasm from "./diplomat-wasm.mjs";
3
+ import * as diplomatRuntime from "./diplomat-runtime.mjs";
4
+
5
+
6
+
7
+ /**
8
+ * What happened in the document that the application may act on.
9
+ */
10
+ export class EventKind {
11
+ #value = undefined;
12
+
13
+ static #values = new Map([
14
+ ["Placeholder", 0],
15
+ ["Activate", 1],
16
+ ["FieldUpdate", 2],
17
+ ["Command", 3],
18
+ ["Unknown", 4]
19
+ ]);
20
+
21
+ static getAllEntries() {
22
+ return EventKind.#values.entries();
23
+ }
24
+
25
+ #internalConstructor(value) {
26
+ if (arguments.length > 1 && arguments[0] === diplomatRuntime.internalConstructor) {
27
+ // We pass in two internalConstructor arguments to create *new*
28
+ // instances of this type, otherwise the enums are treated as singletons.
29
+ if (arguments[1] === diplomatRuntime.internalConstructor ) {
30
+ this.#value = arguments[2];
31
+ return this;
32
+ }
33
+ return EventKind.#objectValues[arguments[1]];
34
+ }
35
+
36
+ if (value instanceof EventKind) {
37
+ return value;
38
+ }
39
+
40
+ let intVal = EventKind.#values.get(value);
41
+
42
+ // Nullish check, checks for null or undefined
43
+ if (intVal != null) {
44
+ return EventKind.#objectValues[intVal];
45
+ }
46
+
47
+ throw TypeError(value + " is not a EventKind and does not correspond to any of its enumerator values.");
48
+ }
49
+
50
+ /** @internal */
51
+ static fromValue(value) {
52
+ return new EventKind(value);
53
+ }
54
+
55
+ get value(){
56
+ return [...EventKind.#values.keys()][this.#value];
57
+ }
58
+
59
+ /** @internal */
60
+ get ffiValue(){
61
+ return this.#value;
62
+ }
63
+ static #objectValues = [
64
+ new EventKind(diplomatRuntime.internalConstructor, diplomatRuntime.internalConstructor, 0),
65
+ new EventKind(diplomatRuntime.internalConstructor, diplomatRuntime.internalConstructor, 1),
66
+ new EventKind(diplomatRuntime.internalConstructor, diplomatRuntime.internalConstructor, 2),
67
+ new EventKind(diplomatRuntime.internalConstructor, diplomatRuntime.internalConstructor, 3),
68
+ new EventKind(diplomatRuntime.internalConstructor, diplomatRuntime.internalConstructor, 4),
69
+ ];
70
+
71
+ /**
72
+ * An unfilled placeholder was activated (see `Request.placeholder_key`).
73
+ */
74
+ static Placeholder = EventKind.#objectValues[0];
75
+ /**
76
+ * A field or control was activated in design mode: `id`.
77
+ */
78
+ static Activate = EventKind.#objectValues[1];
79
+ /**
80
+ * The user asked to update fields: compute each field's result and pass it back with `token`.
81
+ */
82
+ static FieldUpdate = EventKind.#objectValues[2];
83
+ /**
84
+ * A key asked for an application command (`name`: Find, Replace, Hyperlink, Font, ...).
85
+ */
86
+ static Command = EventKind.#objectValues[3];
87
+ static Unknown = EventKind.#objectValues[4];
88
+
89
+
90
+ constructor(value) {
91
+ return this.#internalConstructor(...arguments)
92
+ }
93
+ }
@@ -0,0 +1,20 @@
1
+ // generated by diplomat-tool
2
+ import type { Event } from "./Event"
3
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
+
5
+
6
+
7
+ /**
8
+ * Events since the application last took them, in order.
9
+ */
10
+ export class EventList {
11
+ /** @internal */
12
+ get ffiValue(): pointer;
13
+ /** @internal */
14
+ constructor();
15
+
16
+
17
+ get len(): number;
18
+
19
+ get(index: number): Event | null;
20
+ }
@@ -0,0 +1,71 @@
1
+ // generated by diplomat-tool
2
+ import { Event } from "./Event.mjs"
3
+ import wasm from "./diplomat-wasm.mjs";
4
+ import * as diplomatRuntime from "./diplomat-runtime.mjs";
5
+
6
+ const EventList_box_destroy_registry = new FinalizationRegistry((ptr) => {
7
+ wasm.EventList_destroy(ptr);
8
+ });
9
+
10
+ /**
11
+ * Events since the application last took them, in order.
12
+ */
13
+ export class EventList {
14
+ // Internal ptr reference:
15
+ #ptr = null;
16
+
17
+ // Lifetimes are only to keep dependencies alive.
18
+ // Since JS won't garbage collect until there are no incoming edges.
19
+ #selfEdge = [];
20
+
21
+ #internalConstructor(symbol, ptr, selfEdge) {
22
+ if (symbol !== diplomatRuntime.internalConstructor) {
23
+ console.error("EventList is an Opaque type. You cannot call its constructor.");
24
+ return;
25
+ }
26
+ this.#ptr = ptr;
27
+ this.#selfEdge = selfEdge;
28
+
29
+ // Are we being borrowed? If not, we can register.
30
+ if (this.#selfEdge.length === 0) {
31
+ EventList_box_destroy_registry.register(this, this.#ptr);
32
+ }
33
+
34
+ return this;
35
+ }
36
+ /** @internal */
37
+ get ffiValue() {
38
+ return this.#ptr;
39
+ }
40
+
41
+
42
+ get len() {
43
+
44
+ const result = wasm.EventList_len(this.ffiValue);
45
+
46
+ try {
47
+ return result;
48
+ }
49
+
50
+ finally {
51
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
52
+ }
53
+ }
54
+
55
+ get(index) {
56
+
57
+ const result = wasm.EventList_get(this.ffiValue, index);
58
+
59
+ try {
60
+ return result === 0 ? null : new Event(diplomatRuntime.internalConstructor, result, []);
61
+ }
62
+
63
+ finally {
64
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
65
+ }
66
+ }
67
+
68
+ constructor(symbol, ptr, selfEdge) {
69
+ return this.#internalConstructor(...arguments)
70
+ }
71
+ }
@@ -0,0 +1,29 @@
1
+ // generated by diplomat-tool
2
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
3
+
4
+
5
+
6
+ /**
7
+ * The font catalog documents are laid out with. Create one and pass it to every editor; add fonts before creating
8
+ * editors (an editor keeps the catalog it was created with).
9
+ */
10
+ export class Fonts {
11
+ /** @internal */
12
+ get ffiValue(): pointer;
13
+
14
+
15
+ /**
16
+ * The fonts installed on this system (none in the browser: add them with `add_font`).
17
+ */
18
+ static system(): Fonts;
19
+
20
+ /**
21
+ * Adds a font file (TrueType, OpenType or a collection); false if it isn't one.
22
+ */
23
+ addFont(bytes: Uint8Array | Array<number>): boolean;
24
+
25
+ /**
26
+ * An empty catalog.
27
+ */
28
+ constructor();
29
+ }
package/dist/Fonts.mjs ADDED
@@ -0,0 +1,107 @@
1
+ // generated by diplomat-tool
2
+ import wasm from "./diplomat-wasm.mjs";
3
+ import * as diplomatRuntime from "./diplomat-runtime.mjs";
4
+
5
+ const Fonts_box_destroy_registry = new FinalizationRegistry((ptr) => {
6
+ wasm.Fonts_destroy(ptr);
7
+ });
8
+
9
+ /**
10
+ * The font catalog documents are laid out with. Create one and pass it to every editor; add fonts before creating
11
+ * editors (an editor keeps the catalog it was created with).
12
+ */
13
+ export class Fonts {
14
+ // Internal ptr reference:
15
+ #ptr = null;
16
+
17
+ // Lifetimes are only to keep dependencies alive.
18
+ // Since JS won't garbage collect until there are no incoming edges.
19
+ #selfEdge = [];
20
+
21
+ #internalConstructor(symbol, ptr, selfEdge) {
22
+ if (symbol !== diplomatRuntime.internalConstructor) {
23
+ console.error("Fonts is an Opaque type. You cannot call its constructor.");
24
+ return;
25
+ }
26
+ this.#ptr = ptr;
27
+ this.#selfEdge = selfEdge;
28
+
29
+ // Are we being borrowed? If not, we can register.
30
+ if (this.#selfEdge.length === 0) {
31
+ Fonts_box_destroy_registry.register(this, this.#ptr);
32
+ }
33
+
34
+ return this;
35
+ }
36
+ /** @internal */
37
+ get ffiValue() {
38
+ return this.#ptr;
39
+ }
40
+
41
+
42
+ /**
43
+ * The fonts installed on this system (none in the browser: add them with `add_font`).
44
+ */
45
+ static system() {
46
+
47
+ const result = wasm.Fonts_system();
48
+
49
+ try {
50
+ return new Fonts(diplomatRuntime.internalConstructor, result, []);
51
+ }
52
+
53
+ finally {
54
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
55
+ }
56
+ }
57
+
58
+ /**
59
+ * An empty catalog.
60
+ */
61
+ #defaultConstructor() {
62
+
63
+ const result = wasm.Fonts_create();
64
+
65
+ try {
66
+ return new Fonts(diplomatRuntime.internalConstructor, result, []);
67
+ }
68
+
69
+ finally {
70
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
71
+ }
72
+ }
73
+
74
+ /**
75
+ * Adds a font file (TrueType, OpenType or a collection); false if it isn't one.
76
+ */
77
+ addFont(bytes) {
78
+ let functionCleanupArena = new diplomatRuntime.CleanupArena();
79
+
80
+ const bytesSlice = functionCleanupArena.alloc(diplomatRuntime.DiplomatBuf.sliceWrapper(wasm, diplomatRuntime.DiplomatBuf.slice(wasm, bytes, "u8")));
81
+
82
+ const result = wasm.Fonts_add_font(this.ffiValue, bytesSlice.ptr);
83
+
84
+ try {
85
+ return result === 1;
86
+ }
87
+
88
+ finally {
89
+ diplomatRuntime.FUNCTION_PARAM_ALLOC.clean();
90
+ functionCleanupArena.free();
91
+
92
+ }
93
+ }
94
+
95
+ /**
96
+ * An empty catalog.
97
+ */
98
+ constructor() {
99
+ if (arguments[0] === diplomatRuntime.exposeConstructor) {
100
+ return this.#internalConstructor(...Array.prototype.slice.call(arguments, 1));
101
+ } else if (arguments[0] === diplomatRuntime.internalConstructor) {
102
+ return this.#internalConstructor(...arguments);
103
+ } else {
104
+ return this.#defaultConstructor(...arguments);
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,41 @@
1
+ // generated by diplomat-tool
2
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
3
+
4
+
5
+
6
+ /**
7
+ * A text highlight colour.
8
+ */
9
+ export class Highlight {
10
+
11
+ /** @internal */
12
+ static fromValue(value: Highlight | string): Highlight;
13
+
14
+ get value(): string;
15
+
16
+ /** @internal */
17
+ get ffiValue(): number;
18
+
19
+ static Yellow : Highlight;
20
+ static Green : Highlight;
21
+ static Cyan : Highlight;
22
+ static Magenta : Highlight;
23
+ static Blue : Highlight;
24
+ static Red : Highlight;
25
+ static DarkBlue : Highlight;
26
+ static DarkCyan : Highlight;
27
+ static DarkGreen : Highlight;
28
+ static DarkMagenta : Highlight;
29
+ static DarkRed : Highlight;
30
+ static DarkYellow : Highlight;
31
+ static DarkGray : Highlight;
32
+ static LightGray : Highlight;
33
+ static Black : Highlight;
34
+ /**
35
+ * No highlight.
36
+ */
37
+ static None : Highlight;
38
+
39
+
40
+ constructor(value: Highlight | string );
41
+ }