@lowentry/utils 1.17.1 → 1.19.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.
@@ -0,0 +1,40 @@
1
+ {
2
+ "projectFolder": ".",
3
+ "mainEntryPointFilePath": "<projectFolder>/build/index.d.ts",
4
+ "bundledPackages": [],
5
+ "compiler": {
6
+ "tsconfigFilePath": "<projectFolder>/tsconfig.json"
7
+ },
8
+ "dtsRollup": {
9
+ "enabled": true,
10
+ "untrimmedFilePath": "<projectFolder>/dist/index.d.ts"
11
+ },
12
+ "apiReport": {
13
+ "enabled": false,
14
+ "includeForgottenExports": true
15
+ },
16
+ "docModel": {
17
+ "enabled": false,
18
+ "includeForgottenExports": true
19
+ },
20
+ "tsdocMetadata": {
21
+ "enabled": false
22
+ },
23
+ "messages": {
24
+ "compilerMessageReporting": {
25
+ "default": {
26
+ "logLevel": "none"
27
+ }
28
+ },
29
+ "extractorMessageReporting": {
30
+ "default": {
31
+ "logLevel": "none"
32
+ }
33
+ },
34
+ "tsdocMessageReporting": {
35
+ "default": {
36
+ "logLevel": "none"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,15 @@
1
+ export function ISSET(value: any): boolean;
2
+ export function IS_ARRAY(value: any): boolean;
3
+ export function ARRAY(value: any): any[];
4
+ export function IS_OBJECT(value: any): boolean;
5
+ export function OBJECT(value: any): object;
6
+ export function STRING(value: any): string;
7
+ export function STRING_ANY(...values: any): string;
8
+ export function INT(value: any): number;
9
+ export function INT_ANY(...values: any): number;
10
+ export function FLOAT(value: any): number;
11
+ export function FLOAT_ANY(...values: any): number;
12
+ export function INT_LAX(value: any): number;
13
+ export function INT_LAX_ANY(...values: any): number;
14
+ export function FLOAT_LAX(value: any): number;
15
+ export function FLOAT_LAX_ANY(...values: any): number;
@@ -0,0 +1,218 @@
1
+ export namespace LeUtils {
2
+ export { FastDeepEqual as equals };
3
+ export function clone(value: any): any;
4
+ export function onDomReady(callback: Function): {
5
+ remove: Function;
6
+ };
7
+ export function parseVersionString(versionString: string | any): {
8
+ major: (number);
9
+ minor: (number);
10
+ patch: (number);
11
+ toString: (() => string);
12
+ equals: ((arg0: string | any) => boolean);
13
+ smallerThan: ((arg0: string | any) => boolean);
14
+ smallerThanOrEquals: ((arg0: string | any) => boolean);
15
+ largerThan: ((arg0: string | any) => boolean);
16
+ largerThanOrEquals: ((arg0: string | any) => boolean);
17
+ };
18
+ export function contains(array: any[] | object | Function, value: any): boolean;
19
+ export function containsCaseInsensitive(array: any[] | object | Function, value: any): boolean;
20
+ export function containsAll(array: any[] | object | Function, values: any[] | object | Function): boolean;
21
+ export function containsAllCaseInsensitive(array: any[] | object | Function, values: any[] | object | Function): boolean;
22
+ export function containsAny(array: any[] | object | Function, values: any[] | object | Function): boolean;
23
+ export function containsAnyCaseInsensitive(array: any[] | object | Function, values: any[] | object | Function): boolean;
24
+ export function containsNone(array: any[] | object | Function, values: any[] | object | Function): boolean;
25
+ export function containsNoneCaseInsensitive(array: any[] | object | Function, values: any[] | object | Function): boolean;
26
+ export function findIndexValue(elements: any[] | object | Function, callback: (value: any, index: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): {
27
+ index: any;
28
+ value: any;
29
+ } | null;
30
+ export function findIndex(elements: any[] | object | Function, callback: (value: any, index: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): any | null;
31
+ export function find(elements: any[] | object | Function, callback: (value: any, index: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): any | null;
32
+ export function getValueAtIndex(elements: any, index: any, optionalSkipHasOwnPropertyCheck?: boolean): any;
33
+ export function supportsEach(elements: any): boolean;
34
+ export function eachIterator(elements: any, optionalSkipHasOwnPropertyCheck?: boolean): Generator<any, void, unknown>;
35
+ export function each(elements: any, callback: (value: any, index?: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): any;
36
+ export function eachAsync(elements: any, asyncCallback: any, parallelCount?: number, optionalSkipHasOwnPropertyCheck?: boolean): Promise<any>;
37
+ export function getEmptySimplifiedCollection(elements: any): [boolean, any[] | object | Map<any, any>, (value: any, index: any) => void];
38
+ export function filter(elements: any, callback?: (value: any, index: any) => boolean | undefined, optionalSkipHasOwnPropertyCheck?: boolean): any;
39
+ export function map(elements: any, callback?: (value: any, index: any) => any, optionalSkipHasOwnPropertyCheck?: boolean): any;
40
+ export function mapToArray(elements: any, callback?: (value: any, index: any) => any, optionalSkipHasOwnPropertyCheck?: boolean): any[];
41
+ export function mapToArraySorted(elements: any, comparator: (valueA: any, valueB: any) => number, callback?: (value: any, index: any) => any, optionalSkipHasOwnPropertyCheck?: boolean): any[];
42
+ export function sortKeys(elements: any, comparator: (valueA: any, valueB: any) => number, optionalSkipHasOwnPropertyCheck?: boolean): any[];
43
+ export function flattenArray(array: any): any[];
44
+ export function flattenToArray(elements: any, optionalSkipHasOwnPropertyCheck?: boolean): any[];
45
+ export function compare(a: any, b: any): number;
46
+ export function compareNumbers(a: number, b: number): number;
47
+ export function compareNumericStrings(a: string | number, b: string | number): number;
48
+ export function compareNaturalStrings(a: string, b: string): number;
49
+ export function compareTimestampStrings(a: string, b: string): number;
50
+ export function isEmptyObject(obj: object, optionalSkipHasOwnPropertyCheck?: boolean | undefined): boolean;
51
+ export function getObjectFieldsCount(obj: object, optionalSkipHasOwnPropertyCheck?: boolean | undefined): number;
52
+ export function isGeneratorFunction(func: any): any;
53
+ export function setTimeout(callback: (deltaTime: number) => any, ms: number): {
54
+ remove: Function;
55
+ };
56
+ export function setInterval(callback: (deltaTime: number) => any, intervalMs?: number, fireImmediately?: boolean): {
57
+ remove: Function;
58
+ };
59
+ export function setAnimationFrameTimeout(callback: (deltaTime: number) => any, frames?: number): {
60
+ remove: Function;
61
+ };
62
+ export function setAnimationFrameInterval(callback: (deltaTime: number) => any, intervalFrames?: number, fireImmediately?: boolean): {
63
+ remove: Function;
64
+ };
65
+ export function promiseTimeout(ms: number): Promise<number>;
66
+ export function promiseAnimationFrameTimeout(frames: number): Promise<number>;
67
+ export function fetch(url: string, options?: {
68
+ retries?: number | null;
69
+ delay?: number | ((attempt: number) => number) | null;
70
+ } | object | null): {
71
+ then: Function;
72
+ catch: Function;
73
+ finally: Function;
74
+ remove: Function;
75
+ isRemoved: Function;
76
+ };
77
+ export function cachedFetch(url: any, options: any, responseFunction: any): Promise<any>;
78
+ export function platformIsMobile(): boolean;
79
+ export function platformHasCursor(): boolean;
80
+ export function capitalize(string: string): string;
81
+ export function endsWithAny(string: string, endingCharsStringOrArray: string | string[]): boolean;
82
+ export function startsWithAny(string: string, startingCharsStringOrArray: string | string[]): boolean;
83
+ export function trimEnd(string: string, trimCharsStringOrArray: string | string[]): string;
84
+ export function trimStart(string: string, trimCharsStringOrArray: string | string[]): string;
85
+ export function trim(string: string, trimCharsStringOrArray: string | string[]): string;
86
+ export function purgeSentence(sentence: string): string;
87
+ export function purgeErrorMessage(error: any): string;
88
+ export function generateNamePermutations(...names: string[]): string[];
89
+ export function increaseNumericStringByOne(string: string): string;
90
+ export function uniqueId(): string;
91
+ export function timestamp(now?: number | null | undefined): string;
92
+ export function getEmptyImageSrc(): string;
93
+ export function getPercentage(part: number | string, total: number | string): number;
94
+ export function getImagePixels(image: HTMLImageElement): Uint8ClampedArray;
95
+ export function getColoredImage(image: HTMLImageElement, color: string): string;
96
+ export function rgbToHex(rgb: number[]): string;
97
+ export function hexToRgb(hexstring: string): number[];
98
+ export function rgbToHsl(rgb: number[]): number[];
99
+ export function hslToRgb(hsl: any): number[];
100
+ export function rgbToLab(rgb: number[]): number[];
101
+ export function getDifferenceBetweenRgb(rgbA: number[], rgbB: number[]): number;
102
+ export function getDifferenceBetweenLab(labA: number[], labB: number[]): number;
103
+ export function getRgbOfGradient(gradient: {
104
+ percentage?: number[];
105
+ }, percentage: number): number[];
106
+ export function getRgbBetween(startRgb: number[], endRgb: number[], percentage: number): number[];
107
+ export function btoa(string: string): string;
108
+ export function atob(base64string: string): string;
109
+ export function utf8ToBase64(string: string): string;
110
+ export function base64ToUtf8(base64string: string): string;
111
+ export function base64ToHex(base64string: string): string;
112
+ export function hexToBase64(hexstring: string): string;
113
+ export function base64ToBytes(base64string: string): Uint8Array;
114
+ export function bytesToBase64(arraybuffer: ArrayLike<number> | ArrayBuffer): string;
115
+ export function downloadFile(base64string: string, fileName?: string, mimeType?: string): void;
116
+ export function localStorageGet(id: string): any;
117
+ export function localStorageSet(id: string, data: any): void;
118
+ export function localStorageRemove(id: string): void;
119
+ export function isCurrentHostPrivate(): boolean;
120
+ export function isGivenHostPrivate(host: string): boolean;
121
+ export function createTreeSet(elements: any[], comparator: (valueA: any, valueB: any) => number): {
122
+ getElements: (() => any[]);
123
+ getComparator: (() => ((valueA: any, valueB: any) => number));
124
+ size: (() => number);
125
+ isEmpty: (() => boolean);
126
+ contains: ((value: any) => boolean);
127
+ first: (() => any | undefined);
128
+ last: (() => any | undefined);
129
+ pollFirst: (() => any | undefined);
130
+ pollLast: (() => any | undefined);
131
+ add: ((value: any) => void);
132
+ addAll: ((values: any) => void);
133
+ getEqualValue: ((value: any) => any);
134
+ getEqualValueOrAdd: ((value: any) => any);
135
+ };
136
+ export function createTransactionalValue(value?: any): {
137
+ value: any;
138
+ changes: {
139
+ id: string;
140
+ value: any;
141
+ }[];
142
+ };
143
+ export function isTransactionalValueValid(transactionalValue: {
144
+ value: any;
145
+ changes: {
146
+ id: string;
147
+ value: any;
148
+ }[];
149
+ }): boolean;
150
+ export function transactionalValueToString(transactionalValue: {
151
+ value: any;
152
+ changes: {
153
+ id: string;
154
+ value: any;
155
+ }[];
156
+ }): string;
157
+ export function transactionSetAndCommit(transactionalValue: {
158
+ value: any;
159
+ changes: {
160
+ id: string;
161
+ value: any;
162
+ }[];
163
+ }, value: any): void;
164
+ export function transactionSetWithoutCommitting(transactionalValue: {
165
+ value: any;
166
+ changes: {
167
+ id: string;
168
+ value: any;
169
+ }[];
170
+ }, value: any): string;
171
+ export function transactionCommitChange(transactionalValue: {
172
+ value: any;
173
+ changes: {
174
+ id: string;
175
+ value: any;
176
+ }[];
177
+ }, changeId: string): boolean;
178
+ export function transactionCancelChange(transactionalValue: {
179
+ value: any;
180
+ changes: {
181
+ id: string;
182
+ value: any;
183
+ }[];
184
+ }, changeId: string): boolean;
185
+ export function transactionIsChangeRelevant(transactionalValue: {
186
+ value: any;
187
+ changes: {
188
+ id: string;
189
+ value: any;
190
+ }[];
191
+ }, changeId: string): boolean;
192
+ export function transactionGetCommittedValue(transactionalValue: {
193
+ value: any;
194
+ changes: {
195
+ id: string;
196
+ value: any;
197
+ }[];
198
+ }): any;
199
+ export function transactionGetValue(transactionalValue: {
200
+ value: any;
201
+ changes: {
202
+ id: string;
203
+ value: any;
204
+ }[];
205
+ }): any;
206
+ export function createWorkerThread(name: string): {
207
+ worker: Worker | null;
208
+ sendMessage: (data: any, options: {
209
+ timeout: number | undefined;
210
+ } | undefined) => Promise<any>;
211
+ };
212
+ export function sendWorkerMessage(workerName: any, data: any, options: any): any;
213
+ export function purgeEmail(email: string): string;
214
+ export function isFocusClear(): boolean;
215
+ export function getUserLocale(): any;
216
+ export function getUserLocaleDateFormat(): any;
217
+ }
218
+ import FastDeepEqual from 'fast-deep-equal';
@@ -0,0 +1,33 @@
1
+ export class LinkedList {
2
+ /**
3
+ * Returns the number of elements in the list.
4
+ *
5
+ * @returns {number}
6
+ */
7
+ get size(): number;
8
+ /**
9
+ * Adds a new value to the beginning of the list.
10
+ *
11
+ * @param {*} value
12
+ */
13
+ unshift(value: any): void;
14
+ /**
15
+ * Adds a new value to the end of the list.
16
+ *
17
+ * @param {*} value
18
+ */
19
+ push(value: any): void;
20
+ /**
21
+ * Removes the first value from the list and returns it.
22
+ *
23
+ * @returns {*|undefined}
24
+ */
25
+ shift(): any | undefined;
26
+ /**
27
+ * Removes the last value from the list and returns it.
28
+ *
29
+ * @returns {*|undefined}
30
+ */
31
+ pop(): any | undefined;
32
+ #private;
33
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * SerializableMap class extends the native Map to provide a JSON representation.
3
+ *
4
+ * This class can only have string keys, as JSON does not support non-string keys.
5
+ */
6
+ export class SerializableMap extends Map<any, any> {
7
+ constructor();
8
+ constructor(entries?: readonly (readonly [any, any])[] | null | undefined);
9
+ constructor();
10
+ constructor(iterable?: Iterable<readonly [any, any]> | null | undefined);
11
+ /**
12
+ * Returns a JSON representation of the map.
13
+ *
14
+ * @returns {object}
15
+ */
16
+ toJSON(): object;
17
+ }
@@ -0,0 +1,4 @@
1
+ export { LeUtils } from "./LeUtils.js";
2
+ export { LinkedList } from "./classes/LinkedList.js";
3
+ export { SerializableMap } from "./classes/SerializableMap.js";
4
+ export { ISSET, IS_ARRAY, ARRAY, IS_OBJECT, OBJECT, STRING, STRING_ANY, INT, INT_ANY, FLOAT, FLOAT_ANY, INT_LAX, INT_LAX_ANY, FLOAT_LAX, FLOAT_LAX_ANY } from "./LeTypes.js";
package/index.d.ts ADDED
@@ -0,0 +1,301 @@
1
+ export declare function ARRAY(value: any): any[];
2
+
3
+ export declare function FLOAT(value: any): number;
4
+
5
+ export declare function FLOAT_ANY(...values: any): number;
6
+
7
+ export declare function FLOAT_LAX(value: any): number;
8
+
9
+ export declare function FLOAT_LAX_ANY(...values: any): number;
10
+
11
+ export declare function INT(value: any): number;
12
+
13
+ export declare function INT_ANY(...values: any): number;
14
+
15
+ export declare function INT_LAX(value: any): number;
16
+
17
+ export declare function INT_LAX_ANY(...values: any): number;
18
+
19
+ export declare function IS_ARRAY(value: any): boolean;
20
+
21
+ export declare function IS_OBJECT(value: any): boolean;
22
+
23
+ export declare function ISSET(value: any): boolean;
24
+
25
+ export declare namespace LeUtils {
26
+ { FastDeepEqual as equals };
27
+ export function clone(value: any): any;
28
+ export function onDomReady(callback: Function): {
29
+ remove: Function;
30
+ };
31
+ export function parseVersionString(versionString: string | any): {
32
+ major: (number);
33
+ minor: (number);
34
+ patch: (number);
35
+ toString: (() => string);
36
+ equals: ((arg0: string | any) => boolean);
37
+ smallerThan: ((arg0: string | any) => boolean);
38
+ smallerThanOrEquals: ((arg0: string | any) => boolean);
39
+ largerThan: ((arg0: string | any) => boolean);
40
+ largerThanOrEquals: ((arg0: string | any) => boolean);
41
+ };
42
+ export function contains(array: any[] | object | Function, value: any): boolean;
43
+ export function containsCaseInsensitive(array: any[] | object | Function, value: any): boolean;
44
+ export function containsAll(array: any[] | object | Function, values: any[] | object | Function): boolean;
45
+ export function containsAllCaseInsensitive(array: any[] | object | Function, values: any[] | object | Function): boolean;
46
+ export function containsAny(array: any[] | object | Function, values: any[] | object | Function): boolean;
47
+ export function containsAnyCaseInsensitive(array: any[] | object | Function, values: any[] | object | Function): boolean;
48
+ export function containsNone(array: any[] | object | Function, values: any[] | object | Function): boolean;
49
+ export function containsNoneCaseInsensitive(array: any[] | object | Function, values: any[] | object | Function): boolean;
50
+ export function findIndexValue(elements: any[] | object | Function, callback: (value: any, index: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): {
51
+ index: any;
52
+ value: any;
53
+ } | null;
54
+ export function findIndex(elements: any[] | object | Function, callback: (value: any, index: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): any | null;
55
+ export function find(elements: any[] | object | Function, callback: (value: any, index: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): any | null;
56
+ export function getValueAtIndex(elements: any, index: any, optionalSkipHasOwnPropertyCheck?: boolean): any;
57
+ export function supportsEach(elements: any): boolean;
58
+ export function eachIterator(elements: any, optionalSkipHasOwnPropertyCheck?: boolean): Generator<any, void, unknown>;
59
+ export function each(elements: any, callback: (value: any, index?: any) => boolean | void, optionalSkipHasOwnPropertyCheck?: boolean): any;
60
+ export function eachAsync(elements: any, asyncCallback: any, parallelCount?: number, optionalSkipHasOwnPropertyCheck?: boolean): Promise<any>;
61
+ export function getEmptySimplifiedCollection(elements: any): [boolean, any[] | object | Map<any, any>, (value: any, index: any) => void];
62
+ export function filter(elements: any, callback?: (value: any, index: any) => boolean | undefined, optionalSkipHasOwnPropertyCheck?: boolean): any;
63
+ export function map(elements: any, callback?: (value: any, index: any) => any, optionalSkipHasOwnPropertyCheck?: boolean): any;
64
+ export function mapToArray(elements: any, callback?: (value: any, index: any) => any, optionalSkipHasOwnPropertyCheck?: boolean): any[];
65
+ export function mapToArraySorted(elements: any, comparator: (valueA: any, valueB: any) => number, callback?: (value: any, index: any) => any, optionalSkipHasOwnPropertyCheck?: boolean): any[];
66
+ export function sortKeys(elements: any, comparator: (valueA: any, valueB: any) => number, optionalSkipHasOwnPropertyCheck?: boolean): any[];
67
+ export function flattenArray(array: any): any[];
68
+ export function flattenToArray(elements: any, optionalSkipHasOwnPropertyCheck?: boolean): any[];
69
+ export function compare(a: any, b: any): number;
70
+ export function compareNumbers(a: number, b: number): number;
71
+ export function compareNumericStrings(a: string | number, b: string | number): number;
72
+ export function compareNaturalStrings(a: string, b: string): number;
73
+ export function compareTimestampStrings(a: string, b: string): number;
74
+ export function isEmptyObject(obj: object, optionalSkipHasOwnPropertyCheck?: boolean | undefined): boolean;
75
+ export function getObjectFieldsCount(obj: object, optionalSkipHasOwnPropertyCheck?: boolean | undefined): number;
76
+ export function isGeneratorFunction(func: any): any;
77
+ export function setTimeout(callback: (deltaTime: number) => any, ms: number): {
78
+ remove: Function;
79
+ };
80
+ export function setInterval(callback: (deltaTime: number) => any, intervalMs?: number, fireImmediately?: boolean): {
81
+ remove: Function;
82
+ };
83
+ export function setAnimationFrameTimeout(callback: (deltaTime: number) => any, frames?: number): {
84
+ remove: Function;
85
+ };
86
+ export function setAnimationFrameInterval(callback: (deltaTime: number) => any, intervalFrames?: number, fireImmediately?: boolean): {
87
+ remove: Function;
88
+ };
89
+ export function promiseTimeout(ms: number): Promise<number>;
90
+ export function promiseAnimationFrameTimeout(frames: number): Promise<number>;
91
+ export function fetch(url: string, options?: {
92
+ retries?: number | null;
93
+ delay?: number | ((attempt: number) => number) | null;
94
+ } | object | null): {
95
+ then: Function;
96
+ catch: Function;
97
+ finally: Function;
98
+ remove: Function;
99
+ isRemoved: Function;
100
+ };
101
+ export function cachedFetch(url: any, options: any, responseFunction: any): Promise<any>;
102
+ export function platformIsMobile(): boolean;
103
+ export function platformHasCursor(): boolean;
104
+ export function capitalize(string: string): string;
105
+ export function endsWithAny(string: string, endingCharsStringOrArray: string | string[]): boolean;
106
+ export function startsWithAny(string: string, startingCharsStringOrArray: string | string[]): boolean;
107
+ export function trimEnd(string: string, trimCharsStringOrArray: string | string[]): string;
108
+ export function trimStart(string: string, trimCharsStringOrArray: string | string[]): string;
109
+ export function trim(string: string, trimCharsStringOrArray: string | string[]): string;
110
+ export function purgeSentence(sentence: string): string;
111
+ export function purgeErrorMessage(error: any): string;
112
+ export function generateNamePermutations(...names: string[]): string[];
113
+ export function increaseNumericStringByOne(string: string): string;
114
+ export function uniqueId(): string;
115
+ export function timestamp(now?: number | null | undefined): string;
116
+ export function getEmptyImageSrc(): string;
117
+ export function getPercentage(part: number | string, total: number | string): number;
118
+ export function getImagePixels(image: HTMLImageElement): Uint8ClampedArray;
119
+ export function getColoredImage(image: HTMLImageElement, color: string): string;
120
+ export function rgbToHex(rgb: number[]): string;
121
+ export function hexToRgb(hexstring: string): number[];
122
+ export function rgbToHsl(rgb: number[]): number[];
123
+ export function hslToRgb(hsl: any): number[];
124
+ export function rgbToLab(rgb: number[]): number[];
125
+ export function getDifferenceBetweenRgb(rgbA: number[], rgbB: number[]): number;
126
+ export function getDifferenceBetweenLab(labA: number[], labB: number[]): number;
127
+ export function getRgbOfGradient(gradient: {
128
+ percentage?: number[];
129
+ }, percentage: number): number[];
130
+ export function getRgbBetween(startRgb: number[], endRgb: number[], percentage: number): number[];
131
+ export function btoa(string: string): string;
132
+ export function atob(base64string: string): string;
133
+ export function utf8ToBase64(string: string): string;
134
+ export function base64ToUtf8(base64string: string): string;
135
+ export function base64ToHex(base64string: string): string;
136
+ export function hexToBase64(hexstring: string): string;
137
+ export function base64ToBytes(base64string: string): Uint8Array;
138
+ export function bytesToBase64(arraybuffer: ArrayLike<number> | ArrayBuffer): string;
139
+ export function downloadFile(base64string: string, fileName?: string, mimeType?: string): void;
140
+ export function localStorageGet(id: string): any;
141
+ export function localStorageSet(id: string, data: any): void;
142
+ export function localStorageRemove(id: string): void;
143
+ export function isCurrentHostPrivate(): boolean;
144
+ export function isGivenHostPrivate(host: string): boolean;
145
+ export function createTreeSet(elements: any[], comparator: (valueA: any, valueB: any) => number): {
146
+ getElements: (() => any[]);
147
+ getComparator: (() => ((valueA: any, valueB: any) => number));
148
+ size: (() => number);
149
+ isEmpty: (() => boolean);
150
+ contains: ((value: any) => boolean);
151
+ first: (() => any | undefined);
152
+ last: (() => any | undefined);
153
+ pollFirst: (() => any | undefined);
154
+ pollLast: (() => any | undefined);
155
+ add: ((value: any) => void);
156
+ addAll: ((values: any) => void);
157
+ getEqualValue: ((value: any) => any);
158
+ getEqualValueOrAdd: ((value: any) => any);
159
+ };
160
+ export function createTransactionalValue(value?: any): {
161
+ value: any;
162
+ changes: {
163
+ id: string;
164
+ value: any;
165
+ }[];
166
+ };
167
+ export function isTransactionalValueValid(transactionalValue: {
168
+ value: any;
169
+ changes: {
170
+ id: string;
171
+ value: any;
172
+ }[];
173
+ }): boolean;
174
+ export function transactionalValueToString(transactionalValue: {
175
+ value: any;
176
+ changes: {
177
+ id: string;
178
+ value: any;
179
+ }[];
180
+ }): string;
181
+ export function transactionSetAndCommit(transactionalValue: {
182
+ value: any;
183
+ changes: {
184
+ id: string;
185
+ value: any;
186
+ }[];
187
+ }, value: any): void;
188
+ export function transactionSetWithoutCommitting(transactionalValue: {
189
+ value: any;
190
+ changes: {
191
+ id: string;
192
+ value: any;
193
+ }[];
194
+ }, value: any): string;
195
+ export function transactionCommitChange(transactionalValue: {
196
+ value: any;
197
+ changes: {
198
+ id: string;
199
+ value: any;
200
+ }[];
201
+ }, changeId: string): boolean;
202
+ export function transactionCancelChange(transactionalValue: {
203
+ value: any;
204
+ changes: {
205
+ id: string;
206
+ value: any;
207
+ }[];
208
+ }, changeId: string): boolean;
209
+ export function transactionIsChangeRelevant(transactionalValue: {
210
+ value: any;
211
+ changes: {
212
+ id: string;
213
+ value: any;
214
+ }[];
215
+ }, changeId: string): boolean;
216
+ export function transactionGetCommittedValue(transactionalValue: {
217
+ value: any;
218
+ changes: {
219
+ id: string;
220
+ value: any;
221
+ }[];
222
+ }): any;
223
+ export function transactionGetValue(transactionalValue: {
224
+ value: any;
225
+ changes: {
226
+ id: string;
227
+ value: any;
228
+ }[];
229
+ }): any;
230
+ export function createWorkerThread(name: string): {
231
+ worker: Worker | null;
232
+ sendMessage: (data: any, options: {
233
+ timeout: number | undefined;
234
+ } | undefined) => Promise<any>;
235
+ };
236
+ export function sendWorkerMessage(workerName: any, data: any, options: any): any;
237
+ export function purgeEmail(email: string): string;
238
+ export function isFocusClear(): boolean;
239
+ export function getUserLocale(): any;
240
+ export function getUserLocaleDateFormat(): any;
241
+ }
242
+
243
+ export declare class LinkedList {
244
+ /**
245
+ * Returns the number of elements in the list.
246
+ *
247
+ * @returns {number}
248
+ */
249
+ get size(): number;
250
+ /**
251
+ * Adds a new value to the beginning of the list.
252
+ *
253
+ * @param {*} value
254
+ */
255
+ unshift(value: any): void;
256
+ /**
257
+ * Adds a new value to the end of the list.
258
+ *
259
+ * @param {*} value
260
+ */
261
+ push(value: any): void;
262
+ /**
263
+ * Removes the first value from the list and returns it.
264
+ *
265
+ * @returns {*|undefined}
266
+ */
267
+ shift(): any | undefined;
268
+ /**
269
+ * Removes the last value from the list and returns it.
270
+ *
271
+ * @returns {*|undefined}
272
+ */
273
+ pop(): any | undefined;
274
+ #private;
275
+ }
276
+
277
+ export declare function OBJECT(value: any): object;
278
+
279
+ /**
280
+ * SerializableMap class extends the native Map to provide a JSON representation.
281
+ *
282
+ * This class can only have string keys, as JSON does not support non-string keys.
283
+ */
284
+ export declare class SerializableMap extends Map<any, any> {
285
+ constructor();
286
+ constructor(entries?: readonly (readonly [any, any])[] | null | undefined);
287
+ constructor();
288
+ constructor(iterable?: Iterable<readonly [any, any]> | null | undefined);
289
+ /**
290
+ * Returns a JSON representation of the map.
291
+ *
292
+ * @returns {object}
293
+ */
294
+ toJSON(): object;
295
+ }
296
+
297
+ export declare function STRING(value: any): string;
298
+
299
+ export declare function STRING_ANY(...values: any): string;
300
+
301
+ export { }