@dxtmisha/functional-basic 1.1.5 → 1.1.7

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 (180) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/ai-description.txt +5 -0
  3. package/ai-doc.ru.txt +5 -0
  4. package/ai-doc.txt +5 -0
  5. package/ai-types.txt +2165 -983
  6. package/dist/classes/Api.d.ts +201 -0
  7. package/dist/classes/ApiCache.d.ts +152 -0
  8. package/dist/classes/ApiDataReturn.d.ts +76 -0
  9. package/dist/classes/ApiDefault.d.ts +49 -0
  10. package/dist/classes/ApiHeaders.d.ts +37 -0
  11. package/dist/classes/ApiHydration.d.ts +39 -0
  12. package/dist/classes/ApiInstance.d.ts +283 -0
  13. package/dist/classes/ApiPreparation.d.ts +58 -0
  14. package/dist/classes/ApiResponse.d.ts +154 -0
  15. package/dist/classes/ApiStatus.d.ts +130 -0
  16. package/dist/classes/BroadcastMessage.d.ts +75 -0
  17. package/dist/classes/Cache.d.ts +38 -0
  18. package/dist/classes/CacheItem.d.ts +62 -0
  19. package/dist/classes/CacheStatic.d.ts +36 -0
  20. package/dist/classes/Cookie.d.ts +54 -0
  21. package/dist/classes/CookieBlock.d.ts +30 -0
  22. package/dist/classes/CookieBlockInstance.d.ts +23 -0
  23. package/dist/classes/CookieStorage.d.ts +174 -0
  24. package/dist/classes/DataStorage.d.ts +107 -0
  25. package/dist/classes/Datetime.d.ts +570 -0
  26. package/dist/classes/ErrorCenter.d.ts +72 -0
  27. package/dist/classes/ErrorCenterHandler.d.ts +64 -0
  28. package/dist/classes/ErrorCenterInstance.d.ts +85 -0
  29. package/dist/classes/EventItem.d.ts +251 -0
  30. package/dist/classes/Formatters.d.ts +161 -0
  31. package/dist/classes/Geo.d.ts +151 -0
  32. package/dist/classes/GeoFlag.d.ts +98 -0
  33. package/dist/classes/GeoInstance.d.ts +215 -0
  34. package/dist/classes/GeoIntl.d.ts +304 -0
  35. package/dist/classes/GeoPhone.d.ts +108 -0
  36. package/dist/classes/Global.d.ts +29 -0
  37. package/dist/classes/Hash.d.ts +57 -0
  38. package/dist/classes/HashInstance.d.ts +95 -0
  39. package/dist/classes/Icons.d.ts +128 -0
  40. package/dist/classes/Loading.d.ts +66 -0
  41. package/dist/classes/LoadingInstance.d.ts +99 -0
  42. package/dist/classes/Meta.d.ts +186 -0
  43. package/dist/classes/MetaManager.d.ts +121 -0
  44. package/dist/classes/MetaOg.d.ts +115 -0
  45. package/dist/classes/MetaStatic.d.ts +179 -0
  46. package/dist/classes/MetaTwitter.d.ts +115 -0
  47. package/dist/classes/ResumableTimer.d.ts +81 -0
  48. package/dist/classes/ScrollbarWidth.d.ts +51 -0
  49. package/dist/classes/SearchList.d.ts +128 -0
  50. package/dist/classes/SearchListData.d.ts +143 -0
  51. package/dist/classes/SearchListItem.d.ts +49 -0
  52. package/dist/classes/SearchListMatcher.d.ts +57 -0
  53. package/dist/classes/SearchListOptions.d.ts +66 -0
  54. package/dist/classes/ServerStorage.d.ts +106 -0
  55. package/dist/classes/StorageCallback.d.ts +84 -0
  56. package/dist/classes/Translate.d.ts +119 -0
  57. package/dist/classes/TranslateFile.d.ts +81 -0
  58. package/dist/classes/TranslateInstance.d.ts +206 -0
  59. package/dist/functions/addTagHighlightMatch.d.ts +11 -0
  60. package/dist/functions/anyToString.d.ts +10 -0
  61. package/dist/functions/applyTemplate.d.ts +10 -0
  62. package/dist/functions/arrFill.d.ts +9 -0
  63. package/dist/functions/blobToBase64.d.ts +9 -0
  64. package/dist/functions/capitalize.d.ts +9 -0
  65. package/dist/functions/copyObject.d.ts +10 -0
  66. package/dist/functions/copyObjectLite.d.ts +9 -0
  67. package/dist/functions/createElement.d.ts +21 -0
  68. package/dist/functions/domQuerySelector.d.ts +8 -0
  69. package/dist/functions/domQuerySelectorAll.d.ts +8 -0
  70. package/dist/functions/encodeAttribute.d.ts +8 -0
  71. package/dist/functions/encodeLiteAttribute.d.ts +8 -0
  72. package/dist/functions/ensureMaxSize.d.ts +10 -0
  73. package/dist/functions/escapeExp.d.ts +7 -0
  74. package/dist/functions/eventStopPropagation.d.ts +7 -0
  75. package/dist/functions/executeFunction.d.ts +12 -0
  76. package/dist/functions/executePromise.d.ts +11 -0
  77. package/dist/functions/forEach.d.ts +14 -0
  78. package/dist/functions/frame.d.ts +10 -0
  79. package/dist/functions/getArrayHighlightMatch.d.ts +10 -0
  80. package/dist/functions/getAttributes.d.ts +9 -0
  81. package/dist/functions/getClipboardData.d.ts +9 -0
  82. package/dist/functions/getColumn.d.ts +10 -0
  83. package/dist/functions/getCurrentDate.d.ts +19 -0
  84. package/dist/functions/getCurrentTime.d.ts +15 -0
  85. package/dist/functions/getElement.d.ts +9 -0
  86. package/dist/functions/getElementId.d.ts +26 -0
  87. package/dist/functions/getElementImage.d.ts +8 -0
  88. package/dist/functions/getElementItem.d.ts +12 -0
  89. package/dist/functions/getElementOrWindow.d.ts +8 -0
  90. package/dist/functions/getElementSafeScript.d.ts +9 -0
  91. package/dist/functions/getExactSearchExp.d.ts +8 -0
  92. package/dist/functions/getExp.d.ts +14 -0
  93. package/dist/functions/getHydrationData.d.ts +10 -0
  94. package/dist/functions/getItemByPath.d.ts +9 -0
  95. package/dist/functions/getKey.d.ts +8 -0
  96. package/dist/functions/getLengthOfAllArray.d.ts +8 -0
  97. package/dist/functions/getMaxLengthAllArray.d.ts +9 -0
  98. package/dist/functions/getMinLengthAllArray.d.ts +8 -0
  99. package/dist/functions/getMouseClient.d.ts +9 -0
  100. package/dist/functions/getMouseClientX.d.ts +8 -0
  101. package/dist/functions/getMouseClientY.d.ts +8 -0
  102. package/dist/functions/getObjectByKeys.d.ts +8 -0
  103. package/dist/functions/getObjectNoUndefined.d.ts +9 -0
  104. package/dist/functions/getObjectOrNone.d.ts +8 -0
  105. package/dist/functions/getOnlyText.d.ts +8 -0
  106. package/dist/functions/getRandomText.d.ts +12 -0
  107. package/dist/functions/getRequestString.d.ts +11 -0
  108. package/dist/functions/getSearchExp.d.ts +12 -0
  109. package/dist/functions/getSeparatingSearchExp.d.ts +9 -0
  110. package/dist/functions/getStepPercent.d.ts +9 -0
  111. package/dist/functions/getStepValue.d.ts +9 -0
  112. package/dist/functions/goScroll.d.ts +10 -0
  113. package/dist/functions/goScrollSmooth.d.ts +10 -0
  114. package/dist/functions/goScrollTo.d.ts +10 -0
  115. package/dist/functions/handleShare.d.ts +10 -0
  116. package/dist/functions/inArray.d.ts +9 -0
  117. package/dist/functions/initScrollbarOffset.d.ts +7 -0
  118. package/dist/functions/intersectKey.d.ts +9 -0
  119. package/dist/functions/isApiSuccess.d.ts +9 -0
  120. package/dist/functions/isArray.d.ts +8 -0
  121. package/dist/functions/isDifferent.d.ts +10 -0
  122. package/dist/functions/isDomData.d.ts +7 -0
  123. package/dist/functions/isDomRuntime.d.ts +10 -0
  124. package/dist/functions/isElementVisible.d.ts +11 -0
  125. package/dist/functions/isEnter.d.ts +9 -0
  126. package/dist/functions/isFilled.d.ts +10 -0
  127. package/dist/functions/isFloat.d.ts +8 -0
  128. package/dist/functions/isFunction.d.ts +9 -0
  129. package/dist/functions/isInDom.d.ts +9 -0
  130. package/dist/functions/isInput.d.ts +8 -0
  131. package/dist/functions/isIntegerBetween.d.ts +9 -0
  132. package/dist/functions/isNull.d.ts +9 -0
  133. package/dist/functions/isNumber.d.ts +8 -0
  134. package/dist/functions/isObject.d.ts +8 -0
  135. package/dist/functions/isObjectNotArray.d.ts +8 -0
  136. package/dist/functions/isOnLine.d.ts +7 -0
  137. package/dist/functions/isSelected.d.ts +9 -0
  138. package/dist/functions/isSelectedByList.d.ts +9 -0
  139. package/dist/functions/isShare.d.ts +7 -0
  140. package/dist/functions/isString.d.ts +8 -0
  141. package/dist/functions/isWindow.d.ts +7 -0
  142. package/dist/functions/random.d.ts +9 -0
  143. package/dist/functions/removeCommonPrefix.d.ts +9 -0
  144. package/dist/functions/replaceComponentName.d.ts +9 -0
  145. package/dist/functions/replaceRecursive.d.ts +11 -0
  146. package/dist/functions/replaceTemplate.d.ts +10 -0
  147. package/dist/functions/resizeImageByMax.d.ts +19 -0
  148. package/dist/functions/secondToTime.d.ts +9 -0
  149. package/dist/functions/setElementItem.d.ts +11 -0
  150. package/dist/functions/setValues.d.ts +18 -0
  151. package/dist/functions/sleep.d.ts +8 -0
  152. package/dist/functions/splice.d.ts +13 -0
  153. package/dist/functions/strFill.d.ts +9 -0
  154. package/dist/functions/strSplit.d.ts +12 -0
  155. package/dist/functions/toArray.d.ts +17 -0
  156. package/dist/functions/toCamelCase.d.ts +8 -0
  157. package/dist/functions/toCamelCaseFirst.d.ts +8 -0
  158. package/dist/functions/toDate.d.ts +8 -0
  159. package/dist/functions/toKebabCase.d.ts +15 -0
  160. package/dist/functions/toNumber.d.ts +19 -0
  161. package/dist/functions/toNumberByMax.d.ts +11 -0
  162. package/dist/functions/toPercent.d.ts +9 -0
  163. package/dist/functions/toPercentBy100.d.ts +9 -0
  164. package/dist/functions/toString.d.ts +8 -0
  165. package/dist/functions/transformation.d.ts +21 -0
  166. package/dist/functions/uint8ArrayToBase64.d.ts +8 -0
  167. package/dist/functions/uniqueArray.d.ts +8 -0
  168. package/dist/functions/writeClipboardData.d.ts +8 -0
  169. package/dist/library.d.ts +171 -8891
  170. package/dist/library.js +5 -5
  171. package/dist/media/errorCauseList.d.ts +2 -0
  172. package/dist/types/apiTypes.d.ts +217 -0
  173. package/dist/types/basicTypes.d.ts +131 -0
  174. package/dist/types/errorCenter.d.ts +42 -0
  175. package/dist/types/formattersTypes.d.ts +224 -0
  176. package/dist/types/geoTypes.d.ts +86 -0
  177. package/dist/types/metaTypes.d.ts +586 -0
  178. package/dist/types/searchTypes.d.ts +53 -0
  179. package/dist/types/translateTypes.d.ts +54 -0
  180. package/package.json +7 -4
package/ai-types.txt CHANGED
@@ -14,467 +14,807 @@ The following is the content of "exports" from package.json:
14
14
  "./types/**/*.d.ts": "./dist/**/*.d.ts"
15
15
  }
16
16
 
17
- // File: library.d.ts
18
- /** Adds a highlight tag to matches in a string.
19
- * @param value input string
20
- * @param search search string or RegExp
21
- * @param className CSS class for highlight
22
- * @param shouldEscape escape string flag
17
+ // File: classes/Api.d.ts
18
+ /**
19
+ * Class for working with HTTP requests.
23
20
  */
24
- export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
25
-
26
- /** Converts a value to a string.
27
- * @param value value to convert
28
- * @param isArrayString convert arrays to strings
29
- * @param trim trim result
30
- */
31
- export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
32
-
33
- /** HTTP request utility class. */
34
21
  export declare class Api {
35
- /** Check if localhost. */
22
+ /**
23
+ * Checks if server is running on localhost.
24
+ * @returns true if local
25
+ */
36
26
  static isLocalhost(): boolean;
37
- /** Get ApiInstance singleton. */
27
+ /**
28
+ * Returns ApiInstance singleton.
29
+ * @returns ApiInstance singleton
30
+ */
38
31
  static getItem(): ApiInstance;
39
- /** Get last request status. */
32
+ /**
33
+ * Returns status of the last request.
34
+ * @returns ApiStatus instance
35
+ */
40
36
  static getStatus(): ApiStatus;
41
- /** Get response handler. */
37
+ /**
38
+ * Gets response handler.
39
+ * @returns ApiResponse instance
40
+ */
42
41
  static getResponse(): ApiResponse;
43
- /** Get hydration handler. */
42
+ /**
43
+ * Gets hydration handler.
44
+ * @returns ApiHydration instance
45
+ */
44
46
  static getHydration(): ApiHydration;
45
- /** Get client hydration script string. */
47
+ /**
48
+ * Returns hydration data script for client.
49
+ * @returns HTML script string
50
+ */
46
51
  static getHydrationScript(): string;
47
- /** Get base origin URL. */
52
+ /**
53
+ * Gets base origin URL with API path.
54
+ * @returns final base URL
55
+ */
48
56
  static getOrigin(): string;
49
- /** Get full script URL. */
57
+ /**
58
+ * Gets full path to request script.
59
+ * @param path script path
60
+ * @param api prepend base API URL
61
+ * @returns full URL
62
+ */
50
63
  static getUrl(path: string, api?: boolean): string;
51
- /** Get request body data. */
64
+ /**
65
+ * Gets data for request body.
66
+ * @param request request data
67
+ * @param method HTTP method
68
+ * @returns body data or FormData
69
+ */
52
70
  static getBody(request?: ApiFetch['request'], method?: ApiMethodItem): string | FormData | undefined;
53
- /** Get GET request query string. */
71
+ /**
72
+ * Gets query string for GET requests.
73
+ * @param request request data
74
+ * @param path request path
75
+ * @param method HTTP method
76
+ * @returns query string
77
+ */
54
78
  static getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethodItem): string;
55
- /** Set default headers. */
79
+ /**
80
+ * Modifies default header data.
81
+ * @param headers default headers
82
+ */
56
83
  static setHeaders(headers: Record<string, string>): void;
57
- /** Set default request data. */
84
+ /**
85
+ * Modifies default request data.
86
+ * @param request default data
87
+ */
58
88
  static setRequestDefault(request: Record<string, any>): void;
59
- /** Set base script URL. */
89
+ /**
90
+ * Changes base path to script.
91
+ * @param url script path
92
+ */
60
93
  static setUrl(url: string): void;
61
- /** Set pre-request callback. */
94
+ /**
95
+ * Modifies function called before request.
96
+ * @param callback pre-request function
97
+ */
62
98
  static setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): void;
63
- /** Set post-request callback. */
99
+ /**
100
+ * Modifies function called after request.
101
+ * @param callback post-request function
102
+ */
64
103
  static setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): void;
65
- /** Set request timeout. */
104
+ /**
105
+ * Changes request timeout.
106
+ * @param timeout ms
107
+ */
66
108
  static setTimeout(timeout: number): void;
67
- /** Set base origin. */
109
+ /**
110
+ * Changes origin for base URL.
111
+ * @param origin protocol and domain
112
+ */
68
113
  static setOrigin(origin: string): void;
69
- /** Set full API config. */
114
+ /**
115
+ * Sets multiple API configuration options.
116
+ * @param config config object
117
+ */
70
118
  static setConfig(config?: ApiConfig): void;
71
- /** Execute request. */
119
+ /**
120
+ * Executes request with path or configuration.
121
+ * @param pathRequest path or config
122
+ * @returns Promise with response
123
+ */
72
124
  static request<T>(pathRequest: string | ApiFetch): Promise<T>;
73
- /** Send GET request. */
125
+ /**
126
+ * Sends GET request.
127
+ * @param request fetch config
128
+ * @returns Promise with response
129
+ */
74
130
  static get<T>(request: ApiFetch): Promise<T>;
75
- /** Send POST request. */
131
+ /**
132
+ * Sends POST request.
133
+ * @param request fetch config
134
+ * @returns Promise with response
135
+ */
76
136
  static post<T>(request: ApiFetch): Promise<T>;
77
- /** Send PUT request. */
137
+ /**
138
+ * Sends PUT request.
139
+ * @param request fetch config
140
+ * @returns Promise with response
141
+ */
78
142
  static put<T>(request: ApiFetch): Promise<T>;
79
- /** Send PATCH request. */
143
+ /**
144
+ * Sends PATCH request.
145
+ * @param request fetch config
146
+ * @returns Promise with response
147
+ */
80
148
  static patch<T>(request: ApiFetch): Promise<T>;
81
- /** Send DELETE request. */
149
+ /**
150
+ * Sends DELETE request.
151
+ * @param request fetch config
152
+ * @returns Promise with response
153
+ */
82
154
  static delete<T>(request: ApiFetch): Promise<T>;
83
155
  }
84
-
85
- /** API response caching. */
156
+ // File: classes/ApiCache.d.ts
157
+ /**
158
+ * Class for caching API responses.
159
+ */
86
160
  export declare class ApiCache {
87
- /** Initialize cache storage with listeners. */
161
+ /**
162
+ * Initializes storage with listeners.
163
+ * @param getListener retrieval mechanism
164
+ * @param setListener saving mechanism
165
+ * @param removeListener deletion mechanism
166
+ * @param cacheStepAgeClearOld requests before cleanup
167
+ */
88
168
  static init(getListener: (key: string) => Promise<ApiCacheItem | undefined>, setListener: (key: string, value: ApiCacheItem) => Promise<boolean>, removeListener: (key: string) => Promise<boolean>, cacheStepAgeClearOld?: number): void;
89
- /** Clear all cache. */
169
+ /**
170
+ * Resets cache and listeners.
171
+ */
90
172
  static reset(): void;
91
- /** Get from cache by key. */
173
+ /**
174
+ * Gets data from cache.
175
+ * @param key cache key
176
+ * @returns data or undefined
177
+ */
92
178
  static get<T>(key: string): Promise<T | undefined>;
93
- /** Get from cache using fetch options. */
179
+ /**
180
+ * Gets data from cache using fetch options.
181
+ * @param fetch fetch options
182
+ * @returns data or undefined
183
+ */
94
184
  static getByFetch<T>(fetch: ApiFetch): Promise<T | undefined>;
95
- /** Save to cache. */
185
+ /**
186
+ * Saves data to cache.
187
+ * @param key cache key
188
+ * @param value data
189
+ * @param age age in seconds
190
+ */
96
191
  static set<T>(key: string, value: T, age?: number): Promise<void>;
97
- /** Save to cache using fetch options. */
192
+ /**
193
+ * Saves data to cache using fetch options.
194
+ * @param fetch fetch options
195
+ * @param value data
196
+ */
98
197
  static setByFetch<T>(fetch: ApiFetch, value: T): Promise<void>;
99
- /** Remove from cache. */
198
+ /**
199
+ * Removes data from cache.
200
+ * @param key cache key
201
+ */
100
202
  static remove(key: string): Promise<void>;
101
203
  }
102
-
103
- /** Cached API item. */
104
- export declare type ApiCacheItem<T = any> = {
105
- value: T;
106
- age?: number;
107
- cacheAge: number;
108
- };
109
-
110
- /** Cache list record. */
111
- export declare type ApiCacheList = Record<string, ApiCacheItem>;
112
-
113
- /** API Configuration. */
114
- export declare type ApiConfig = {
115
- urlRoot?: string;
116
- origin?: string;
117
- headers?: Record<string, string>;
118
- requestDefault?: Record<string, any>;
119
- preparation?: (apiFetch: ApiFetch) => Promise<void>;
120
- end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
121
- timeout?: number;
122
- };
123
-
124
- /** API data wrapper. */
125
- export declare type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
126
-
127
- /** API data item. */
128
- export declare type ApiDataItem<T = any> = T & ApiDataValidation & {
129
- data?: T;
130
- success?: boolean;
131
- statusObject?: ApiStatusItem;
132
- };
133
-
134
- /** Processes data from API request. */
204
+ // File: classes/ApiDataReturn.d.ts
205
+ /**
206
+ * Class for handling data returned from an API request.
207
+ */
135
208
  export declare class ApiDataReturn<T = any> {
209
+ /**
210
+ * Constructor for ApiDataReturn.
211
+ * @param apiFetch API config
212
+ * @param query response object
213
+ * @param end preparation end data
214
+ */
136
215
  constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd);
137
- /** Read data from response. */
216
+ /**
217
+ * Initializes class by reading response.
218
+ */
138
219
  init(): Promise<this>;
139
- /** Get processed data. */
220
+ /**
221
+ * Returns processed data.
222
+ */
140
223
  get(): ApiData<T>;
141
- /** Get processed data with status. */
224
+ /**
225
+ * Returns processed data with status object.
226
+ * @param status API status instance
227
+ */
142
228
  getAndStatus(status: ApiStatus): ApiData<T>;
143
- /** Get raw API data. */
229
+ /**
230
+ * Returns raw data received from API.
231
+ */
144
232
  getData(): ApiData<T> | undefined;
145
233
  }
146
-
147
- /** API validation metadata. */
148
- export declare type ApiDataValidation = {
149
- status?: ApiStatusType;
150
- code?: string | number;
151
- message?: string;
152
- };
153
-
154
- /** Manages default request data. */
234
+ // File: classes/ApiDefault.d.ts
235
+ /**
236
+ * Class for working with default API request data.
237
+ */
155
238
  export declare class ApiDefault {
156
- /** Check if default data exists. */
239
+ /**
240
+ * Checks if default data exists.
241
+ * @returns true if exists
242
+ */
157
243
  is(): boolean;
158
- /** Get default data. */
244
+ /**
245
+ * Gets default request data.
246
+ * @returns data or undefined
247
+ */
159
248
  get(): ApiDefaultValue | undefined;
160
- /** Merge defaults into request. */
249
+ /**
250
+ * Adds default data to request.
251
+ * @param request request data
252
+ * @returns merged data
253
+ */
161
254
  request(request: ApiFetch['request']): ApiFetch['request'];
162
- /** Set defaults. */
255
+ /**
256
+ * Sets default request data.
257
+ * @param request default data
258
+ * @returns this
259
+ */
163
260
  set(request: ApiDefaultValue): this;
164
261
  }
165
-
166
- /** Default API request data. */
167
- export declare type ApiDefaultValue = Record<string, any>;
168
-
169
- /** API fetch options. */
170
- export declare type ApiFetch = {
171
- api?: boolean;
172
- path?: string;
173
- pathFull?: string;
174
- method?: ApiMethod;
175
- request?: FormData | Record<string, any> | string;
176
- auth?: boolean;
177
- headers?: Record<string, string> | null;
178
- type?: string;
179
- toData?: boolean;
180
- global?: boolean;
181
- devMode?: boolean;
182
- hideError?: boolean;
183
- hideLoading?: boolean;
184
- retry?: number;
185
- retryDelay?: number;
186
- queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
187
- globalPreparation?: boolean;
188
- globalEnd?: boolean;
189
- init?: RequestInit;
190
- timeout?: number;
191
- controller?: AbortController;
192
- cache?: number;
193
- enableClientCache?: boolean;
194
- cacheId?: number | string;
195
- endResetLimit?: number;
196
- };
197
-
198
- /** Manages HTTP headers. */
262
+ // File: classes/ApiHeaders.d.ts
263
+ /**
264
+ * Class for managing HTTP request headers.
265
+ */
199
266
  export declare class ApiHeaders {
200
- /** Get merged headers. */
267
+ /**
268
+ * Gets headers for request.
269
+ * @param value header list
270
+ * @param type Content-Type value
271
+ * @returns merged headers
272
+ */
201
273
  get(value?: Record<string, string> | null, type?: string | undefined | null): Record<string, string> | undefined;
202
- /** Get headers based on request data. */
274
+ /**
275
+ * Gets headers based on request type.
276
+ * @param request request data
277
+ * @param value header list
278
+ * @param type Content-Type value
279
+ * @returns merged headers
280
+ */
203
281
  getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
204
- /** Set default headers. */
282
+ /**
283
+ * Sets default headers.
284
+ * @param headers default headers
285
+ * @returns this
286
+ */
205
287
  set(headers: Record<string, string>): this;
206
288
  }
207
-
208
- /** Collects API data for SSR hydration. */
289
+ // File: classes/ApiHydration.d.ts
290
+ /**
291
+ * Class for collecting API data for SSR hydration.
292
+ */
209
293
  export declare class ApiHydration {
210
- /** Init response with hydration data. */
294
+ /**
295
+ * Initializes response with hydration data.
296
+ * @param response API response
297
+ */
211
298
  initResponse(response: ApiResponse): void;
212
- /** Save response for client. */
299
+ /**
300
+ * Saves response for client-side hydration.
301
+ * @param apiFetch API config
302
+ * @param response API response data
303
+ */
213
304
  toClient<T>(apiFetch: ApiFetch, response: T): void;
214
- /** Get hydration script string. */
305
+ /**
306
+ * Returns hydration data string.
307
+ */
215
308
  toString(): string;
216
309
  }
217
-
218
- /** Hydration item. */
219
- export declare type ApiHydrationItem = {
220
- path: string;
221
- method: ApiMethod;
222
- request?: ApiFetch['request'];
223
- response: any;
310
+ // File: classes/ApiInstance.d.ts
311
+ /** Options for the API instance */
312
+ export type ApiInstanceOptions = {
313
+ headersClass?: typeof ApiHeaders;
314
+ requestDefaultClass?: typeof ApiDefault;
315
+ statusClass?: typeof ApiStatus;
316
+ responseClass?: typeof ApiResponse;
317
+ preparationClass?: typeof ApiPreparation;
318
+ loadingClass?: LoadingInstance;
319
+ errorCenterClass?: ErrorCenterInstance;
320
+ hydrationClass?: typeof ApiHydration;
224
321
  };
225
-
226
- /** List of hydration items. */
227
- export declare type ApiHydrationList = ApiHydrationItem[];
228
-
229
- /** Core fetch manager. */
322
+ /**
323
+ * Core class for managing HTTP requests using Fetch.
324
+ */
230
325
  export declare class ApiInstance {
326
+ /**
327
+ * Constructor
328
+ * @param url base script path
329
+ * @param options instance options
330
+ */
231
331
  constructor(url?: string, options?: ApiInstanceOptions);
232
- /** Check if localhost. */
332
+ /**
333
+ * Checks if server is localhost.
334
+ * @returns true if local
335
+ */
233
336
  isLocalhost(): boolean;
234
- /** Get last status. */
337
+ /**
338
+ * Returns last request status.
339
+ * @returns ApiStatus instance
340
+ */
235
341
  getStatus(): ApiStatus;
236
- /** Get response handler. */
342
+ /**
343
+ * Gets response handler.
344
+ * @returns ApiResponse instance
345
+ */
237
346
  getResponse(): ApiResponse;
238
- /** Get hydration handler. */
347
+ /**
348
+ * Gets hydration handler.
349
+ * @returns ApiHydration instance
350
+ */
239
351
  getHydration(): ApiHydration;
240
- /** Get base origin. */
352
+ /**
353
+ * Gets base URL with API path.
354
+ * @returns final base URL
355
+ */
241
356
  getOrigin(): string;
242
- /** Get full script URL. */
357
+ /**
358
+ * Gets full script path.
359
+ * @param path script path
360
+ * @param api prepend base URL
361
+ * @returns full URL
362
+ */
243
363
  getUrl(path: string, api?: boolean): string;
244
- /** Get request body. */
245
- getBody(request?: ApiFetch['request'], method?: ApiMethodItem): string | FormData | undefined;
246
- /** Get query string for GET. */
247
- getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethodItem): string;
248
- /** Get hydration script. */
364
+ /**
365
+ * Gets request body data.
366
+ * @param request request data
367
+ * @param method HTTP method
368
+ * @returns body data or FormData
369
+ */
370
+ getBody(request?: ApiFetch['request'], method?: ApiMethod): string | FormData | undefined;
371
+ /**
372
+ * Gets query string for GET requests.
373
+ * @param request request data
374
+ * @param path request path
375
+ * @param method HTTP method
376
+ * @returns query string with prefix
377
+ */
378
+ getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethod): string;
379
+ /**
380
+ * Returns hydration data script string.
381
+ * @returns HTML script string
382
+ */
249
383
  getHydrationScript(): string;
250
- /** Set default headers. */
384
+ /**
385
+ * Modifies default headers.
386
+ * @param headers default headers
387
+ */
251
388
  setHeaders(headers: Record<string, string>): this;
252
- /** Set default request data. */
389
+ /**
390
+ * Modifies default request data.
391
+ * @param request default data
392
+ */
253
393
  setRequestDefault(request: Record<string, any>): this;
254
- /** Set base URL. */
394
+ /**
395
+ * Changes base path to script.
396
+ * @param url script path
397
+ */
255
398
  setUrl(url: string): this;
256
- /** Set pre-request hook. */
399
+ /**
400
+ * Sets pre-request function.
401
+ * @param callback pre-request function
402
+ */
257
403
  setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): this;
258
- /** Set post-request hook. */
404
+ /**
405
+ * Sets post-request function.
406
+ * @param callback post-request function
407
+ */
259
408
  setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
260
- /** Set timeout. */
409
+ /**
410
+ * Changes request timeout.
411
+ * @param timeout ms
412
+ */
261
413
  setTimeout(timeout: number): this;
262
- /** Set origin. */
414
+ /**
415
+ * Changes origin for base URL.
416
+ * @param origin protocol and domain
417
+ */
263
418
  setOrigin(origin: string): this;
264
- /** Execute request. */
419
+ /**
420
+ * Executes request.
421
+ * @param pathRequest path or config
422
+ * @returns Promise with response
423
+ */
265
424
  request<T>(pathRequest: string | ApiFetch): Promise<T>;
266
- /** GET request. */
425
+ /**
426
+ * Sends GET request.
427
+ * @param request fetch config
428
+ * @returns Promise with response
429
+ */
267
430
  get<T>(request: ApiFetch): Promise<T>;
268
- /** POST request. */
431
+ /**
432
+ * Sends POST request.
433
+ * @param request fetch config
434
+ * @returns Promise with response
435
+ */
269
436
  post<T>(request: ApiFetch): Promise<T>;
270
- /** PUT request. */
437
+ /**
438
+ * Sends PUT request.
439
+ * @param request fetch config
440
+ * @returns Promise with response
441
+ */
271
442
  put<T>(request: ApiFetch): Promise<T>;
272
- /** PATCH request. */
443
+ /**
444
+ * Sends PATCH request.
445
+ * @param request fetch config
446
+ * @returns Promise with response
447
+ */
273
448
  patch<T>(request: ApiFetch): Promise<T>;
274
- /** DELETE request. */
449
+ /**
450
+ * Sends DELETE request.
451
+ * @param request fetch config
452
+ * @returns Promise with response
453
+ */
275
454
  delete<T>(request: ApiFetch): Promise<T>;
276
455
  }
277
-
278
- /** API instance configuration. */
279
- export declare type ApiInstanceOptions = {
280
- headersClass?: typeof ApiHeaders;
281
- requestDefaultClass?: typeof ApiDefault;
282
- statusClass?: typeof ApiStatus;
283
- responseClass?: typeof ApiResponse;
284
- preparationClass?: typeof ApiPreparation;
285
- loadingClass?: LoadingInstance;
286
- errorCenterClass?: ErrorCenterInstance;
287
- hydrationClass?: typeof ApiHydration;
288
- };
289
-
290
- /** HTTP Method type. */
291
- export declare type ApiMethod = string & ApiMethodItem;
292
-
293
- /** Supported HTTP methods. */
294
- export declare enum ApiMethodItem {
295
- delete = "DELETE",
296
- get = "GET",
297
- post = "POST",
298
- put = "PUT",
299
- patch = "PATCH"
300
- }
301
-
302
- /** Request preparation hooks. */
456
+ // File: classes/ApiPreparation.d.ts
457
+ /**
458
+ * Class for preparing requests.
459
+ */
303
460
  export declare class ApiPreparation {
304
- /** Run pre-request preparation. */
461
+ /**
462
+ * Pre-request preparation.
463
+ * @param active is active
464
+ * @param apiFetch request options
465
+ */
305
466
  make(active: boolean, apiFetch: ApiFetch): Promise<void>;
306
- /** Run post-request analysis. */
467
+ /**
468
+ * Post-request analysis.
469
+ * @param active is active
470
+ * @param query response data
471
+ * @param apiFetch request options
472
+ * @returns end data
473
+ */
307
474
  makeEnd(active: boolean, query: Response, apiFetch: ApiFetch): Promise<ApiPreparationEnd>;
308
- /** Set pre-request callback. */
475
+ /**
476
+ * Sets pre-request callback.
477
+ * @param callback pre-request function
478
+ * @returns this
479
+ */
309
480
  set(callback: (apiFetch: ApiFetch) => Promise<void>): this;
310
- /** Set post-request callback. */
481
+ /**
482
+ * Sets post-request callback.
483
+ * @param callback post-request function
484
+ * @returns this
485
+ */
311
486
  setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
312
487
  }
313
-
314
- /** Hook result. */
315
- export declare type ApiPreparationEnd = {
316
- reset?: boolean;
317
- data?: any;
318
- };
319
-
320
- /** Manages API response mocks and cache. */
488
+ // File: classes/ApiResponse.d.ts
489
+ /**
490
+ * Class for working with API responses.
491
+ */
321
492
  export declare class ApiResponse {
493
+ /**
494
+ * Constructor
495
+ * @param requestDefault default request class
496
+ */
322
497
  constructor(requestDefault: ApiDefault);
323
- /** Get cached or global response. */
498
+ /**
499
+ * Gets global cached request if exists.
500
+ * @param path request link
501
+ * @param method request method
502
+ * @param request request data
503
+ * @param devMode dev mode flag
504
+ * @returns cached item or undefined
505
+ */
324
506
  get(path: string | undefined, method: ApiMethod, request?: ApiFetch['request'], devMode?: boolean): ApiResponseItem | undefined;
325
- /** Get list of cached responses. */
507
+ /**
508
+ * Returns list of cached responses.
509
+ */
326
510
  getList(): (ApiResponseItem & Record<string, any>)[];
327
- /** Add response to cache. */
511
+ /**
512
+ * Adds cached requests.
513
+ * @param response caching data
514
+ */
328
515
  add(response: ApiResponseItem | ApiResponseItem[]): this;
329
- /** Set dev mode. */
516
+ /**
517
+ * Sets developer mode.
518
+ * @param devMode is dev mode
519
+ * @returns this
520
+ */
330
521
  setDevMode(devMode: boolean): this;
331
- /** Run emulator if available. */
522
+ /**
523
+ * Executes emulator if available.
524
+ * @param apiFetch fetch config
525
+ * @returns response or undefined
526
+ */
332
527
  emulator<T>(apiFetch: ApiFetch): Promise<T | undefined>;
333
- }
334
-
335
- /** Mock descriptor. */
336
- export declare type ApiResponseItem = {
337
- path: string | RegExp;
338
- method: ApiMethod;
339
- request?: ApiFetch['request'] | '*any';
340
- response: any | ((request?: ApiFetch['request']) => any);
341
- disable?: any;
342
- isForGlobal?: boolean;
343
- lag?: any;
344
- };
345
-
346
- /** API status manager. */
528
+ /**
529
+ * Executes emulator synchronously.
530
+ * @param apiFetch fetch config
531
+ * @returns response or undefined
532
+ */
533
+ emulatorAsync<T>(apiFetch: ApiFetch): T | undefined;
534
+ }
535
+ // File: classes/ApiStatus.d.ts
536
+ /**
537
+ * Class for managing API request status.
538
+ */
347
539
  export declare class ApiStatus {
348
- /** Get status data. */
540
+ /**
541
+ * Returns last status item.
542
+ * @returns status item or undefined
543
+ */
349
544
  get(): ApiStatusItem | undefined;
350
- /** Get HTTP status code. */
545
+ /**
546
+ * Returns status code.
547
+ * @returns HTTP status code
548
+ */
351
549
  getStatus(): number | undefined;
352
- /** Get status text. */
550
+ /**
551
+ * Returns status text.
552
+ * @returns status text
553
+ */
353
554
  getStatusText(): string | undefined;
354
- /** Get status type. */
555
+ /**
556
+ * Returns last status type.
557
+ * @returns status type
558
+ */
355
559
  getStatusType(): ApiStatusType | undefined;
356
- /** Get result code. */
560
+ /**
561
+ * Returns execution status code.
562
+ * @returns code
563
+ */
357
564
  getCode(): string | undefined;
358
- /** Get error message. */
565
+ /**
566
+ * Returns execution error.
567
+ * @returns error message
568
+ */
359
569
  getError(): string | undefined;
360
- /** Get last response data. */
570
+ /**
571
+ * Returns last request data.
572
+ * @returns response data
573
+ */
361
574
  getResponse<T>(): T | undefined;
362
- /** Get status message. */
575
+ /**
576
+ * Returns last request message.
577
+ * @returns message string
578
+ */
363
579
  getMessage(): string;
364
- /** Set status data. */
580
+ /**
581
+ * Sets status item.
582
+ * @param data status data
583
+ * @returns this
584
+ */
365
585
  set(data: ApiStatusItem): this;
366
- /** Set HTTP status. */
586
+ /**
587
+ * Sets status code and text.
588
+ * @param status code
589
+ * @param statusText text
590
+ * @returns this
591
+ */
367
592
  setStatus(status?: number, statusText?: string): this;
368
- /** Set error message. */
593
+ /**
594
+ * Sets error message.
595
+ * @param error error message
596
+ * @returns this
597
+ */
369
598
  setError(error?: string): this;
370
- /** Set last response data. */
599
+ /**
600
+ * Sets last response and extracts status/message.
601
+ * @param response response data
602
+ * @returns this
603
+ */
371
604
  setLastResponse(response?: any): this;
372
- /** Set status type. */
605
+ /**
606
+ * Sets last status.
607
+ * @param status status
608
+ * @returns this
609
+ */
373
610
  setLastStatus(status?: ApiStatusType): this;
374
- /** Set execution code. */
611
+ /**
612
+ * Sets last execution code.
613
+ * @param code code
614
+ * @returns this
615
+ */
375
616
  setLastCode(code?: string): this;
376
- /** Set message. */
617
+ /**
618
+ * Sets last request message.
619
+ * @param message text
620
+ * @returns this
621
+ */
377
622
  setLastMessage(message?: string): this;
378
623
  }
379
-
380
- /** Status record. */
381
- export declare type ApiStatusItem = {
382
- status?: number;
383
- statusText?: string;
384
- error?: string;
385
- lastResponse?: any;
386
- lastStatus?: ApiStatusType;
387
- lastCode?: string;
388
- lastMessage?: string;
389
- };
390
-
391
- export declare type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
392
-
393
- /** Template applier. */
394
- export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
395
-
396
- export declare type ArrayToItem<T> = T extends any[] ? T[number] : T;
397
-
398
- /** Create filled array. */
399
- export declare function arrFill<T>(value: T, count: number): T[];
400
-
401
- /** Blob to Base64. */
402
- export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
403
-
404
- /** BroadcastChannel manager. */
624
+ // File: classes/BroadcastMessage.d.ts
625
+ /**
626
+ * Class for BroadcastChannel messages.
627
+ */
405
628
  export declare class BroadcastMessage<Message = any> {
629
+ /**
630
+ * Constructor initializing channel with handlers.
631
+ * @param name channel ID
632
+ * @param callback message callback
633
+ * @param callbackError error callback
634
+ * @param errorCenter ErrorCenter instance
635
+ */
406
636
  constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
407
- /** Get BroadcastChannel instance. */
637
+ /**
638
+ * Gets BroadcastChannel instance.
639
+ * @returns channel or undefined
640
+ */
408
641
  getChannel(): BroadcastChannel | undefined;
409
- /** Send message. */
642
+ /**
643
+ * Sends message.
644
+ * @param message data
645
+ * @returns this
646
+ */
410
647
  post(message: Message): this;
411
- /** Set message callback. */
648
+ /**
649
+ * Sets message callback.
650
+ * @param callback callback function
651
+ * @returns this
652
+ */
412
653
  setCallback(callback: (event: MessageEvent<Message>) => void): this;
413
- /** Set error callback. */
654
+ /**
655
+ * Sets error callback.
656
+ * @param callbackError error function
657
+ * @returns this
658
+ */
414
659
  setCallbackError(callbackError: (event: MessageEvent<Message>) => void): this;
415
- /** Close channel. */
660
+ /**
661
+ * Closes channel.
662
+ * @returns this
663
+ */
416
664
  destroy(): this;
417
665
  }
418
-
419
- /** Memory cache. @deprecated */
420
- declare class Cache_2 {
421
- /** Get or compute cached value. */
666
+ // File: classes/Cache.d.ts
667
+ /**
668
+ * Simple in-memory cache for computed values.
669
+ * @deprecated obsolete
670
+ */
671
+ export declare class Cache {
672
+ /**
673
+ * Returns cached value. Recomputes if missing.
674
+ * @param name cache key
675
+ * @param callback computation function
676
+ * @param comparison invalidation array
677
+ * @returns value
678
+ */
422
679
  get<T>(name: string, callback: () => T, comparison?: any[]): T;
423
- /** Get or compute cached value async. */
680
+ /**
681
+ * Async returns cached value.
682
+ * @param name cache key
683
+ * @param callback async computation
684
+ * @param comparison invalidation array
685
+ * @returns Promise with value
686
+ */
424
687
  getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
425
688
  }
426
- export { Cache_2 as Cache }
427
-
428
- /** Cache item with dependencies. @deprecated */
689
+ // File: classes/CacheItem.d.ts
690
+ /**
691
+ * Manages single cached value with dependency tracking.
692
+ * @deprecated obsolete
693
+ */
429
694
  export declare class CacheItem<T> {
695
+ /**
696
+ * Creates CacheItem instance.
697
+ * @param callback computation function
698
+ */
430
699
  constructor(callback: () => T);
431
- /** Get cached value. */
700
+ /**
701
+ * Returns cached value. Recomputes on dependency change.
702
+ * @param comparison dependency array
703
+ * @returns value
704
+ */
432
705
  getCache(comparison: any[]): T;
433
- /** Get previous cached value. */
706
+ /**
707
+ * Returns previous cached value.
708
+ * @returns old value or undefined
709
+ */
434
710
  getCacheOld(): T | undefined;
435
- /** Get cached value async. */
711
+ /**
712
+ * Async returns cached value.
713
+ * @param comparison dependency array
714
+ * @returns Promise with value
715
+ */
436
716
  getCacheAsync(comparison: any[]): Promise<T>;
437
717
  }
438
-
439
- /** Persistent static cache. @deprecated */
718
+ // File: classes/CacheStatic.d.ts
719
+ /**
720
+ * Static cache using ServerStorage.
721
+ * @deprecated obsolete
722
+ */
440
723
  export declare class CacheStatic {
441
- /** Get cached value. */
724
+ /**
725
+ * Returns cached value.
726
+ * @param name cache key
727
+ * @param callback computation function
728
+ * @param comparison invalidation array
729
+ * @returns value
730
+ */
442
731
  static get<T>(name: string, callback: () => T, comparison?: any[]): T;
443
- /** Get cached value async. */
732
+ /**
733
+ * Async returns cached value.
734
+ * @param name cache key
735
+ * @param callback async computation
736
+ * @param comparison invalidation array
737
+ * @returns Promise with value
738
+ */
444
739
  static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
445
740
  }
446
-
447
- /** Capitalize first letter. */
448
- export declare function capitalize(value: string, isLocale?: boolean): string;
449
-
450
- /** Cookie manager. */
741
+ // File: classes/Cookie.d.ts
742
+ /**
743
+ * Class for managing cookies.
744
+ */
451
745
  export declare class Cookie<T> {
452
- constructor(name: string);
453
- /** Get instance by name. */
746
+ /**
747
+ * Returns instance by cookie name.
748
+ * @param name cookie name
749
+ */
454
750
  static getInstance<T>(name: string): Cookie<unknown>;
455
- /** Get value or default. */
751
+ /**
752
+ * Constructor
753
+ * @param name cookie name
754
+ */
755
+ constructor(name: string);
756
+ /**
757
+ * Get or update cookie data.
758
+ * @param defaultValue initial value or factory
759
+ * @param options cookie parameters
760
+ * @returns value
761
+ */
456
762
  get(defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): string | T | undefined;
457
- /** Set value. */
763
+ /**
764
+ * Updates cookie.
765
+ * @param value new value or factory
766
+ * @param options cookie parameters
767
+ */
458
768
  set(value?: T | string | (() => (T | string)), options?: CookieOptions): void;
459
- /** Remove cookie. */
769
+ /**
770
+ * Deletes cookie.
771
+ */
460
772
  remove(): void;
461
773
  }
462
-
463
- /** Cookie blocking status. */
774
+ // File: classes/CookieBlock.d.ts
775
+ /**
776
+ * Class for cookie access status.
777
+ */
464
778
  export declare class CookieBlock {
779
+ /**
780
+ * Returns isolated CookieBlockInstance.
781
+ * @returns instance
782
+ */
465
783
  static getItem(): CookieBlockInstance;
784
+ /**
785
+ * Gets status.
786
+ * @returns current block status
787
+ */
466
788
  static get(): boolean;
789
+ /**
790
+ * Sets status.
791
+ * @param value block status
792
+ */
467
793
  static set(value: boolean): void;
468
794
  }
469
-
795
+ // File: classes/CookieBlockInstance.d.ts
796
+ /**
797
+ * Class for cookie access status.
798
+ */
470
799
  export declare class CookieBlockInstance {
800
+ /**
801
+ * Gets status.
802
+ * @returns current block status
803
+ */
471
804
  get(): boolean;
805
+ /**
806
+ * Sets status.
807
+ * @param value block status
808
+ */
472
809
  set(value: boolean): void;
473
810
  }
474
-
475
- export declare type CookieOptions = {
811
+ // File: classes/CookieStorage.d.ts
812
+ /** Cookie sameSite attribute */
813
+ export type CookieSameSite = 'strict' | 'lax';
814
+ /** Cookie options */
815
+ export type CookieOptions = {
476
816
  age?: number;
477
- sameSite?: CookieSameSite_2;
817
+ sameSite?: CookieSameSite;
478
818
  path?: string;
479
819
  domain?: string;
480
820
  secure?: boolean;
@@ -482,766 +822,829 @@ export declare type CookieOptions = {
482
822
  partitioned?: boolean;
483
823
  arguments?: string[] | Record<string, string | number | boolean>;
484
824
  };
485
-
486
- declare type CookieSameSite_2 = 'strict' | 'lax';
487
- export { CookieSameSite_2 as CookieSameSite }
488
-
489
- /** Cross-environment cookie storage. */
825
+ /**
826
+ * Consistent cookie storage across environments.
827
+ */
490
828
  export declare class CookieStorage {
491
- /** Set custom listeners. */
829
+ /**
830
+ * Initializes storage with listeners.
831
+ */
492
832
  static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
493
- /** Clear storage. */
833
+ /**
834
+ * Resets storage.
835
+ */
494
836
  static reset(): void;
495
- /** Get cookie value. */
837
+ /**
838
+ * Gets data from storage.
839
+ * @param name cookie name
840
+ * @param defaultValue default value
841
+ * @returns value or default
842
+ */
496
843
  static get<T>(name: string, defaultValue?: T | (() => T)): T | undefined;
497
- /** Set cookie value. */
844
+ /**
845
+ * Saves data to storage.
846
+ * @param name cookie name
847
+ * @param value data or factory
848
+ * @param options parameters
849
+ * @returns saved value
850
+ */
498
851
  static set<T>(name: string, value: T | (() => T), options?: CookieOptions): T;
499
- /** Remove cookie. */
852
+ /**
853
+ * Removes data from storage.
854
+ * @param name cookie name
855
+ */
500
856
  static remove(name: string): void;
501
- /** Refresh from source. */
857
+ /**
858
+ * Updates storage from cookies.
859
+ */
502
860
  static update(): void;
503
861
  }
504
-
505
- /** Deep copy object. */
506
- export declare function copyObject<T>(value: T): T;
507
-
508
- /** Shallow copy with source merge. */
509
- export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
510
-
511
- /** Create DOM element.
512
- * @remarks Client-only. Returns undefined in SSR.
862
+ // File: classes/DataStorage.d.ts
863
+ /**
864
+ * Local/session storage wrapper with SSR isolation.
513
865
  */
514
- export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: Partial<T> | Record<keyof T, T[keyof T]> | ((element: T) => void), referenceElement?: HTMLElement): T | undefined;
515
-
516
- /** Local/Session storage wrapper. */
517
866
  export declare class DataStorage<T> {
518
- constructor(name: string, isSession?: boolean, errorCenter?: ErrorCenterInstance);
867
+ /**
868
+ * Changes key prefix.
869
+ * @param newPrefix prefix
870
+ */
519
871
  static setPrefix(newPrefix: string): void;
520
- /** Get data. */
872
+ /**
873
+ * Constructor.
874
+ * @param name value name
875
+ * @param isSession use session storage
876
+ * @param errorCenter error center instance
877
+ */
878
+ constructor(name: string, isSession?: boolean, errorCenter?: ErrorCenterInstance);
879
+ /**
880
+ * Gets storage data.
881
+ * @param defaultValue default value
882
+ * @param cache cache seconds
883
+ * @returns value or default
884
+ */
521
885
  get(defaultValue?: T | (() => T), cache?: number): T | undefined;
522
- /** Set data. */
886
+ /**
887
+ * Changes storage data.
888
+ * @param value new values
889
+ * @returns set value
890
+ */
523
891
  set(value?: T | (() => T)): T | undefined;
524
- /** Remove data. */
892
+ /**
893
+ * Removes storage data.
894
+ * @returns this
895
+ */
525
896
  remove(): this;
526
- /** Sync data. */
897
+ /**
898
+ * Syncs from storage.
899
+ * @returns this
900
+ */
527
901
  update(): this;
528
902
  }
529
-
530
- /** Date manipulation utility.
531
- * @remarks SSR unstable if initialized without specific date.
903
+ // File: classes/Datetime.d.ts
904
+ /**
905
+ * Class for working with dates.
906
+ * @remarks Creating instance without specific date in SSR can cause hydration mismatch.
532
907
  */
533
908
  export declare class Datetime {
909
+ /**
910
+ * Constructor
911
+ * @param date date value
912
+ * @param type output format type
913
+ * @param code locale code
914
+ */
534
915
  constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
916
+ /**
917
+ * Returns GeoIntl object.
918
+ * @returns GeoIntl
919
+ */
535
920
  getIntl(): GeoIntl;
921
+ /**
922
+ * Returns Date object.
923
+ * @returns Date
924
+ */
536
925
  getDate(): Date;
926
+ /**
927
+ * Returns output type.
928
+ * @returns GeoDate
929
+ */
537
930
  getType(): GeoDate;
931
+ /**
932
+ * Returns hour format.
933
+ * @returns GeoHours
934
+ */
538
935
  getHoursType(): GeoHours;
936
+ /**
937
+ * Checks for 24-hour format.
938
+ * @returns boolean
939
+ */
539
940
  getHour24(): boolean;
941
+ /**
942
+ * Returns local time zone offset.
943
+ * @returns offset in minutes
944
+ */
540
945
  getTimeZoneOffset(): number;
946
+ /**
947
+ * Returns time zone string.
948
+ * @param style display style
949
+ * @returns time zone
950
+ */
541
951
  getTimeZone(style?: GeoTimeZoneStyle): string;
952
+ /**
953
+ * Returns first day of week code.
954
+ * @returns GeoFirstDay
955
+ */
542
956
  getFirstDayCode(): GeoFirstDay;
957
+ /**
958
+ * Returns year.
959
+ */
543
960
  getYear(): number;
961
+ /**
962
+ * Returns month (1-12).
963
+ */
544
964
  getMonth(): number;
965
+ /**
966
+ * Returns day of month (1-31).
967
+ */
545
968
  getDay(): number;
969
+ /**
970
+ * Returns hours (0-23).
971
+ */
546
972
  getHour(): number;
973
+ /**
974
+ * Returns minutes (0-59).
975
+ */
547
976
  getMinute(): number;
977
+ /**
978
+ * Returns seconds (0-59).
979
+ */
548
980
  getSecond(): number;
981
+ /**
982
+ * Returns last day of month.
983
+ */
549
984
  getMaxDay(): number;
985
+ /**
986
+ * Returns formatted locale date string.
987
+ */
550
988
  locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): string;
989
+ /** Returns formatted year. */
551
990
  localeYear(style?: Intl.DateTimeFormatOptions['year']): string;
991
+ /** Returns formatted month. */
552
992
  localeMonth(style?: Intl.DateTimeFormatOptions['month']): string;
993
+ /** Returns formatted day. */
553
994
  localeDay(style?: Intl.DateTimeFormatOptions['day']): string;
995
+ /** Returns formatted hour. */
554
996
  localeHour(style?: Intl.DateTimeFormatOptions['hour']): string;
997
+ /** Returns formatted minute. */
555
998
  localeMinute(style?: Intl.DateTimeFormatOptions['minute']): string;
999
+ /** Returns formatted second. */
556
1000
  localeSecond(style?: Intl.DateTimeFormatOptions['second']): string;
1001
+ /** Standard data output string. */
557
1002
  standard(timeZone?: boolean): string;
1003
+ /** Sets date value. */
558
1004
  setDate(value: NumberOrStringOrDate): this;
1005
+ /** Sets output type. */
559
1006
  setType(value: GeoDate): this;
1007
+ /** Sets 24-hour format. */
560
1008
  setHour24(value: boolean): this;
1009
+ /** Sets location code. */
561
1010
  setCode(code: string): this;
1011
+ /** Sets update listener. */
562
1012
  setWatch(watch: (date: Date, type: GeoDate, hour24: boolean) => void): this;
1013
+ /** Sets year. */
563
1014
  setYear(value: number): this;
1015
+ /** Sets month (1-12). */
564
1016
  setMonth(value: number): this;
1017
+ /** Sets day of month. */
565
1018
  setDay(value: number): this;
1019
+ /** Sets hours. */
566
1020
  setHour(value: number): this;
1021
+ /** Sets minutes. */
567
1022
  setMinute(value: number): this;
1023
+ /** Sets seconds. */
568
1024
  setSecond(value: number): this;
1025
+ /** Shifts date by years. */
569
1026
  moveByYear(value: number): this;
1027
+ /** Shifts date by months. */
570
1028
  moveByMonth(value: number): this;
1029
+ /** Shifts date by days. */
571
1030
  moveByDay(value: number): this;
1031
+ /** Shifts date by hours. */
572
1032
  moveByHour(value: number): this;
1033
+ /** Shifts date by minutes. */
573
1034
  moveByMinute(value: number): this;
1035
+ /** Shifts date by seconds. */
574
1036
  moveBySecond(value: number): this;
1037
+ /** Sets date to January. */
575
1038
  moveMonthFirst(): this;
1039
+ /** Sets date to December. */
576
1040
  moveMonthLast(): this;
1041
+ /** Moves to next month first day. */
577
1042
  moveMonthNext(): this;
1043
+ /** Moves to previous month first day. */
578
1044
  moveMonthPrevious(): this;
1045
+ /** Moves to first day of week. */
579
1046
  moveWeekdayFirst(): this;
1047
+ /** Moves to last day of week. */
580
1048
  moveWeekdayLast(): this;
1049
+ /** Moves to first day of first week of month. */
581
1050
  moveWeekdayFirstByMonth(): this;
1051
+ /** Moves to first day of first full week of following month. */
582
1052
  moveWeekdayLastByMonth(): this;
1053
+ /** Moves to next week. */
583
1054
  moveWeekdayNext(): this;
1055
+ /** Moves to previous week. */
584
1056
  moveWeekdayPrevious(): this;
1057
+ /** Moves to first day of month. */
585
1058
  moveDayFirst(): this;
1059
+ /** Moves to last day of month. */
586
1060
  moveDayLast(): this;
1061
+ /** Moves to next day. */
587
1062
  moveDayNext(): this;
1063
+ /** Moves to previous day. */
588
1064
  moveDayPrevious(): this;
1065
+ /** Clones Date object. */
589
1066
  clone(): Date;
1067
+ /** Clones Datetime instance. */
590
1068
  cloneClass(): Datetime;
1069
+ /** Clones and sets month to Jan. */
591
1070
  cloneMonthFirst(): Datetime;
1071
+ /** Clones and sets month to Dec. */
592
1072
  cloneMonthLast(): Datetime;
1073
+ /** Clones and moves 1 month ahead. */
593
1074
  cloneMonthNext(): Datetime;
1075
+ /** Clones and moves 1 month back. */
594
1076
  cloneMonthPrevious(): Datetime;
1077
+ /** Clones and sets to first day of week. */
595
1078
  cloneWeekdayFirst(): Datetime;
1079
+ /** Clones and sets to last day of week. */
596
1080
  cloneWeekdayLast(): Datetime;
1081
+ /** Clones and sets to first day of week in current month. */
597
1082
  cloneWeekdayFirstByMonth(): Datetime;
1083
+ /** Clones and sets to last day of week in current month. */
598
1084
  cloneWeekdayLastByMonth(): Datetime;
1085
+ /** Clones and sets to next week. */
599
1086
  cloneWeekdayNext(): Datetime;
1087
+ /** Clones and sets to previous week. */
600
1088
  cloneWeekdayPrevious(): Datetime;
1089
+ /** Clones and moves to beginning of month. */
601
1090
  cloneDayFirst(): Datetime;
1091
+ /** Clones and moves to end of month. */
602
1092
  cloneDayLast(): Datetime;
1093
+ /** Clones and moves 1 day ahead. */
603
1094
  cloneDayNext(): Datetime;
1095
+ /** Clones and moves 1 day back. */
604
1096
  cloneDayPrevious(): Datetime;
605
1097
  }
606
-
607
- /** DOM query first element. */
608
- export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
609
-
610
- /** DOM query all elements. */
611
- export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
612
-
613
- export declare type ElementOrString<E extends ElementOrWindow> = E | string;
614
-
615
- export declare type ElementOrWindow = HTMLElement | Window;
616
-
617
- export declare type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'null' | '0' | 'false' | '[]';
618
-
619
- /** Encode string for HTML attributes. */
620
- export declare function encodeAttribute(text: string): string;
621
-
622
- /** Simple HTML attribute encoding. */
623
- export declare function encodeLiteAttribute(text: string): string;
624
-
625
- /** Resize image if exceeds max size. */
626
- export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
627
-
628
- /** Global error management. */
1098
+ // File: classes/ErrorCenter.d.ts
1099
+ /**
1100
+ * Class for managing error storage and handling.
1101
+ */
629
1102
  export declare class ErrorCenter {
1103
+ /** Returns request-isolated ErrorCenterInstance. */
630
1104
  static getItem(): ErrorCenterInstance;
1105
+ /** Checks if cause with code exists. */
631
1106
  static has(code: string, group?: string): boolean;
1107
+ /** Gets error cause by code and group. */
632
1108
  static get(code: string, group?: string): ErrorCenterCauseItem | undefined;
1109
+ /** Adds error cause. */
633
1110
  static add(cause: ErrorCenterCauseItem): void;
1111
+ /** Adds list of error causes. */
634
1112
  static addList(causes: ErrorCenterCauseList): void;
1113
+ /** Registers new handler. */
635
1114
  static addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): void;
1115
+ /** Registers list of handlers. */
636
1116
  static addHandlerList(handlers: ErrorCenterHandlerList): void;
1117
+ /** Triggers error handling. */
637
1118
  static on(cause: ErrorCenterCauseItem): void;
638
1119
  }
639
-
640
- export declare type ErrorCenterCauseItem = {
641
- group?: ErrorCenterGroup;
642
- code: string;
643
- priority?: number;
644
- label?: string;
645
- message?: string;
646
- details?: any;
647
- };
648
-
649
- export declare type ErrorCenterCauseList = ErrorCenterCauseItem[];
650
-
651
- export declare type ErrorCenterGroup = string | undefined;
652
-
653
- /** Registry for error handlers. */
1120
+ // File: classes/ErrorCenterHandler.d.ts
1121
+ /**
1122
+ * Class for managing and triggering error handlers.
1123
+ */
654
1124
  export declare class ErrorCenterHandler {
1125
+ /** Constructor */
655
1126
  constructor(handlers?: ErrorCenterHandlerList);
1127
+ /** Checks for handlers in group. */
656
1128
  has(group: ErrorCenterGroup): boolean;
1129
+ /** Gets handlers for group. */
657
1130
  get(group: ErrorCenterGroup): ErrorCenterHandlerItem | undefined;
1131
+ /** Adds handler for group. */
658
1132
  add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
1133
+ /** Adds list of handlers. */
659
1134
  addList(handlers: ErrorCenterHandlerList): this;
1135
+ /** Triggers handlers and logs error. */
660
1136
  on(cause: ErrorCenterCauseItem): this;
661
1137
  }
662
-
663
- export declare type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
664
-
665
- export declare type ErrorCenterHandlerItem = {
666
- group?: ErrorCenterGroup;
667
- handlers: ErrorCenterHandlerCallback[];
668
- };
669
-
670
- export declare type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
671
-
672
- /** Error context instance. */
1138
+ // File: classes/ErrorCenterInstance.d.ts
1139
+ /**
1140
+ * Instance-based error storage and handling.
1141
+ */
673
1142
  export declare class ErrorCenterInstance {
1143
+ /** Constructor */
674
1144
  constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
1145
+ /** Checks for cause by code. */
675
1146
  has(code: string, group?: string): boolean;
1147
+ /** Gets cause by code. */
676
1148
  get(code: string, group?: string): ErrorCenterCauseItem | undefined;
1149
+ /** Adds error cause. */
677
1150
  add(cause: ErrorCenterCauseItem): this;
1151
+ /** Adds causes list. */
678
1152
  addList(causes: ErrorCenterCauseList): this;
1153
+ /** Registers handler. */
679
1154
  addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
1155
+ /** Registers handlers list. */
680
1156
  addHandlerList(handlers: ErrorCenterHandlerList): this;
1157
+ /** Triggers error handling. */
681
1158
  on(cause: ErrorCenterCauseItem): this;
682
1159
  }
683
-
684
- /** Escape string for RegExp. */
685
- export declare function escapeExp(value: string): string;
686
-
687
- export declare type EventActivityItem<E extends ElementOrWindow> = {
688
- element: E | undefined;
689
- type: string;
690
- listener?: (event: any | Event) => void;
691
- observer?: ResizeObserver;
692
- };
693
-
694
- /** Lifecycle-controlled event listener wrapper. */
1160
+ // File: classes/EventItem.d.ts
1161
+ /**
1162
+ * Advanced wrapper for managing event listeners.
1163
+ *
1164
+ * ### Key Features:
1165
+ * - **Lifecycle Control**: `start`, `stop`, `toggle`, `reset`.
1166
+ * - **DOM Safety**: Automatically halts if element removed.
1167
+ * - **Optimizations**: `resize` via `ResizeObserver`, `scroll-sync` via `requestAnimationFrame`.
1168
+ *
1169
+ * ### Usage Examples:
1170
+ * @example
1171
+ * const clickEvent = new EventItem('.btn', 'click', () => console.log('OK'));
1172
+ * clickEvent.start();
1173
+ * @example
1174
+ * interface UserData { id: number }
1175
+ * const emitter = new EventItem<Window, CustomEvent, UserData>(window, 'update');
1176
+ * emitter.setListener((e, detail) => console.log(detail?.id));
1177
+ * emitter.start();
1178
+ * emitter.dispatch({ id: 123 });
1179
+ */
695
1180
  export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
1181
+ /**
1182
+ * Constructor
1183
+ * @param elementSelector target element or selector
1184
+ * @param type event type or types array
1185
+ * @param listener handler function
1186
+ * @param options standard options or capture flag
1187
+ * @param detail custom data for listener
1188
+ */
696
1189
  constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
1190
+ /** Checks if listening is active. */
697
1191
  isActive(): boolean;
1192
+ /** Returns target element. */
698
1193
  getElement(): E | undefined;
1194
+ /** Changes target element. */
699
1195
  setElement(elementSelector?: ElementOrString<E>): this;
1196
+ /** Modifies safety check element. */
700
1197
  setElementControl<EC extends HTMLElement>(elementSelector?: ElementOrString<EC>): this;
1198
+ /** Changes event type. */
701
1199
  setType(type: string | string[]): this;
1200
+ /** Modifies listener. */
702
1201
  setListener(listener: EventListenerDetail<O, D>): this;
1202
+ /** Modifies options. */
703
1203
  setOptions(options?: EventOptions): this;
1204
+ /** Modifies detail data. */
704
1205
  setDetail(detail?: D): this;
1206
+ /** Manually triggers custom event dispatch. */
705
1207
  dispatch(detail?: D | undefined): this;
1208
+ /** Starts listening. */
706
1209
  start(): this;
1210
+ /** Stops listening. */
707
1211
  stop(): this;
1212
+ /** Toggles state. */
708
1213
  toggle(activity: boolean): this;
1214
+ /** Resets (stop and start if active). */
709
1215
  reset(): this;
710
1216
  }
711
-
712
- export declare type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
713
-
714
- export declare type EventOptions = AddEventListenerOptions | boolean | undefined;
715
-
716
- /** Stop event propagation. */
717
- export declare function eventStopPropagation(event: Event): void;
718
-
719
- /** Execute value as function if applicable. */
720
- export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
721
-
722
- /** Execute async or sync function. */
723
- export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
724
-
725
- /** Iterate object/array and map results. */
726
- export declare function forEach<T, R, D extends T[] | Record<string, T> | Map<string, T> | Set<T> = T[] | Record<string, T> | Map<string, T> | Set<T>, K = D extends T[] ? number : string>(data: D & (T[] | Record<string, T> | Map<string, T> | Set<T>), callback: (item: T, key: K, dataMain: typeof data) => R, saveUndefined?: boolean): R[];
727
-
728
- /** Data list formatter. */
1217
+ // File: classes/Formatters.d.ts
1218
+ /**
1219
+ * Formats data list based on options.
1220
+ */
729
1221
  export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
1222
+ /**
1223
+ * Constructor
1224
+ * @param options formatting configuration
1225
+ * @param list data list
1226
+ */
730
1227
  constructor(options: Options, list?: List | undefined);
1228
+ /** Checks if list set. */
731
1229
  is(): boolean;
1230
+ /** Checks if list is array. */
732
1231
  isArray(): this is this & { list: FormattersList<Item>; };
1232
+ /** Returns record count. */
733
1233
  length(): number;
1234
+ /** Returns array list. */
734
1235
  getList(): FormattersList<Item>;
1236
+ /** Returns options. */
735
1237
  getOptions(): Options;
1238
+ /** Sets data list. */
736
1239
  setList(list?: List): this;
737
- /** Formats data and appends 'Format' properties. */
1240
+ /** Formats data. Adds values with 'Format' suffix. */
738
1241
  to(): FormattersReturn<List, Options>;
739
1242
  }
740
-
741
- export declare type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
742
- export declare type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
743
- export declare type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = { [K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string; };
744
- export declare type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
745
- export declare type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
746
- export declare type FormattersList<Item extends FormattersListItem> = Item[];
747
- export declare type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
748
- export declare type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
749
- export declare type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
750
- export declare type FormattersListItem = Record<string, any>;
751
- export declare type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
752
-
753
- export declare type FormattersOptionsCurrency = { currencyPropName?: string; options?: string | Intl.NumberFormatOptions; numberOnly?: boolean; };
754
- export declare type FormattersOptionsDate = { type?: GeoDate; options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions; hour24?: boolean; };
755
- export declare type FormattersOptionsInformation<Type extends FormattersType> = Type extends FormattersType.currency ? FormattersOptionsCurrency : Type extends FormattersType.date ? FormattersOptionsDate : Type extends FormattersType.name ? FormattersOptionsName : Type extends FormattersType.number ? FormattersOptionsNumber : Type extends FormattersType.plural ? FormattersOptionsPlural : Type extends FormattersType.unit ? FormattersOptionsUnit : Record<string, any>;
756
- export declare type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = { type?: Type; transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R; options?: FormattersOptionsInformation<Type>; };
757
- export declare type FormattersOptionsList = Record<string, FormattersOptionsItem>;
758
- export declare type FormattersOptionsName = { lastPropName?: string; firstPropName?: string; surname?: string; short?: boolean; };
759
- export declare type FormattersOptionsNumber = { options?: Intl.NumberFormatOptions; };
760
- export declare type FormattersOptionsPlural = { words: string; options?: Intl.PluralRulesOptions; optionsNumber?: Intl.NumberFormatOptions; };
761
- export declare type FormattersOptionsUnit = { unit: string | Intl.NumberFormatOptions; };
762
- export declare type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = List extends any[] ? FormattersListColumns<Item, Options> : (FormattersListColumnItem<Item, Options> | undefined);
763
-
764
- export declare enum FormattersType {
765
- currency = "currency",
766
- date = "date",
767
- name = "name",
768
- number = "number",
769
- plural = "plural",
770
- unit = "unit"
771
- }
772
-
773
- /** Cyclic requestAnimationFrame. */
774
- export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
775
-
776
- export declare type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
777
- export declare type FunctionArgs<T, R> = (...args: T[]) => R;
778
- export declare type FunctionReturn<R = any> = () => R;
779
- export declare type FunctionVoid = () => void;
780
-
781
- /** Geographical data manager. */
1243
+ // File: classes/Geo.d.ts
1244
+ /**
1245
+ * Static geographic data management.
1246
+ */
782
1247
  export declare class Geo {
1248
+ /** Returns request-isolated GeoInstance. */
783
1249
  static getObject(): GeoInstance;
1250
+ /** Returns current country and language. */
784
1251
  static get(): GeoItemFull;
1252
+ /** Returns 2-letter country code. */
785
1253
  static getCountry(): string;
1254
+ /** Returns 2-letter language code. */
786
1255
  static getLanguage(): string;
1256
+ /** Returns 'en-US' style locale. */
787
1257
  static getStandard(): string;
1258
+ /** Returns first day code. */
788
1259
  static getFirstDay(): string;
1260
+ /** Returns location string. */
789
1261
  static getLocation(): string;
1262
+ /** Returns processed geo data. */
790
1263
  static getItem(): GeoItemFull;
1264
+ /** Returns countries list. */
791
1265
  static getList(): GeoItem[];
1266
+ /** Gets data by code. */
792
1267
  static getByCode(code?: string): GeoItemFull;
1268
+ /** Search by full locale match. */
793
1269
  static getByCodeFull(code: string): GeoItem | undefined;
1270
+ /** Search by country code. */
794
1271
  static getByCountry(country: string): GeoItem | undefined;
1272
+ /** Search by language code. */
795
1273
  static getByLanguage(language: string): GeoItem | undefined;
1274
+ /** Returns timezone offset. */
796
1275
  static getTimezone(): number;
1276
+ /** Returns formatted timezone ('+00:00'). */
797
1277
  static getTimezoneFormat(): string;
1278
+ /** Determine geo data for code. */
798
1279
  static find(code: string): GeoItemFull;
1280
+ /** Returns 'en-US' string from item. */
799
1281
  static toStandard(item: GeoItem): string;
1282
+ /** Sets location. */
800
1283
  static set(code: string, save?: boolean): void;
1284
+ /** Sets timezone offset. */
801
1285
  static setTimezone(timezone: number): void;
802
1286
  }
803
-
1287
+ // File: classes/GeoFlag.d.ts
804
1288
  export declare const GEO_FLAG_ICON_NAME = "f";
805
-
806
- export declare type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
807
- export declare type GeoFirstDay = 1 | 6 | 0;
808
-
809
- /** Flag and country info. */
1289
+ /**
1290
+ * Manage flags and geographic info.
1291
+ */
810
1292
  export declare class GeoFlag {
811
1293
  static flags: Record<string, string>;
1294
+ /** Constructor */
812
1295
  constructor(code?: string);
1296
+ /** Gets country info and flag. */
813
1297
  get(code?: string): GeoFlagItem | undefined;
1298
+ /** Gets flag icon ID. */
814
1299
  getFlag(code?: string): string | undefined;
1300
+ /** Returns countries list. */
815
1301
  getList(codes?: string[]): GeoFlagItem[];
1302
+ /** Returns list with national names. */
816
1303
  getNational(codes?: string[]): GeoFlagNational[];
1304
+ /** Changes locale. */
817
1305
  setCode(code: string): this;
818
1306
  }
819
-
820
- export declare interface GeoFlagItem {
821
- language: string;
822
- country: string;
823
- standard: string;
824
- icon?: string;
825
- label: string;
826
- value: string;
827
- }
828
-
829
- export declare interface GeoFlagNational extends GeoFlagItem {
830
- description: string;
831
- nationalLanguage: string;
832
- nationalCountry: string;
833
- }
834
-
835
- export declare type GeoHours = '12' | '24';
836
-
837
- /** Geo context instance. */
1307
+ // File: classes/GeoInstance.d.ts
1308
+ /**
1309
+ * Base class for geographic data.
1310
+ */
838
1311
  export declare class GeoInstance {
839
1312
  constructor();
1313
+ /** Gets current country info. */
840
1314
  get(): GeoItemFull;
1315
+ /** Gets country code. */
841
1316
  getCountry(): string;
1317
+ /** Gets language code. */
842
1318
  getLanguage(): string;
1319
+ /** Gets language-country format. */
843
1320
  getStandard(): string;
1321
+ /** Gets first day of week. */
844
1322
  getFirstDay(): string;
1323
+ /** Gets location string. */
845
1324
  getLocation(): string;
1325
+ /** Gets processed data. */
846
1326
  getItem(): GeoItemFull;
1327
+ /** Returns countries list. */
847
1328
  getList(): GeoItem[];
1329
+ /** Gets data by code. */
848
1330
  getByCode(code?: string): GeoItemFull;
1331
+ /** Gets data by language-country. */
849
1332
  getByCodeFull(code: string): GeoItem | undefined;
1333
+ /** Gets data by country code. */
850
1334
  getByCountry(country: string): GeoItem | undefined;
1335
+ /** Gets data by language code. */
851
1336
  getByLanguage(language: string): GeoItem | undefined;
1337
+ /** Gets offset minutes. */
852
1338
  getTimezone(): number;
1339
+ /** Gets formatted offset string. */
853
1340
  getTimezoneFormat(): string;
1341
+ /** Finds country data by code/name. */
854
1342
  find(code: string): GeoItemFull;
1343
+ /** Converts to standard code. */
855
1344
  toStandard(item: GeoItem): string;
1345
+ /** Updates location. */
856
1346
  set(code: string, save?: boolean): void;
1347
+ /** Updates timezone offset. */
857
1348
  setTimezone(timezone: number): void;
858
1349
  }
859
-
860
- /** Internationalization API wrapper. */
1350
+ // File: classes/GeoIntl.d.ts
1351
+ /**
1352
+ * Intl wrapper for language-sensitive formatting.
1353
+ */
861
1354
  export declare class GeoIntl {
1355
+ /** Checks for code instance. */
862
1356
  static isItem(code?: string): boolean;
1357
+ /** Returns location code. */
863
1358
  static getLocation(code?: string): string;
1359
+ /** Returns instance for code. */
864
1360
  static getInstance(code?: string): GeoIntl;
1361
+ /** Constructor */
865
1362
  constructor(code?: string, errorCenter?: ErrorCenterInstance);
1363
+ /** Returns location code. */
866
1364
  getLocation(): string;
1365
+ /** Returns first day. */
867
1366
  getFirstDay(): string;
1367
+ /** Translated names for language/region. */
868
1368
  display(value?: string, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): string;
1369
+ /** Display language name. */
869
1370
  languageName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
1371
+ /** Display region name. */
870
1372
  countryName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
1373
+ /** Formatted full name. */
871
1374
  fullName(last: string, first: string, surname?: string, short?: boolean): string;
1375
+ /** Number formatting. */
872
1376
  number(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
1377
+ /** Decimal point symbol. */
873
1378
  decimal(): string;
1379
+ /** Currency formatting. */
874
1380
  currency(value: NumberOrString, currencyOptions?: string | Intl.NumberFormatOptions, numberOnly?: boolean): string;
1381
+ /** Returns currency symbol or code. */
875
1382
  currencySymbol(currency: string, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): string;
1383
+ /** Unit formatting. */
876
1384
  unit(value: NumberOrString, unitOptions?: string | Intl.NumberFormatOptions): string;
1385
+ /** File size formatting. */
877
1386
  sizeFile(value: NumberOrString, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): string;
1387
+ /** Percent formatting. */
878
1388
  percent(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
1389
+ /** Percent formatting (base 100). */
879
1390
  percentBy100(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
1391
+ /** Plural rule formatting. */
880
1392
  plural(value: NumberOrString, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): string;
1393
+ /** Date formatting. */
881
1394
  date(value: NumberOrStringOrDate, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): string;
1395
+ /** Relative time formatting. */
882
1396
  relative(value: NumberOrStringOrDate, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): string;
1397
+ /** Relative time with fallback limit. */
883
1398
  relativeLimit(value: NumberOrStringOrDate, limit: number, todayValue?: Date, relativeOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, dateOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, type?: GeoDate, hour24?: boolean): string;
1399
+ /** Relative time by specific value and unit. */
884
1400
  relativeByValue(value: NumberOrString, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): string;
1401
+ /** Month name. */
885
1402
  month(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['month']): string;
1403
+ /** Months list. */
886
1404
  months(style?: Intl.DateTimeFormatOptions['month']): ItemValue<number | undefined>[];
1405
+ /** Weekday name. */
887
1406
  weekday(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['weekday']): string;
1407
+ /** Weekdays list. */
888
1408
  weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ItemValue<number | undefined>[];
1409
+ /** Time string. */
889
1410
  time(value: NumberOrStringOrDate): string;
1411
+ /** Locale-sensitive sort. */
890
1412
  sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
891
1413
  }
892
-
893
- export declare interface GeoItem {
894
- country: string;
895
- countryAlternative?: string[];
896
- language: string;
897
- languageAlternative?: string[];
898
- firstDay?: string | null;
899
- zone?: string | null;
900
- phoneCode?: string;
901
- phoneWithin?: string;
902
- phoneMask?: string | string[];
903
- nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
904
- }
905
-
906
- export declare interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
907
- standard: string;
908
- firstDay: string;
909
- }
910
-
911
- /** Phone mask and country code info. */
1414
+ // File: classes/GeoPhone.d.ts
1415
+ /**
1416
+ * Phone number mask storage and processing.
1417
+ */
912
1418
  export declare class GeoPhone {
1419
+ /** Gets code and country info. */
913
1420
  static get(code: string): GeoPhoneValue | undefined;
1421
+ /** Gets info by phone. */
914
1422
  static getByPhone(phone: string): GeoPhoneMapInfo;
1423
+ /** Gets mask data by country code. */
915
1424
  static getByCode(code: string): GeoPhoneMap | undefined;
1425
+ /** Returns codes list. */
916
1426
  static getList(): GeoPhoneValue[];
1427
+ /** Returns map tree. */
917
1428
  static getMap(): Record<string, GeoPhoneMap>;
1429
+ /** Converts to phone mask. */
918
1430
  static toMask(phone: string, masks?: string[]): string | undefined;
1431
+ /** Removes country code. */
919
1432
  static removeZero(phone: string): string;
920
1433
  }
921
-
922
- export declare interface GeoPhoneMap {
923
- items: GeoPhoneValue[];
924
- info: GeoPhoneValue | undefined;
925
- value: string | undefined;
926
- mask: string[];
927
- maskFull: string[];
928
- next: Record<string, GeoPhoneMap>;
929
- }
930
-
931
- export declare interface GeoPhoneMapInfo {
932
- item?: GeoPhoneMap;
933
- phone?: string;
934
- }
935
-
936
- export declare interface GeoPhoneValue {
937
- phone: number;
938
- within: number;
939
- mask: string[];
940
- value: string;
941
- }
942
-
943
- export declare type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
944
-
945
- /** Split string for highlight rendering. */
946
- export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
947
-
948
- /** Get element attributes. */
949
- export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
950
-
951
- /** Get clipboard text. */
952
- export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
953
-
954
- /** Get values of a specific column. */
955
- export declare function getColumn<T, K extends keyof T>(array: ObjectOrArray<T>, column: K): (T[K] | undefined)[];
956
-
957
- /** Get current formatted date.
958
- * @remarks Client-only for SSR stability.
1434
+ // File: classes/Global.d.ts
1435
+ /**
1436
+ * Global application data storage.
959
1437
  */
960
- export declare function getCurrentDate(format?: GeoDate): string;
961
-
962
- /** Get timestamp. @remarks SSR warning: hydration mismatch likely. */
963
- export declare function getCurrentTime(): number;
964
-
965
- /** Get element by selector. */
966
- export declare function getElement<E extends ElementOrWindow, R extends Exclude<E, Window>>(element?: ElementOrString<E>): R | undefined;
967
-
968
- /** Get or generate element ID. */
969
- export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
970
-
971
- /** Get HTMLImageElement from source. */
972
- export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
973
-
974
- /** Get element property value. */
975
- export declare function getElementItem<T extends ElementOrWindow, K extends keyof T, D>(element: ElementOrString<T>, index: K | string, defaultValue?: D): T[K] | D | undefined;
976
-
977
- export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
978
-
979
- /** Generate hydration script tag. */
980
- export declare function getElementSafeScript(id: string, data: any): string;
981
-
982
- /** Exact phrase RegExp. */
983
- export declare function getExactSearchExp(search: string): RegExp;
984
-
985
- /** Pattern-based RegExp creator. */
986
- export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
987
-
988
- /** Parse hydration JSON from script tag. */
989
- export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
990
-
991
- /** Get value from object by path. */
992
- export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
993
-
994
- /** Get KeyboardEvent key. */
995
- export declare function getKey(event: KeyboardEvent): string;
996
-
997
- export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
998
-
999
- export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
1000
-
1001
- export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
1002
-
1003
- /** Get mouse/touch coordinates. */
1004
- export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
1005
- export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
1006
- export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
1007
-
1008
- /** Pick object keys. */
1009
- export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
1010
-
1011
- /** Remove properties by value. */
1012
- export declare function getObjectNoUndefined<T extends Record<string | number, any>>(data: T, exception?: any): T;
1013
-
1014
- /** Ensure value is object. */
1015
- export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
1016
-
1017
- /** Strip non-alphanumeric. */
1018
- export declare function getOnlyText(text: any): string;
1019
-
1020
- /** Random text generator. */
1021
- export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
1022
-
1023
- /** Convert object to key-value string. */
1024
- export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
1025
-
1026
- /** Multi-word search RegExp. */
1027
- export declare function getSearchExp(search: string, limit?: number): RegExp;
1028
-
1029
- /** Word-separating search RegExp. */
1030
- export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
1031
-
1032
- export declare function getStepPercent(min: number | undefined, max: number): number;
1033
-
1034
- export declare function getStepValue(min: number | undefined, max: number): number;
1035
-
1036
- /** Application-wide global storage. */
1037
1438
  export declare class Global {
1439
+ /** Returns storage instance. */
1038
1440
  static getItem(): Record<string, any>;
1441
+ /** Gets value by name. */
1039
1442
  static get<R = any>(name: string): R;
1443
+ /** Adds data once. */
1040
1444
  static add(data: Record<string, any>): void;
1041
1445
  }
1042
-
1043
- /** Scroll container to element. */
1044
- export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
1045
-
1046
- /** Smooth scroll to element. */
1047
- export declare function goScrollSmooth<E extends HTMLElement>(element: E, options?: ScrollIntoViewOptions, shift?: number): void;
1048
-
1049
- export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
1050
-
1051
- /** Web Share API wrapper. */
1052
- export declare function handleShare(data: ShareData): Promise<boolean>;
1053
-
1054
- /** URL Hash storage. */
1446
+ // File: classes/Hash.d.ts
1447
+ /**
1448
+ * URL hash data management.
1449
+ */
1055
1450
  export declare class Hash {
1451
+ /** Returns HashInstance. */
1056
1452
  static getItem(): HashInstance;
1453
+ /** Gets data from hash. */
1057
1454
  static get<T>(name: string, defaultValue?: T | (() => T)): T;
1455
+ /** Sets data in hash. */
1058
1456
  static set<T>(name: string, callback: T | (() => T)): void;
1457
+ /** Adds change watcher. */
1059
1458
  static addWatch<T>(name: string, callback: (value: T) => void): void;
1459
+ /** Removes watcher. */
1060
1460
  static removeWatch<T>(name: string, callback: (value: T) => void): void;
1461
+ /** Reloads from URL string. */
1061
1462
  static reload(): void;
1062
1463
  }
1063
-
1064
- /** Hash state instance. */
1464
+ // File: classes/HashInstance.d.ts
1465
+ /**
1466
+ * URL hash data management.
1467
+ */
1065
1468
  export declare class HashInstance {
1469
+ /** Gets data from hash. */
1066
1470
  get<T>(name: string, defaultValue?: T | (() => T)): T;
1471
+ /** Sets data in hash. */
1067
1472
  set<T>(name: string, callback: T | (() => T)): this;
1473
+ /** Adds change listener. */
1068
1474
  addWatch<T>(name: string, callback: (value: T) => void): this;
1475
+ /** Removes listener. */
1069
1476
  removeWatch<T>(name: string, callback: (value: T) => void): this;
1477
+ /** Updates from URL. */
1070
1478
  reload(): this;
1071
1479
  }
1072
-
1073
- export declare type HighlightMatchItem = {
1074
- text: string;
1075
- isMatch: boolean;
1480
+ // File: classes/Icons.d.ts
1481
+ export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
1482
+ export type IconsConfig = {
1483
+ url?: string;
1484
+ list?: Record<string, IconsItem>;
1076
1485
  };
1077
-
1078
- /** Icon registry and loader. */
1486
+ /**
1487
+ * Icons management.
1488
+ */
1079
1489
  export declare class Icons {
1490
+ /** Checks if icon registered. */
1080
1491
  static is(index: string): boolean;
1492
+ /** Returns icon content/path. */
1081
1493
  static get(index: string, url?: string, wait?: number): Promise<string>;
1494
+ /** Sync returns icon. */
1082
1495
  static getAsync(index: string, url?: string): string;
1496
+ /** Returns icon names list. */
1083
1497
  static getNameList(): string[];
1498
+ /** Returns global URL. */
1084
1499
  static getUrlGlobal(): string;
1500
+ /** Adds custom icon. */
1085
1501
  static add(index: string, file: IconsItem): void;
1502
+ /** Adds loading placeholder. */
1086
1503
  static addLoad(index: string): void;
1504
+ /** Adds global icon. */
1087
1505
  static addGlobal(index: string, file: string): void;
1506
+ /** Adds icons list. */
1088
1507
  static addByList(list: Record<string, IconsItem>): void;
1508
+ /** Changes path. */
1089
1509
  static setUrl(url: string): void;
1510
+ /** Changes config. */
1090
1511
  static setConfig(config: IconsConfig): void;
1091
1512
  }
1092
-
1093
- export declare type IconsConfig = {
1094
- url?: string;
1095
- list?: Record<string, IconsItem>;
1096
- };
1097
-
1098
- export declare type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
1099
-
1100
- export declare type ImageCoordinator = {
1101
- x: number;
1102
- y: number;
1103
- };
1104
-
1105
- export declare function inArray<T>(array: T[], value: T): boolean;
1106
-
1107
- /** Init element ID listener for SSR context. */
1108
- export declare function initGetElementId(newListener: () => string | number): void;
1109
-
1110
- export declare function initScrollbarOffset(): Promise<void>;
1111
-
1112
- /** Compute key intersection. */
1113
- export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
1114
-
1115
- /** Check API success flag. */
1116
- export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
1117
-
1118
- export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
1119
-
1120
- export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
1121
-
1122
- export declare function isDomData(): boolean;
1123
-
1124
- /** Check for window object. */
1125
- export declare function isDomRuntime(): boolean;
1126
-
1127
- /** Check element visibility (not display: none). */
1128
- export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
1129
-
1130
- /** Check Enter/Space key. */
1131
- export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
1132
-
1133
- /** Check if value is not empty. */
1134
- export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
1135
-
1136
- export declare function isFloat(value: any): boolean;
1137
-
1138
- export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
1139
-
1140
- /** Check if element is in DOM. */
1141
- export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
1142
-
1143
- /** Check if input/editable element. */
1144
- export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
1145
-
1146
- export declare function isIntegerBetween(value: number, between: number): boolean;
1147
-
1148
- export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
1149
-
1150
- export declare function isNumber(value: any): boolean;
1151
-
1152
- export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
1153
-
1154
- export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
1155
-
1156
- export declare function isOnLine(): boolean;
1157
-
1158
- export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;
1159
-
1160
- export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
1161
-
1162
- export declare function isShare(): boolean;
1163
-
1164
- export declare function isString<T>(value: T): value is Extract<T, string>;
1165
-
1166
- export declare function isWindow<E>(element: E): element is Extract<E, Window>;
1167
-
1168
- export declare type Item<V> = { index: string; value: V; };
1169
- export declare type ItemList<T = any> = Record<string, T>;
1170
- export declare type ItemName<V> = { name: string | number; value: V; };
1171
- export declare type ItemValue<V> = { label: string; value: V; };
1172
-
1173
- /** Global loading indicator. */
1513
+ // File: classes/Loading.d.ts
1514
+ /**
1515
+ * Global loading state.
1516
+ */
1174
1517
  export declare class Loading {
1518
+ /** Checks if active. */
1175
1519
  static is(): boolean;
1520
+ /** Gets current value. */
1176
1521
  static get(): number;
1522
+ /** Returns LoadingInstance. */
1177
1523
  static getItem(): LoadingInstance;
1524
+ /** Shows loader. */
1178
1525
  static show(): void;
1526
+ /** Hides loader. */
1179
1527
  static hide(): void;
1528
+ /** Registers event listener. */
1180
1529
  static registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1530
+ /** Unregisters event listener. */
1181
1531
  static unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1182
1532
  }
1183
-
1184
- export declare type LoadingDetail = { loading: boolean; };
1185
-
1186
- /** Loader context instance. */
1533
+ // File: classes/LoadingInstance.d.ts
1534
+ /** Loading event data */
1535
+ export type LoadingDetail = {
1536
+ loading: boolean;
1537
+ };
1538
+ /** Loading registration item */
1539
+ export type LoadingRegistrationItem = {
1540
+ item: EventItem<Window, CustomEvent, LoadingDetail>;
1541
+ listener: EventListenerDetail<CustomEvent, LoadingDetail>;
1542
+ element?: ElementOrString<HTMLElement>;
1543
+ };
1544
+ /**
1545
+ * Global loading instance.
1546
+ */
1187
1547
  export declare class LoadingInstance {
1548
+ /** Constructor */
1188
1549
  constructor(eventName?: string);
1550
+ /** Checks if loader active. */
1189
1551
  is(): boolean;
1552
+ /** Gets loading value. */
1190
1553
  get(): number;
1554
+ /** Shows loader. */
1191
1555
  show(): void;
1556
+ /** Hides loader. */
1192
1557
  hide(): void;
1558
+ /** Registers event. */
1193
1559
  registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1560
+ /** Unregisters event. */
1194
1561
  unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1195
1562
  }
1196
-
1197
- export declare type LoadingRegistrationItem = {
1198
- item: EventItem<Window, CustomEvent, LoadingDetail>;
1199
- listener: EventListenerDetail<CustomEvent, LoadingDetail>;
1200
- element?: ElementOrString<HTMLElement>;
1201
- };
1202
-
1203
- /** Unified SEO Meta tag manager. */
1563
+ // File: classes/Meta.d.ts
1564
+ /**
1565
+ * Unified meta tag manager (Standard, OG, Twitter).
1566
+ */
1204
1567
  export declare class Meta extends MetaManager<MetaTag[]> {
1568
+ /** Constructor */
1205
1569
  constructor();
1570
+ /** Gets MetaOg instance. */
1206
1571
  getOg(): MetaOg;
1572
+ /** Gets MetaTwitter instance. */
1207
1573
  getTwitter(): MetaTwitter;
1574
+ /** Gets title. */
1208
1575
  getTitle(): string;
1576
+ /** Gets keywords. */
1209
1577
  getKeywords(): string;
1578
+ /** Gets description. */
1210
1579
  getDescription(): string;
1580
+ /** Gets OG image. */
1211
1581
  getImage(): string;
1582
+ /** Gets canonical URL. */
1212
1583
  getCanonical(): string;
1584
+ /** Gets robots directive. */
1213
1585
  getRobots(): MetaRobots;
1586
+ /** Gets author. */
1214
1587
  getAuthor(): string;
1588
+ /** Gets OG site name. */
1215
1589
  getSiteName(): string;
1590
+ /** Gets OG locale. */
1216
1591
  getLocale(): string;
1592
+ /** Sets title and syncs cards. */
1217
1593
  setTitle(title: string): this;
1594
+ /** Sets keywords. */
1218
1595
  setKeywords(keywords: string | string[]): this;
1596
+ /** Sets description. */
1219
1597
  setDescription(description: string): this;
1598
+ /** Sets OG/Twitter image. */
1220
1599
  setImage(image: string): this;
1600
+ /** Sets canonical and syncs cards. */
1221
1601
  setCanonical(canonical: string): this;
1602
+ /** Sets robots. */
1222
1603
  setRobots(robots: MetaRobots): this;
1604
+ /** Sets author. */
1223
1605
  setAuthor(author: string): this;
1606
+ /** Sets OG/Twitter site name. */
1224
1607
  setSiteName(siteName: string): this;
1608
+ /** Sets OG locale. */
1225
1609
  setLocale(locale: string): this;
1610
+ /** Sets title suffix. */
1226
1611
  setSuffix(suffix?: string): void;
1612
+ /** Generates full HTML. */
1227
1613
  html(): string;
1614
+ /** Generates HTML-safe title. */
1228
1615
  htmlTitle(): string;
1229
1616
  }
1230
-
1231
- export declare type MetaList<T extends readonly string[]> = { [K in T[number]]?: string; };
1232
-
1233
- /** Meta tag base manager. */
1617
+ // File: classes/MetaManager.d.ts
1618
+ type MetaList<T extends readonly string[]> = {
1619
+ [K in T[number]]?: string;
1620
+ };
1621
+ /**
1622
+ * Base meta tag management.
1623
+ */
1234
1624
  export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
1625
+ /**
1626
+ * Constructor
1627
+ * @param listMeta names list
1628
+ * @param isProperty use property attribute
1629
+ */
1235
1630
  constructor(listMeta: T, isProperty?: boolean);
1631
+ /** Returns tag names list. */
1236
1632
  getListMeta(): T;
1633
+ /** Gets content by name. */
1237
1634
  get(name: Key): string;
1635
+ /** Returns all tags object. */
1238
1636
  getItems(): MetaList<T>;
1637
+ /** Returns all tags HTML. */
1239
1638
  html(): string;
1639
+ /** Sets tag content. */
1240
1640
  set(name: Key, content: string): this;
1641
+ /** Sets multiple tags. */
1241
1642
  setByList(metaList: MetaList<T>): this;
1242
1643
  }
1243
-
1244
- /** Open Graph manager. */
1644
+ // File: classes/MetaOg.d.ts
1645
+ /**
1646
+ * Open Graph meta manager.
1647
+ */
1245
1648
  export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
1246
1649
  constructor();
1247
1650
  getTitle(): string;
@@ -1259,60 +1662,10 @@ export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
1259
1662
  setLocale(locale: string): this;
1260
1663
  setSiteName(siteName: string): this;
1261
1664
  }
1262
-
1263
- export declare enum MetaOpenGraphAge { newborn = "newborn", infant = "infant", toddler = "toddler", kids = "kids", adult = "adult" }
1264
- export declare enum MetaOpenGraphAvailability { inStock = "in stock", outOfStock = "out of stock", preorder = "preorder", backorder = "backorder", discontinued = "discontinued", pending = "pending" }
1265
- export declare enum MetaOpenGraphCondition { new = "new", used = "used", refurbished = "refurbished" }
1266
- export declare enum MetaOpenGraphGender { female = "female", male = "male", unisex = "unisex" }
1267
-
1268
- /** Common OG tags. */
1269
- export declare enum MetaOpenGraphTag {
1270
- title = "og:title",
1271
- type = "og:type",
1272
- url = "og:url",
1273
- image = "og:image",
1274
- description = "og:description",
1275
- locale = "og:locale",
1276
- siteName = "og:site_name",
1277
- imageUrl = "og:image:url",
1278
- imageSecureUrl = "og:image:secure_url",
1279
- imageType = "og:image:type",
1280
- imageWidth = "og:image:width",
1281
- imageHeight = "og:image:height",
1282
- articlePublishedTime = "article:published_time",
1283
- articleModifiedTime = "article:modified_time",
1284
- productPriceAmount = "product:price:amount",
1285
- productPriceCurrency = "product:price:currency"
1286
- }
1287
-
1288
- export declare enum MetaOpenGraphType {
1289
- website = "website",
1290
- article = "article",
1291
- video = "video.other",
1292
- videoTvShow = "video.tv_show",
1293
- videoEpisode = "video.episode",
1294
- videoMovie = "video.movie",
1295
- musicAlbum = "music.album",
1296
- musicPlaylist = "music.playlist",
1297
- musicSong = "music.song",
1298
- product = "product",
1299
- profile = "profile",
1300
- book = "book"
1301
- }
1302
-
1303
- export declare enum MetaRobots {
1304
- indexFollow = "index, follow",
1305
- noIndexFollow = "noindex, follow",
1306
- indexNoFollow = "index, nofollow",
1307
- noIndexNoFollow = "noindex, nofollow",
1308
- noArchive = "noarchive",
1309
- noSnippet = "nosnippet",
1310
- noImageIndex = "noimageindex",
1311
- noTranslate = "notranslate",
1312
- none = "none"
1313
- }
1314
-
1315
- /** Static SEO manager singleton. */
1665
+ // File: classes/MetaStatic.d.ts
1666
+ /**
1667
+ * Static meta tag management.
1668
+ */
1316
1669
  export declare class MetaStatic {
1317
1670
  static getItem(): Meta;
1318
1671
  static getOg(): MetaOg;
@@ -1339,18 +1692,12 @@ export declare class MetaStatic {
1339
1692
  static html(): string;
1340
1693
  static htmlTitle(): string;
1341
1694
  }
1342
-
1343
- export declare enum MetaTag {
1344
- title = "title",
1345
- description = "description",
1346
- keywords = "keywords",
1347
- canonical = "canonical",
1348
- robots = "robots",
1349
- author = "author"
1350
- }
1351
-
1352
- /** Twitter Card manager. */
1353
- export declare class MetaTwitter {
1695
+ // File: classes/MetaTwitter.d.ts
1696
+ /**
1697
+ * Twitter Card meta manager.
1698
+ */
1699
+ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
1700
+ constructor();
1354
1701
  getCard(): MetaTwitterCard;
1355
1702
  getSite(): string;
1356
1703
  getCreator(): string;
@@ -1366,133 +1713,141 @@ export declare class MetaTwitter {
1366
1713
  setDescription(description: string): this;
1367
1714
  setImage(image: string): this;
1368
1715
  }
1369
-
1370
- export declare enum MetaTwitterCard {
1371
- summary = "summary",
1372
- summaryLargeImage = "summary_large_image",
1373
- app = "app",
1374
- player = "player"
1375
- }
1376
-
1377
- /** Twitter Card tags. */
1378
- export declare enum MetaTwitterTag {
1379
- card = "twitter:card",
1380
- site = "twitter:site",
1381
- creator = "twitter:creator",
1382
- url = "twitter:url",
1383
- title = "twitter:title",
1384
- description = "twitter:description",
1385
- image = "twitter:image",
1386
- player = "twitter:player",
1387
- playerWidth = "twitter:player:width",
1388
- playerHeight = "twitter:player:height"
1389
- }
1390
-
1391
- export declare type NormalOrArray<T = NumberOrString> = T | T[];
1392
- export declare type NormalOrPromise<T> = T | Promise<T>;
1393
- export declare type NumberOrString = number | string;
1394
- export declare type NumberOrStringOrBoolean = number | string | boolean;
1395
- export declare type NumberOrStringOrDate = NumberOrString | Date;
1396
- export declare type ObjectItem<T = any> = Record<string, T>;
1397
- export declare type ObjectOrArray<T = any> = T[] | ObjectItem<T>;
1398
-
1399
- /** Random integer. */
1400
- export declare function random(min: number, max: number): number;
1401
-
1402
- /** Remove prefix from string. */
1403
- export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
1404
-
1405
- export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
1406
-
1407
- /** Recursive object merge. */
1408
- export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
1409
-
1410
- /** Template replacement. */
1411
- export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
1412
-
1413
- /** Resize image by constraints. */
1414
- export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: ResizeImageByMaxType, typeData?: string): string | undefined;
1415
-
1416
- declare type ResizeImageByMaxType = 'auto' | 'width' | 'height';
1417
-
1418
- /** Pausable/resumable timer. */
1716
+ // File: classes/ResumableTimer.d.ts
1717
+ /**
1718
+ * Timer that can be paused/resumed.
1719
+ */
1419
1720
  export declare class ResumableTimer {
1721
+ /**
1722
+ * Constructor
1723
+ * @param callback function to call
1724
+ * @param delay ms
1725
+ * @param blockStart no immediate start
1726
+ */
1420
1727
  constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
1728
+ /** Resumes/starts timer. */
1421
1729
  resume(): this;
1730
+ /** Pauses timer. */
1422
1731
  pause(): this;
1732
+ /** Resets with original delay. */
1423
1733
  reset(): this;
1734
+ /** Clears timer state. */
1424
1735
  clear(): this;
1425
1736
  }
1426
-
1427
- /** Scrollbar width measurement. */
1737
+ // File: classes/ScrollbarWidth.d.ts
1738
+ /**
1739
+ * Gets scrollbar width.
1740
+ */
1428
1741
  export declare class ScrollbarWidth {
1742
+ /** Checks if scroll hiding enabled. */
1429
1743
  static is(): Promise<boolean>;
1744
+ /** Returns width in pixels. */
1430
1745
  static get(): Promise<number>;
1746
+ /** Returns storage instance. */
1431
1747
  static getStorage(): DataStorage<number>;
1748
+ /** Checks if calculation active. */
1432
1749
  static getCalculate(): boolean;
1433
1750
  }
1434
-
1435
- export declare type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
1436
- export declare type SearchCacheItem<T extends SearchItem> = { item: T; value: string; };
1437
- export declare type SearchColumn<T extends SearchItem> = { [K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K; }[keyof T];
1438
- export declare type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
1439
- export declare type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
1440
- export declare type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
1441
- export declare type SearchFormatItem<T extends SearchItem, KT extends string[]> = { [K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string; } & { searchActive?: boolean; };
1442
- export declare type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
1443
- export declare type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
1444
- export declare type SearchItem = Record<string, any>;
1445
-
1446
- /** Searchable list manager. */
1751
+ // File: classes/SearchList.d.ts
1752
+ /**
1753
+ * Manages searchable list.
1754
+ */
1447
1755
  export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
1756
+ /**
1757
+ * Constructor
1758
+ * @param list data list
1759
+ * @param columns search columns
1760
+ * @param value initial value
1761
+ * @param options search options
1762
+ */
1448
1763
  constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
1764
+ /** Returns data manager. */
1449
1765
  getData(): SearchListData<T, K>;
1766
+ /** Returns items list. */
1450
1767
  getList(): SearchListValue<T>;
1768
+ /** Returns search columns. */
1451
1769
  getColumns(): K | undefined;
1770
+ /** Returns search item instance. */
1452
1771
  getItem(): SearchListItem;
1772
+ /** Returns current search value. */
1453
1773
  getValue(): string | undefined;
1774
+ /** Returns options manager. */
1454
1775
  getOptions(): SearchListOptions;
1776
+ /** Sets items and resets cache. */
1455
1777
  setList(list: SearchListValue<T>): this;
1778
+ /** Sets columns and resets cache. */
1456
1779
  setColumns(columns?: K): this;
1780
+ /** Sets value and updates matcher. */
1457
1781
  setValue(value?: string): this;
1782
+ /** Sets options and updates matcher. */
1458
1783
  setOptions(options: SearchOptions): this;
1784
+ /** Processes and returns formatted list. */
1459
1785
  to(): SearchFormatList<T, K>;
1460
1786
  }
1461
-
1462
- /** Internal search data processor. */
1787
+ // File: classes/SearchListData.d.ts
1788
+ /**
1789
+ * Search data and cache manager.
1790
+ */
1463
1791
  export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
1792
+ /** Constructor */
1464
1793
  constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
1794
+ /** Checks if ready for search. */
1465
1795
  is(): this is this & { list: T[]; columns: string[]; };
1796
+ /** Checks for list. */
1466
1797
  isList(): this is this & { list: T[]; };
1798
+ /** Returns original list. */
1467
1799
  getList(): SearchListValue<T>;
1800
+ /** Returns columns. */
1468
1801
  getColumns(): K | undefined;
1802
+ /** Sets list and regenerates cache. */
1469
1803
  setList(list: SearchListValue<T>): this;
1804
+ /** Sets columns and regenerates cache. */
1470
1805
  setColumns(columns?: SearchColumns<T>): this;
1806
+ /** Finds cached item. */
1471
1807
  findCacheItem(item: T): SearchCacheItem<T> | undefined;
1808
+ /** Executes callback for each cached item. */
1472
1809
  forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
1810
+ /** Formats single item with highlights. */
1473
1811
  toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
1474
1812
  }
1475
-
1476
- /** Individual search item state. */
1813
+ // File: classes/SearchListItem.d.ts
1814
+ /**
1815
+ * Single search item state.
1816
+ */
1477
1817
  export declare class SearchListItem {
1818
+ /** Constructor */
1478
1819
  constructor(value: string | undefined, options: SearchListOptions);
1820
+ /** Checks for value. */
1479
1821
  is(): this is this & { value: string; };
1822
+ /** Checks if search should trigger. */
1480
1823
  isSearch(): boolean;
1824
+ /** Returns value. */
1481
1825
  get(): string;
1826
+ /** Sets value. */
1482
1827
  set(value?: string): this;
1483
1828
  }
1484
-
1485
- /** Logic for matching strings in search. */
1829
+ // File: classes/SearchListMatcher.d.ts
1830
+ /**
1831
+ * Search regex matcher.
1832
+ */
1486
1833
  export declare class SearchListMatcher {
1834
+ /** Constructor */
1487
1835
  constructor(item: SearchListItem, options: SearchListOptions);
1836
+ /** Checks if initialized. */
1488
1837
  is(): boolean;
1838
+ /** Checks for match. */
1489
1839
  isSelection(value: SearchCacheItem<any>['value']): boolean;
1840
+ /** Returns current RegExp. */
1490
1841
  get(): RegExp | undefined;
1842
+ /** Updates matcher from value/options. */
1491
1843
  update(): void;
1492
1844
  }
1493
-
1494
- /** Search options manager. */
1845
+ // File: classes/SearchListOptions.d.ts
1846
+ /**
1847
+ * Search options manager.
1848
+ */
1495
1849
  export declare class SearchListOptions {
1850
+ /** Constructor */
1496
1851
  constructor(options?: SearchOptions | undefined);
1497
1852
  getOptions(): SearchOptions;
1498
1853
  getLimit(): number;
@@ -1502,162 +1857,989 @@ export declare class SearchListOptions {
1502
1857
  getClassName(): string;
1503
1858
  setOptions(options: SearchOptions): this;
1504
1859
  }
1505
-
1506
- export declare type SearchListValue<T extends SearchItem> = T[] | undefined;
1507
- export declare type SearchOptions = {
1508
- limit?: number;
1509
- returnEverything?: boolean;
1510
- delay?: number;
1511
- findExactMatch?: boolean;
1512
- classSearchName?: string;
1860
+ // File: classes/ServerStorage.d.ts
1861
+ type ServerStorageItem = {
1862
+ value: any;
1863
+ hydration: boolean;
1513
1864
  };
1514
-
1515
- /** Seconds to HH:MM:SS string. */
1516
- export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
1517
-
1518
- /** Context-isolated server storage for SSR. */
1865
+ type ServerStorageList = Record<string, ServerStorageItem>;
1866
+ /**
1867
+ * SSR data isolation manager.
1868
+ */
1519
1869
  export declare class ServerStorage {
1870
+ /**
1871
+ * Initializes storage with context listener.
1872
+ * @param listener context factory
1873
+ * @returns this class
1874
+ */
1520
1875
  static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
1521
1876
  static reset(): void;
1877
+ /** Checks key existence. */
1522
1878
  static has(key: string): boolean;
1879
+ /** Gets value or creates with factory. */
1523
1880
  static get<T = any>(key: string, defaultValue?: () => T, hydration?: boolean): T;
1881
+ /** Saves value. */
1524
1882
  static set<T = any>(key: string, value: () => T, hydration?: boolean): T;
1525
1883
  static setErrorStatus(hide: boolean): void;
1526
1884
  static remove(key: string): void;
1885
+ /** Returns hydration script string. */
1527
1886
  static toString(): string;
1528
1887
  }
1529
-
1530
- /** Set element property by index. */
1531
- export declare function setElementItem<E extends ElementOrWindow, K extends keyof E, V extends E[K] = E[K]>(element: ElementOrString<E>, index: K, value: V | Record<string, V>): E | undefined;
1532
-
1533
- /** Dynamic value state modifier for multiple/maxlength support. */
1534
- export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
1535
- multiple?: boolean | undefined;
1536
- maxlength?: number | undefined;
1537
- alwaysChange?: boolean | undefined;
1538
- notEmpty?: boolean | undefined;
1539
- }): T | T[] | undefined;
1540
-
1541
- /** Delay execution. */
1542
- export declare function sleep(ms: number): Promise<void>;
1543
-
1544
- /** Copy object properties into another by start index. */
1545
- export declare function splice<I>(array: ObjectItem<I>, replacement?: ObjectItem<I> | I, indexStart?: string): ObjectItem<I>;
1546
-
1547
- /** Callback registry for storage changes. */
1888
+ // File: classes/StorageCallback.d.ts
1889
+ /**
1890
+ * Callback lists for storage.
1891
+ */
1548
1892
  export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
1549
- constructor(name: string, group?: string);
1893
+ /** Returns instance by name. */
1550
1894
  static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
1895
+ /** Constructor */
1896
+ constructor(name: string, group?: string);
1897
+ /** Gets loading state. */
1551
1898
  isLoading(): boolean;
1899
+ /** Gets name. */
1552
1900
  getName(): string;
1553
1901
  getLoading(): boolean;
1902
+ /** Adds callback. */
1554
1903
  addCallback(callback: Callback, isOnce?: boolean): this;
1904
+ /** Removes callback. */
1555
1905
  removeCallback(callback: Callback): this;
1906
+ /** Prepares launch. */
1556
1907
  preparation(): this;
1908
+ /** Executes all callbacks. */
1557
1909
  run(value: T): Promise<this>;
1558
1910
  }
1559
-
1560
- /** Repeat string count times. */
1561
- export declare function strFill(value: string, count: number): string;
1562
-
1563
- /** Split string with limit (last element contains remainder). */
1564
- export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
1565
-
1566
- /** Force value to array. */
1567
- export declare function toArray<T>(value: T): T extends any[] ? T : [T];
1568
-
1569
- /** String to camelCase. */
1570
- export declare function toCamelCase(value: string): string;
1571
-
1572
- /** String to CamelCase. */
1573
- export declare function toCamelCaseFirst(value: string): string;
1574
-
1575
- /** Convert to Date object. */
1576
- export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
1577
-
1578
- /** String to kebab-case. */
1579
- export declare function toKebabCase(value: string): string;
1580
-
1581
- /** Parse string/number to float. SSR safe. */
1582
- export declare function toNumber(value?: NumberOrString): number;
1583
-
1584
- /** Parse number with max constraint. */
1585
- export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
1586
-
1587
- export declare function toPercent(maxValue: number, value: number): number;
1588
- export declare function toPercentBy100(maxValue: number, value: number): number;
1589
-
1590
- /** Value to string. */
1591
- declare function toString_2<T>(value: T): string;
1592
- export { toString_2 as toString }
1593
-
1594
- /** Type transformation (detects boolean, number, null, object, function). */
1595
- export declare function transformation(value: any, isFunction?: boolean): any;
1596
-
1597
- /** Translation manager. */
1911
+ // File: classes/Translate.d.ts
1912
+ /**
1913
+ * Translation text retrieval.
1914
+ */
1598
1915
  export declare class Translate {
1916
+ /** Gets text by code. */
1599
1917
  static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
1918
+ /** Returns TranslateInstance. */
1600
1919
  static getItem(): TranslateInstance;
1920
+ /** Sync gets text by code. */
1601
1921
  static getSync(name: string, first?: boolean, replacement?: string[] | Record<string, string | number>): string;
1922
+ /** Gets list of translations. */
1602
1923
  static getList<T extends TranslateCode[]>(names: T): Promise<TranslateList<T>>;
1924
+ /** Sync gets translations list. */
1603
1925
  static getListSync<T extends TranslateCode[]>(names: T, first?: boolean): TranslateList<T>;
1926
+ /** Adds translated texts. */
1604
1927
  static add(names: string | string[]): Promise<void>;
1928
+ /** Sync adds texts. */
1605
1929
  static addSync(data: Record<string, string>): void;
1930
+ /** Adds based on environment. */
1606
1931
  static addNormalOrSync(data: Record<string, string>): Promise<void>;
1932
+ /** Adds sync by location. */
1607
1933
  static addSyncByLocation(data: Record<string, Record<string, string>>): void;
1934
+ /** Adds sync from file. */
1608
1935
  static addSyncByFile(data: TranslateDataFile): void;
1936
+ /** Sets script URL. */
1609
1937
  static setUrl(url: string): void;
1938
+ /** Sets property name. */
1610
1939
  static setPropsName(name: string): void;
1940
+ /** Changes read mode. */
1611
1941
  static setReadApi(value: boolean): void;
1942
+ /** Sets configuration. */
1612
1943
  static setConfig(config: TranslateConfig): void;
1613
1944
  }
1614
-
1615
- export declare const TRANSLATE_GLOBAL_PREFIX = "global";
1616
- export declare const TRANSLATE_TIME_OUT = 160;
1617
-
1618
- export declare type TranslateCode = string | string[];
1619
- export declare type TranslateConfig = { url?: string; propsName?: string; readApi?: boolean; };
1620
- export declare type TranslateDataFile = Record<string, TranslateDataFileItem>;
1621
- export declare type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
1622
- export declare type TranslateDataFileList = Record<string, string>;
1623
-
1624
- /** Localized translation file manager. */
1945
+ // File: classes/TranslateFile.d.ts
1946
+ /**
1947
+ * Translation files manager.
1948
+ */
1625
1949
  export declare class TranslateFile {
1950
+ /** Constructor */
1626
1951
  constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
1952
+ /** Checks for files. */
1627
1953
  isFile(): boolean;
1954
+ /** Gets location. */
1628
1955
  getLocation(): string;
1956
+ /** Gets language. */
1629
1957
  getLanguage(): string;
1958
+ /** Returns translations list. */
1630
1959
  getList(): Promise<TranslateDataFileList | undefined>;
1960
+ /** Adds files list. */
1631
1961
  add(data: TranslateDataFile): void;
1632
1962
  }
1633
-
1634
- /** Translation context instance. */
1963
+ // File: classes/TranslateInstance.d.ts
1964
+ /**
1965
+ * Translation text retrieval instance.
1966
+ */
1635
1967
  export declare class TranslateInstance {
1968
+ /** Constructor */
1636
1969
  constructor(url?: string, propsName?: string, files?: TranslateFile);
1970
+ /** Gets text by code. */
1637
1971
  get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
1972
+ /** Sync gets text. */
1638
1973
  getSync(name: string, first?: boolean, replacement?: string[] | Record<string, string | number>): string;
1974
+ /** Gets translations list. */
1639
1975
  getList<T extends TranslateCode[]>(names: T): Promise<TranslateList<T>>;
1976
+ /** Sync gets list. */
1640
1977
  getListSync<T extends TranslateCode[]>(names: T, first?: boolean): TranslateList<T>;
1978
+ /** Adds texts. */
1641
1979
  add(names: string | string[]): Promise<void>;
1980
+ /** Sync adds texts. */
1642
1981
  addSync(data: Record<string, string>): void;
1982
+ /** Environment-based add. */
1643
1983
  addNormalOrSync(data: Record<string, string>): Promise<void>;
1984
+ /** Sync add by location. */
1644
1985
  addSyncByLocation(data: Record<string, Record<string, string>>): void;
1986
+ /** Sync add from file. */
1645
1987
  addSyncByFile(data: TranslateDataFile): void;
1988
+ /** Sets script URL. */
1646
1989
  setUrl(url: string): this;
1990
+ /** Sets property name. */
1647
1991
  setPropsName(name: string): this;
1992
+ /** Sets read mode. */
1648
1993
  setReadApi(value: boolean): this;
1649
1994
  }
1650
-
1651
- export declare type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
1652
- export declare type TranslateList<T extends TranslateCode[]> = { [K in T[number] as K extends readonly string[] ? K[0] : K]: string; };
1653
-
1654
- /** Binary data to base64. */
1995
+ // File: functions/addTagHighlightMatch.d.ts
1996
+ /** Highlights match in string with tags. */
1997
+ export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
1998
+ // File: functions/anyToString.d.ts
1999
+ /** Converts any value to string. */
2000
+ export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
2001
+ // File: functions/applyTemplate.d.ts
2002
+ /** Replaces template keys [key] or {key} with values. */
2003
+ export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
2004
+ // File: functions/arrFill.d.ts
2005
+ /** Creates array of length count filled with value. */
2006
+ export declare function arrFill<T>(value: T, count: number): T[];
2007
+ // File: functions/blobToBase64.d.ts
2008
+ /** Converts Blob to Base64. */
2009
+ export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
2010
+ // File: functions/capitalize.d.ts
2011
+ /** Capitalizes first letter. */
2012
+ export declare function capitalize(value: string, isLocale?: boolean): string;
2013
+ // File: functions/copyObject.d.ts
2014
+ /** Deep copy of object. */
2015
+ export declare function copyObject<T>(value: T): T;
2016
+ // File: functions/copyObjectLite.d.ts
2017
+ /** Shallow copy of simple object. */
2018
+ export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
2019
+ // File: functions/createElement.d.ts
2020
+ /**
2021
+ * Creates HTML element.
2022
+ * @remarks Client-side only. Returns undefined in SSR.
2023
+ */
2024
+ export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: Partial<T> | Record<keyof T, T[keyof T]> | ((element: T) => void), referenceElement?: HTMLElement): T | undefined;
2025
+ // File: functions/domQuerySelector.d.ts
2026
+ /** Returns first matched element. */
2027
+ export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
2028
+ // File: functions/domQuerySelectorAll.d.ts
2029
+ /** Returns all matched elements. */
2030
+ export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
2031
+ // File: functions/encodeAttribute.d.ts
2032
+ /** Encodes for HTML attributes. */
2033
+ export declare function encodeAttribute(text: string): string;
2034
+ // File: functions/encodeLiteAttribute.d.ts
2035
+ /** Lightly encodes for HTML attributes. */
2036
+ export declare function encodeLiteAttribute(text: string): string;
2037
+ // File: functions/ensureMaxSize.d.ts
2038
+ /** Resizes image if it exceeds max size. */
2039
+ export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
2040
+ // File: functions/escapeExp.d.ts
2041
+ /** Escapes special regex characters. */
2042
+ export declare function escapeExp(value: string): string;
2043
+ // File: functions/eventStopPropagation.d.ts
2044
+ /** Stops event propagation. */
2045
+ export declare function eventStopPropagation(event: Event): void;
2046
+ // File: functions/executeFunction.d.ts
2047
+ /** Executes argument if function, else returns value. */
2048
+ export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
2049
+ // File: functions/executePromise.d.ts
2050
+ /** Safely executes function/Promise and awaits result. */
2051
+ export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
2052
+ // File: functions/forEach.d.ts
2053
+ /** Iterates and returns array of results. */
2054
+ export declare function forEach<T, R, D extends T[] | Record<string, T> | Map<string, T> | Set<T> = T[] | Record<string, T> | Map<string, T> | Set<T>, K = D extends T[] ? number : string>(data: D & (T[] | Record<string, T> | Map<string, T> | Set<T>), callback: (item: T, key: K, dataMain: typeof data) => R, saveUndefined?: boolean): R[];
2055
+ // File: functions/frame.d.ts
2056
+ /** Loops requestAnimationFrame until next returns false. */
2057
+ export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
2058
+ // File: functions/getArrayHighlightMatch.d.ts
2059
+ /** Splits string into segment array with match flags. */
2060
+ export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
2061
+ // File: functions/getAttributes.d.ts
2062
+ /** Gets attributes record of element. */
2063
+ export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
2064
+ // File: functions/getClipboardData.d.ts
2065
+ /** Retrieves clipboard string. */
2066
+ export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
2067
+ // File: functions/getColumn.d.ts
2068
+ /** Returns array of specific column values. */
2069
+ export declare function getColumn<T, K extends keyof T>(array: ObjectOrArray<T>, column: K): (T[K] | undefined)[];
2070
+ // File: functions/getCurrentDate.d.ts
2071
+ /**
2072
+ * Returns current date string.
2073
+ * @remarks Client-side only recommended for SSR safety.
2074
+ */
2075
+ export declare function getCurrentDate(format?: GeoDate): string;
2076
+ // File: functions/getCurrentTime.d.ts
2077
+ /**
2078
+ * Returns current timestamp ms.
2079
+ * @note Warning: Causes SSR hydration mismatch if used in rendering.
2080
+ */
2081
+ export declare function getCurrentTime(): number;
2082
+ // File: functions/getElement.d.ts
2083
+ /** Returns first matched Element. */
2084
+ export declare function getElement<E extends ElementOrWindow, R extends Exclude<E, Window>>(element?: ElementOrString<E>): R | undefined;
2085
+ // File: functions/getElementId.d.ts
2086
+ /** Gets or creates element ID. */
2087
+ export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
2088
+ /**
2089
+ * Initializes getElementId.
2090
+ * @warning Mandatory for SSR.
2091
+ */
2092
+ export declare function initGetElementId(newListener: () => string | number): void;
2093
+ // File: functions/getElementImage.d.ts
2094
+ /** Gets Image element from source. */
2095
+ export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
2096
+ // File: functions/getElementItem.d.ts
2097
+ /** Returns element property value. */
2098
+ export declare function getElementItem<T extends ElementOrWindow, K extends keyof T, D>(element: ElementOrString<T>, index: K | string, defaultValue?: D): T[K] | D | undefined;
2099
+ // File: functions/getElementOrWindow.d.ts
2100
+ /** Returns Window or Element. */
2101
+ export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
2102
+ // File: functions/getElementSafeScript.d.ts
2103
+ /** Generates script tag for hydration. */
2104
+ export declare function getElementSafeScript(id: string, data: any): string;
2105
+ // File: functions/getExactSearchExp.d.ts
2106
+ /** Regex for exact case-insensitive phrase match. */
2107
+ export declare function getExactSearchExp(search: string): RegExp;
2108
+ // File: functions/getExp.d.ts
2109
+ /** Creates RegExp from template. */
2110
+ export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
2111
+ // File: functions/getHydrationData.d.ts
2112
+ /** Parses JSON from script tag. */
2113
+ export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
2114
+ // File: functions/getItemByPath.d.ts
2115
+ /** Returns data by path string. */
2116
+ export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
2117
+ // File: functions/getKey.d.ts
2118
+ /** Returns pressed key. */
2119
+ export declare function getKey(event: KeyboardEvent): string;
2120
+ // File: functions/getLengthOfAllArray.d.ts
2121
+ /** Returns lengths of all elements. */
2122
+ export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
2123
+ // File: functions/getMaxLengthAllArray.d.ts
2124
+ /** Returns length of longest string. */
2125
+ export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
2126
+ export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
2127
+ // File: functions/getMinLengthAllArray.d.ts
2128
+ /** Returns length of shortest string. */
2129
+ export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
2130
+ // File: functions/getMouseClient.d.ts
2131
+ /** Returns mouse/click coordinates. */
2132
+ export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
2133
+ // File: functions/getMouseClientX.d.ts
2134
+ /** Returns X coordinate. */
2135
+ export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
2136
+ // File: functions/getMouseClientY.d.ts
2137
+ /** Returns Y coordinate. */
2138
+ export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
2139
+ // File: functions/getObjectByKeys.d.ts
2140
+ /** New object with specified keys. */
2141
+ export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
2142
+ // File: functions/getObjectNoUndefined.d.ts
2143
+ /** Removes properties matching exception type. */
2144
+ export declare function getObjectNoUndefined<T extends Record<string | number, any>>(data: T, exception?: any): T;
2145
+ // File: functions/getObjectOrNone.d.ts
2146
+ /** Returns object or empty object. */
2147
+ export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
2148
+ // File: functions/getOnlyText.d.ts
2149
+ /** Keeps letters, numbers, spaces. */
2150
+ export declare function getOnlyText(text: any): string;
2151
+ // File: functions/getRandomText.d.ts
2152
+ /** Generates random text. */
2153
+ export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
2154
+ // File: functions/getRequestString.d.ts
2155
+ /** Formats request as key-value string. */
2156
+ export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
2157
+ // File: functions/getSearchExp.d.ts
2158
+ /** RegExp for "contains all words" search. */
2159
+ export declare function getSearchExp(search: string, limit?: number): RegExp;
2160
+ // File: functions/getSeparatingSearchExp.d.ts
2161
+ /** RegExp for search by space-separated words. */
2162
+ export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
2163
+ // File: functions/getStepPercent.d.ts
2164
+ /** Step unit in percent. */
2165
+ export declare function getStepPercent(min: number | undefined, max: number): number;
2166
+ // File: functions/getStepValue.d.ts
2167
+ /** Step unit value. */
2168
+ export declare function getStepValue(min: number | undefined, max: number): number;
2169
+ // File: functions/goScroll.d.ts
2170
+ /** Quick scroll to element. */
2171
+ export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
2172
+ // File: functions/goScrollSmooth.d.ts
2173
+ /** Smooth scroll to element. */
2174
+ export declare function goScrollSmooth<E extends HTMLElement>(element: E, options?: ScrollIntoViewOptions, shift?: number): void;
2175
+ // File: functions/goScrollTo.d.ts
2176
+ /** Scrolls container to target. */
2177
+ export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
2178
+ // File: functions/handleShare.d.ts
2179
+ /** Web Share API wrapper. */
2180
+ export declare function handleShare(data: ShareData): Promise<boolean>;
2181
+ // File: functions/inArray.d.ts
2182
+ /** Checks value in array. */
2183
+ export declare function inArray<T>(array: T[], value: T): boolean;
2184
+ // File: functions/initScrollbarOffset.d.ts
2185
+ /** Init scroll control data. */
2186
+ export declare function initScrollbarOffset(): Promise<void>;
2187
+ // File: functions/intersectKey.d.ts
2188
+ /** Intersection of arrays using keys. */
2189
+ export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
2190
+ // File: functions/isApiSuccess.d.ts
2191
+ /** Checks API success flag. */
2192
+ export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
2193
+ // File: functions/isArray.d.ts
2194
+ /** Checks if array. */
2195
+ export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
2196
+ // File: functions/isDifferent.d.ts
2197
+ /** Checks object value difference. */
2198
+ export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
2199
+ // File: functions/isDomData.d.ts
2200
+ /** Checks for data URL environment. */
2201
+ export declare function isDomData(): boolean;
2202
+ // File: functions/isDomRuntime.d.ts
2203
+ /** Checks if window available. */
2204
+ export declare function isDomRuntime(): boolean;
2205
+ // File: functions/isElementVisible.d.ts
2206
+ /** Checks CSS visibility and DOM presence. */
2207
+ export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
2208
+ // File: functions/isEnter.d.ts
2209
+ /** Checks Enter/Space key. */
2210
+ export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
2211
+ // File: functions/isFilled.d.ts
2212
+ /** Checks if field filled. */
2213
+ export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
2214
+ // File: functions/isFloat.d.ts
2215
+ /** Checks if numeric/float. */
2216
+ export declare function isFloat(value: any): boolean;
2217
+ // File: functions/isFunction.d.ts
2218
+ /** Checks if function. */
2219
+ export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
2220
+ // File: functions/isInDom.d.ts
2221
+ /** Checks DOM presence. */
2222
+ export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
2223
+ // File: functions/isInput.d.ts
2224
+ /** Checks if input/editable. */
2225
+ export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
2226
+ // File: functions/isIntegerBetween.d.ts
2227
+ /** Checks if between integers. */
2228
+ export declare function isIntegerBetween(value: number, between: number): boolean;
2229
+ // File: functions/isNull.d.ts
2230
+ /** Checks null/undefined. */
2231
+ export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
2232
+ // File: functions/isNumber.d.ts
2233
+ /** Checks if number. */
2234
+ export declare function isNumber(value: any): boolean;
2235
+ // File: functions/isObject.d.ts
2236
+ /** Checks if object. */
2237
+ export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
2238
+ // File: functions/isObjectNotArray.d.ts
2239
+ /** Checks if object and not array. */
2240
+ export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
2241
+ // File: functions/isOnLine.d.ts
2242
+ /** Checks online status. */
2243
+ export declare function isOnLine(): boolean;
2244
+ // File: functions/isSelected.d.ts
2245
+ /** Checks value in selected array/string. */
2246
+ export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;
2247
+ // File: functions/isSelectedByList.d.ts
2248
+ /** Checks selection for entire list. */
2249
+ export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
2250
+ // File: functions/isShare.d.ts
2251
+ /** Checks Web Share API support. */
2252
+ export declare function isShare(): boolean;
2253
+ // File: functions/isString.d.ts
2254
+ /** Checks if string. */
2255
+ export declare function isString<T>(value: T): value is Extract<T, string>;
2256
+ // File: functions/isWindow.d.ts
2257
+ /** Checks if Window. */
2258
+ export declare function isWindow<E>(element: E): element is Extract<E, Window>;
2259
+ // File: functions/random.d.ts
2260
+ /** Random integer generator. */
2261
+ export declare function random(min: number, max: number): number;
2262
+ // File: functions/removeCommonPrefix.d.ts
2263
+ /** Removes prefix from string. */
2264
+ export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
2265
+ // File: functions/replaceComponentName.d.ts
2266
+ /** Replaces component name in text. */
2267
+ export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
2268
+ // File: functions/replaceRecursive.d.ts
2269
+ /** Recursive merge of arrays/objects. */
2270
+ export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
2271
+ // File: functions/replaceTemplate.d.ts
2272
+ /** Data-based template replacement. */
2273
+ export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
2274
+ // File: functions/resizeImageByMax.d.ts
2275
+ type ResizeImageByMaxType = 'auto' | 'width' | 'height';
2276
+ /** Resizes image within max constraint. */
2277
+ export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: ResizeImageByMaxType, typeData?: string): string | undefined;
2278
+ // File: functions/secondToTime.d.ts
2279
+ /** Seconds to time string. */
2280
+ export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
2281
+ // File: functions/setElementItem.d.ts
2282
+ /** Modifies element property. */
2283
+ export declare function setElementItem<E extends ElementOrWindow, K extends keyof E, V extends E[K] = E[K]>(element: ElementOrString<E>, index: K, value: V | Record<string, V>): E | undefined;
2284
+ // File: functions/setValues.d.ts
2285
+ /** Modifies data by type and settings (multiple, maxlength). */
2286
+ export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
2287
+ multiple?: boolean | undefined;
2288
+ maxlength?: number | undefined;
2289
+ alwaysChange?: boolean | undefined;
2290
+ notEmpty?: boolean | undefined;
2291
+ }): T | T[] | undefined;
2292
+ // File: functions/sleep.d.ts
2293
+ /** ms delay promise. */
2294
+ export declare function sleep(ms: number): Promise<void>;
2295
+ // File: functions/splice.d.ts
2296
+ /** enumerable property copy into target object. */
2297
+ export declare function splice<I>(array: ObjectItem<I>, replacement?: ObjectItem<I> | I, indexStart?: string): ObjectItem<I>;
2298
+ // File: functions/strFill.d.ts
2299
+ /** String of length count filled with value. */
2300
+ export declare function strFill(value: string, count: number): string;
2301
+ // File: functions/strSplit.d.ts
2302
+ /** Splitting with limit. Last element contains remainder. */
2303
+ export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
2304
+ // File: functions/toArray.d.ts
2305
+ /** Wraps in array if not array. */
2306
+ export declare function toArray<T>(value: T): T extends any[] ? T : [T];
2307
+ // File: functions/toCamelCase.d.ts
2308
+ /** Camel case (upper). */
2309
+ export declare function toCamelCase(value: string): string;
2310
+ // File: functions/toCamelCaseFirst.d.ts
2311
+ /** Camel case with first letter upper. */
2312
+ export declare function toCamelCaseFirst(value: string): string;
2313
+ // File: functions/toDate.d.ts
2314
+ /** Date object conversion. */
2315
+ export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
2316
+ // File: functions/toKebabCase.d.ts
2317
+ /** Kebab-case conversion. */
2318
+ export declare function toKebabCase(value: string): string;
2319
+ // File: functions/toNumber.d.ts
2320
+ /**
2321
+ * String/number to float. Handles separators.
2322
+ * @example toNumber("1 234,56") // 1234.56
2323
+ */
2324
+ export declare function toNumber(value?: NumberOrString): number;
2325
+ // File: functions/toNumberByMax.d.ts
2326
+ /** Number conversion with max limit and formatting. */
2327
+ export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
2328
+ // File: functions/toPercent.d.ts
2329
+ /** Percentage conversion. */
2330
+ export declare function toPercent(maxValue: number, value: number): number;
2331
+ // File: functions/toPercentBy100.d.ts
2332
+ /** Percentage * 100 conversion. */
2333
+ export declare function toPercentBy100(maxValue: number, value: number): number;
2334
+ // File: functions/toString.d.ts
2335
+ /** String conversion. Empty if null/undefined. */
2336
+ export declare function toString<T>(value: T): string;
2337
+ // File: functions/transformation.d.ts
2338
+ /** Transforms string to inferred type (null, boolean, object, function). */
2339
+ export declare function transformation(value: any, isFunction?: boolean): any;
2340
+ // File: functions/uint8ArrayToBase64.d.ts
2341
+ /** Uint8Array to base64 string. */
1655
2342
  export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
1656
-
1657
- export declare type Undefined = undefined | null;
1658
-
1659
- /** Remove array duplicates. */
2343
+ // File: functions/uniqueArray.d.ts
2344
+ /** Removes duplicates. */
1660
2345
  export declare function uniqueArray<T>(value: T[]): T[];
1661
-
1662
- /** Write text to clipboard. */
1663
- export declare function writeClipboardData(text: string): Promise<void>;
2346
+ // File: functions/writeClipboardData.d.ts
2347
+ /** Writes string to buffer. */
2348
+ export declare function writeClipboardData(text: string): Promise<void>;
2349
+ // File: types/apiTypes.d.ts
2350
+ export declare enum ApiMethodItem {
2351
+ delete = "DELETE",
2352
+ get = "GET",
2353
+ post = "POST",
2354
+ put = "PUT",
2355
+ patch = "PATCH"
2356
+ }
2357
+ export type ApiCacheItem<T = any> = {
2358
+ value: T;
2359
+ age?: number;
2360
+ cacheAge: number;
2361
+ };
2362
+ export type ApiCacheList = Record<string, ApiCacheItem>;
2363
+ export type ApiConfig = {
2364
+ urlRoot?: string;
2365
+ origin?: string;
2366
+ headers?: Record<string, string>;
2367
+ requestDefault?: Record<string, any>;
2368
+ preparation?: (apiFetch: ApiFetch) => Promise<void>;
2369
+ end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
2370
+ timeout?: number;
2371
+ };
2372
+ export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
2373
+ export type ApiDataValidation = {
2374
+ status?: ApiStatusType;
2375
+ code?: string | number;
2376
+ message?: string;
2377
+ };
2378
+ export type ApiDataItem<T = any> = T & ApiDataValidation & {
2379
+ data?: T;
2380
+ success?: boolean;
2381
+ statusObject?: ApiStatusItem;
2382
+ };
2383
+ export type ApiDefaultValue = Record<string, any>;
2384
+ export type ApiFetch = {
2385
+ api?: boolean;
2386
+ path?: string;
2387
+ pathFull?: string;
2388
+ method?: ApiMethod;
2389
+ request?: FormData | Record<string, any> | string;
2390
+ auth?: boolean;
2391
+ headers?: Record<string, string> | null;
2392
+ type?: string;
2393
+ toData?: boolean;
2394
+ global?: boolean;
2395
+ devMode?: boolean;
2396
+ hideError?: boolean;
2397
+ hideLoading?: boolean;
2398
+ retry?: number;
2399
+ retryDelay?: number;
2400
+ queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
2401
+ globalPreparation?: boolean;
2402
+ globalEnd?: boolean;
2403
+ init?: RequestInit;
2404
+ timeout?: number;
2405
+ controller?: AbortController;
2406
+ cache?: number;
2407
+ enableClientCache?: boolean;
2408
+ cacheId?: number | string;
2409
+ endResetLimit?: number;
2410
+ };
2411
+ export type ApiHydrationItem = {
2412
+ path: string;
2413
+ method: ApiMethod;
2414
+ request?: ApiFetch['request'];
2415
+ response: any;
2416
+ };
2417
+ export type ApiHydrationList = ApiHydrationItem[];
2418
+ export type ApiMethod = string | ApiMethodItem;
2419
+ export type ApiPreparationEnd = {
2420
+ reset?: boolean;
2421
+ data?: any;
2422
+ };
2423
+ export type ApiResponseItem = {
2424
+ path: string | RegExp;
2425
+ method: ApiMethod;
2426
+ request?: ApiFetch['request'] | '*any';
2427
+ response: any | ((request?: ApiFetch['request']) => any);
2428
+ disable?: any;
2429
+ isForGlobal?: boolean;
2430
+ lag?: any;
2431
+ };
2432
+ export type ApiStatusItem = {
2433
+ status?: number;
2434
+ statusText?: string;
2435
+ error?: string;
2436
+ lastResponse?: any;
2437
+ lastStatus?: ApiStatusType;
2438
+ lastCode?: string;
2439
+ lastMessage?: string;
2440
+ };
2441
+ export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
2442
+ // File: types/basicTypes.d.ts
2443
+ export type Undefined = undefined | null;
2444
+ export type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'null' | '0' | 'false' | '[]';
2445
+ export type NumberOrString = number | string;
2446
+ export type NumberOrStringOrBoolean = number | string | boolean;
2447
+ export type NumberOrStringOrDate = NumberOrString | Date;
2448
+ export type NormalOrArray<T = NumberOrString> = T | T[];
2449
+ export type NormalOrPromise<T> = T | Promise<T>;
2450
+ export type ObjectItem<T = any> = Record<string, T>;
2451
+ export type ObjectOrArray<T = any> = T[] | ObjectItem<T>;
2452
+ export type ArrayToItem<T> = T extends any[] ? T[number] : T;
2453
+ export type FunctionReturn<R = any> = () => R;
2454
+ export type FunctionVoid = () => void;
2455
+ export type FunctionArgs<T, R> = (...args: T[]) => R;
2456
+ export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
2457
+ export type ItemList<T = any> = Record<string, T>;
2458
+ export type Item<V> = {
2459
+ index: string;
2460
+ value: V;
2461
+ };
2462
+ export type ItemValue<V> = {
2463
+ label: string;
2464
+ value: V;
2465
+ };
2466
+ export type ItemName<V> = {
2467
+ name: string | number;
2468
+ value: V;
2469
+ };
2470
+ export type ElementOrWindow = HTMLElement | Window;
2471
+ export type ElementOrString<E extends ElementOrWindow> = E | string;
2472
+ export type EventOptions = AddEventListenerOptions | boolean | undefined;
2473
+ export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
2474
+ export type EventActivityItem<E extends ElementOrWindow> = {
2475
+ element: E | undefined;
2476
+ type: string;
2477
+ listener?: (event: any | Event) => void;
2478
+ observer?: ResizeObserver;
2479
+ };
2480
+ export type ImageCoordinator = {
2481
+ x: number;
2482
+ y: number;
2483
+ };
2484
+ // File: types/errorCenter.d.ts
2485
+ export type ErrorCenterGroup = string | undefined;
2486
+ export type ErrorCenterCauseItem = {
2487
+ group?: ErrorCenterGroup;
2488
+ code: string;
2489
+ priority?: number;
2490
+ label?: string;
2491
+ message?: string;
2492
+ details?: any;
2493
+ };
2494
+ export type ErrorCenterCauseList = ErrorCenterCauseItem[];
2495
+ export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
2496
+ export type ErrorCenterHandlerItem = {
2497
+ group?: ErrorCenterGroup;
2498
+ handlers: ErrorCenterHandlerCallback[];
2499
+ };
2500
+ export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
2501
+ // File: types/formattersTypes.d.ts
2502
+ export declare enum FormattersType {
2503
+ currency = "currency",
2504
+ date = "date",
2505
+ name = "name",
2506
+ number = "number",
2507
+ plural = "plural",
2508
+ unit = "unit"
2509
+ }
2510
+ export type FormattersOptionsCurrency = {
2511
+ currencyPropName?: string;
2512
+ options?: string | Intl.NumberFormatOptions;
2513
+ numberOnly?: boolean;
2514
+ };
2515
+ export type FormattersOptionsDate = {
2516
+ type?: GeoDate;
2517
+ options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions;
2518
+ hour24?: boolean;
2519
+ };
2520
+ export type FormattersOptionsName = {
2521
+ lastPropName?: string;
2522
+ firstPropName?: string;
2523
+ surname?: string;
2524
+ short?: boolean;
2525
+ };
2526
+ export type FormattersOptionsNumber = {
2527
+ options?: Intl.NumberFormatOptions;
2528
+ };
2529
+ export type FormattersOptionsPlural = {
2530
+ words: string;
2531
+ options?: Intl.PluralRulesOptions;
2532
+ optionsNumber?: Intl.NumberFormatOptions;
2533
+ };
2534
+ export type FormattersOptionsUnit = {
2535
+ unit: string | Intl.NumberFormatOptions;
2536
+ };
2537
+ export type FormattersOptionsInformation<Type extends FormattersType> = Type extends FormattersType.currency ? FormattersOptionsCurrency : Type extends FormattersType.date ? FormattersOptionsDate : Type extends FormattersType.name ? FormattersOptionsName : Type extends FormattersType.number ? FormattersOptionsNumber : Type extends FormattersType.plural ? FormattersOptionsPlural : Type extends FormattersType.unit ? FormattersOptionsUnit : Record<string, any>;
2538
+ export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
2539
+ type?: Type;
2540
+ transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
2541
+ options?: FormattersOptionsInformation<Type>;
2542
+ };
2543
+ export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
2544
+ export type FormattersListItem = Record<string, any>;
2545
+ export type FormattersList<Item extends FormattersListItem> = Item[];
2546
+ export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
2547
+ export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
2548
+ export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
2549
+ export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = {
2550
+ [K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string;
2551
+ };
2552
+ export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
2553
+ export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
2554
+ export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
2555
+ export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
2556
+ export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
2557
+ export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = List extends any[] ? FormattersListColumns<Item, Options> : (FormattersListColumnItem<Item, Options> | undefined);
2558
+ // File: types/geoTypes.d.ts
2559
+ export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
2560
+ export type GeoFirstDay = 1 | 6 | 0;
2561
+ export type GeoHours = '12' | '24';
2562
+ export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
2563
+ export interface GeoItem {
2564
+ country: string;
2565
+ countryAlternative?: string[];
2566
+ language: string;
2567
+ languageAlternative?: string[];
2568
+ firstDay?: string | null;
2569
+ zone?: string | null;
2570
+ phoneCode?: string;
2571
+ phoneWithin?: string;
2572
+ phoneMask?: string | string[];
2573
+ nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
2574
+ }
2575
+ export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
2576
+ standard: string;
2577
+ firstDay: string;
2578
+ }
2579
+ export interface GeoFlagItem {
2580
+ language: string;
2581
+ country: string;
2582
+ standard: string;
2583
+ icon?: string;
2584
+ label: string;
2585
+ value: string;
2586
+ }
2587
+ export interface GeoFlagNational extends GeoFlagItem {
2588
+ description: string;
2589
+ nationalLanguage: string;
2590
+ nationalCountry: string;
2591
+ }
2592
+ export interface GeoPhoneValue {
2593
+ phone: number;
2594
+ within: number;
2595
+ mask: string[];
2596
+ value: string;
2597
+ }
2598
+ export interface GeoPhoneMap {
2599
+ items: GeoPhoneValue[];
2600
+ info: GeoPhoneValue | undefined;
2601
+ value: string | undefined;
2602
+ mask: string[];
2603
+ maskFull: string[];
2604
+ next: Record<string, GeoPhoneMap>;
2605
+ }
2606
+ export interface GeoPhoneMapInfo {
2607
+ item?: GeoPhoneMap;
2608
+ phone?: string;
2609
+ }
2610
+ // File: types/metaTypes.d.ts
2611
+ export declare enum MetaTag {
2612
+ title = "title",
2613
+ description = "description",
2614
+ keywords = "keywords",
2615
+ canonical = "canonical",
2616
+ robots = "robots",
2617
+ author = "author"
2618
+ }
2619
+ export declare enum MetaRobots {
2620
+ indexFollow = "index, follow",
2621
+ noIndexFollow = "noindex, follow",
2622
+ indexNoFollow = "index, nofollow",
2623
+ noIndexNoFollow = "noindex, nofollow",
2624
+ noArchive = "noarchive",
2625
+ noSnippet = "nosnippet",
2626
+ noImageIndex = "noimageindex",
2627
+ images = "images",
2628
+ noTranslate = "notranslate",
2629
+ noPreview = "nopreview",
2630
+ textOnly = "textonly",
2631
+ noIndexSubpages = "noindex, noarchive",
2632
+ none = "none"
2633
+ }
2634
+ export declare enum MetaOpenGraphTag {
2635
+ title = "og:title",
2636
+ type = "og:type",
2637
+ url = "og:url",
2638
+ image = "og:image",
2639
+ description = "og:description",
2640
+ locale = "og:locale",
2641
+ siteName = "og:site_name",
2642
+ localeAlternate = "og:locale:alternate",
2643
+ imageUrl = "og:image:url",
2644
+ imageSecureUrl = "og:image:secure_url",
2645
+ imageType = "og:image:type",
2646
+ imageWidth = "og:image:width",
2647
+ imageHeight = "og:image:height",
2648
+ imageAlt = "og:image:alt",
2649
+ video = "og:video",
2650
+ videoUrl = "og:video:url",
2651
+ videoSecureUrl = "og:video:secure_url",
2652
+ videoType = "og:video:type",
2653
+ videoWidth = "og:video:width",
2654
+ videoHeight = "og:video:height",
2655
+ audio = "og:audio",
2656
+ audioSecureUrl = "og:audio:secure_url",
2657
+ audioType = "og:audio:type",
2658
+ articlePublishedTime = "article:published_time",
2659
+ articleModifiedTime = "article:modified_time",
2660
+ articleExpirationTime = "article:expiration_time",
2661
+ articleAuthor = "article:author",
2662
+ articleSection = "article:section",
2663
+ articleTag = "article:tag",
2664
+ bookAuthor = "book:author",
2665
+ bookIsbn = "book:isbn",
2666
+ bookReleaseDate = "book:release_date",
2667
+ bookTag = "book:tag",
2668
+ musicDuration = "music:duration",
2669
+ musicAlbum = "music:album",
2670
+ musicAlbumDisc = "music:album:disc",
2671
+ musicAlbumTrack = "music:album:track",
2672
+ musicMusician = "music:musician",
2673
+ musicSong = "music:song",
2674
+ musicSongDisc = "music:song:disc",
2675
+ musicSongTrack = "music:song:track",
2676
+ musicReleaseDate = "music:release_date",
2677
+ musicCreator = "music:creator",
2678
+ videoActor = "video:actor",
2679
+ videoActorRole = "video:actor:role",
2680
+ videoDirector = "video:director",
2681
+ videoWriter = "video:writer",
2682
+ videoDuration = "video:duration",
2683
+ videoReleaseDate = "video:release_date",
2684
+ videoTag = "video:tag",
2685
+ videoSeries = "video:series",
2686
+ profileFirstName = "profile:first_name",
2687
+ profileLastName = "profile:last_name",
2688
+ profileUsername = "profile:username",
2689
+ profileGender = "profile:gender",
2690
+ productBrand = "product:brand",
2691
+ productAvailability = "product:availability",
2692
+ productCondition = "product:condition",
2693
+ productPriceAmount = "product:price:amount",
2694
+ productPriceCurrency = "product:price:currency",
2695
+ productRetailerItemId = "product:retailer_item_id",
2696
+ productCategory = "product:category",
2697
+ productEan = "product:ean",
2698
+ productIsbn = "product:isbn",
2699
+ productMfrPartNo = "product:mfr_part_no",
2700
+ productUpc = "product:upc",
2701
+ productWeightValue = "product:weight:value",
2702
+ productWeightUnits = "product:weight:units",
2703
+ productColor = "product:color",
2704
+ productMaterial = "product:material",
2705
+ productPattern = "product:pattern",
2706
+ productAgeGroup = "product:age_group",
2707
+ productGender = "product:gender"
2708
+ }
2709
+ export declare enum MetaOpenGraphType {
2710
+ website = "website",
2711
+ article = "article",
2712
+ video = "video.other",
2713
+ videoTvShow = "video.tv_show",
2714
+ videoEpisode = "video.episode",
2715
+ videoMovie = "video.movie",
2716
+ musicAlbum = "music.album",
2717
+ musicPlaylist = "music.playlist",
2718
+ musicSong = "music.song",
2719
+ musicRadioStation = "music.radio_station",
2720
+ app = "app",
2721
+ product = "product",
2722
+ business = "business.business",
2723
+ place = "place",
2724
+ event = "event",
2725
+ profile = "profile",
2726
+ book = "book"
2727
+ }
2728
+ export declare enum MetaOpenGraphAvailability {
2729
+ inStock = "in stock",
2730
+ outOfStock = "out of stock",
2731
+ preorder = "preorder",
2732
+ backorder = "backorder",
2733
+ discontinued = "discontinued",
2734
+ pending = "pending"
2735
+ }
2736
+ export declare enum MetaOpenGraphCondition {
2737
+ new = "new",
2738
+ used = "used",
2739
+ refurbished = "refurbished"
2740
+ }
2741
+ export declare enum MetaOpenGraphAge {
2742
+ newborn = "newborn",
2743
+ infant = "infant",
2744
+ toddler = "toddler",
2745
+ kids = "kids",
2746
+ adult = "adult"
2747
+ }
2748
+ export declare enum MetaOpenGraphGender {
2749
+ female = "female",
2750
+ male = "male",
2751
+ unisex = "unisex"
2752
+ }
2753
+ export declare enum MetaTwitterTag {
2754
+ card = "twitter:card",
2755
+ site = "twitter:site",
2756
+ creator = "twitter:creator",
2757
+ url = "twitter:url",
2758
+ title = "twitter:title",
2759
+ description = "twitter:description",
2760
+ image = "twitter:image",
2761
+ imageAlt = "twitter:image:alt",
2762
+ imageSrc = "twitter:image:src",
2763
+ imageWidth = "twitter:image:width",
2764
+ imageHeight = "twitter:image:height",
2765
+ label1 = "twitter:label1",
2766
+ data1 = "twitter:data1",
2767
+ label2 = "twitter:label2",
2768
+ data2 = "twitter:data2",
2769
+ appNameIphone = "twitter:app:name:iphone",
2770
+ appIdIphone = "twitter:app:id:iphone",
2771
+ appUrlIphone = "twitter:app:url:iphone",
2772
+ appNameIpad = "twitter:app:name:ipad",
2773
+ appIdIpad = "twitter:app:id:ipad",
2774
+ appUrlIpad = "twitter:app:url:ipad",
2775
+ appNameGooglePlay = "twitter:app:name:googleplay",
2776
+ appIdGooglePlay = "twitter:app:id:googleplay",
2777
+ appUrlGooglePlay = "twitter:app:url:googleplay",
2778
+ player = "twitter:player",
2779
+ playerWidth = "twitter:player:width",
2780
+ playerHeight = "twitter:player:height",
2781
+ playerStream = "twitter:player:stream",
2782
+ playerStreamContentType = "twitter:player:stream:content_type"
2783
+ }
2784
+ export declare enum MetaTwitterCard {
2785
+ summary = "summary",
2786
+ summaryLargeImage = "summary_large_image",
2787
+ app = "app",
2788
+ player = "player",
2789
+ product = "product",
2790
+ gallery = "gallery",
2791
+ photo = "photo",
2792
+ leadGeneration = "lead_generation",
2793
+ audio = "audio",
2794
+ poll = "poll"
2795
+ }
2796
+ // File: types/searchTypes.d.ts
2797
+ export type SearchItem = Record<string, any>;
2798
+ export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
2799
+ export type SearchColumn<T extends SearchItem> = {
2800
+ [K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K;
2801
+ }[keyof T];
2802
+ export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
2803
+ export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
2804
+ export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
2805
+ export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
2806
+ [K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
2807
+ } & {
2808
+ searchActive?: boolean;
2809
+ };
2810
+ export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
2811
+ export type SearchListValue<T extends SearchItem> = T[] | undefined;
2812
+ export type SearchOptions = {
2813
+ limit?: number;
2814
+ returnEverything?: boolean;
2815
+ delay?: number;
2816
+ findExactMatch?: boolean;
2817
+ classSearchName?: string;
2818
+ };
2819
+ export type SearchCacheItem<T extends SearchItem> = {
2820
+ item: T;
2821
+ value: string;
2822
+ };
2823
+ export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
2824
+ export type HighlightMatchItem = {
2825
+ text: string;
2826
+ isMatch: boolean;
2827
+ };
2828
+ // File: types/translateTypes.d.ts
2829
+ export type TranslateConfig = {
2830
+ url?: string;
2831
+ propsName?: string;
2832
+ readApi?: boolean;
2833
+ };
2834
+ export type TranslateCode = string | string[];
2835
+ export type TranslateList<T extends TranslateCode[]> = {
2836
+ [K in T[number] as K extends readonly string[] ? K[0] : K]: string;
2837
+ };
2838
+ export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
2839
+ export type TranslateDataFileList = Record<string, string>;
2840
+ export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
2841
+ export type TranslateDataFile = Record<string, TranslateDataFileItem>;
2842
+ export declare const TRANSLATE_GLOBAL_PREFIX = "global";
2843
+ export declare const TRANSLATE_TIME_OUT = 160;
2844
+ // File: media/errorCauseList.d.ts
2845
+ export declare const errorCauseList: ErrorCenterCauseList;