@dxtmisha/functional-basic 1.2.4 → 1.2.6

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.
package/ai-types.txt CHANGED
@@ -6,309 +6,162 @@ The following is the content of "exports" from package.json:
6
6
  {
7
7
  ".": {
8
8
  "import": "./dist/library.js",
9
- "types": "./dist/library.d.ts"
10
- },
11
- "./ai-types": "./ai-types.txt",
12
- "./style": "./dist/style.css",
13
- "./types/*": "./dist/*",
14
- "./types/**/*.d.ts": "./dist/**/*.d.ts"
9
+ "types": "./dist/src/library.d.ts"
10
+ }
15
11
  }
16
12
 
17
- // File: classes/Api.d.ts
18
- /**
19
- * Class for working with HTTP requests.
20
- */
13
+ // File: src/classes/Api.d.ts
14
+ /** HTTP request handler. */
21
15
  export declare class Api {
22
- /**
23
- * Checks if server is running on localhost.
24
- * @returns true if local
25
- */
16
+ /** Check if running on localhost. */
26
17
  static isLocalhost(): boolean;
27
- /**
28
- * Returns ApiInstance singleton.
29
- * @returns ApiInstance singleton
30
- */
18
+ /** Get ApiInstance singleton. */
31
19
  static getItem(): ApiInstance;
32
- /**
33
- * Returns status of the last request.
34
- * @returns ApiStatus instance
35
- */
20
+ /** Get status of last request. */
36
21
  static getStatus(): ApiStatus;
37
- /**
38
- * Gets response handler.
39
- * @returns ApiResponse instance
40
- */
22
+ /** Get response handler. */
41
23
  static getResponse(): ApiResponse;
42
- /**
43
- * Gets hydration handler.
44
- * @returns ApiHydration instance
45
- */
24
+ /** Get hydration handler. */
46
25
  static getHydration(): ApiHydration;
47
- /**
48
- * Returns hydration data script for client.
49
- * @returns HTML script string
50
- */
26
+ /** Get hydration data script string. */
51
27
  static getHydrationScript(): string;
52
- /**
53
- * Gets base origin URL with API path.
54
- * @returns final base URL
55
- */
28
+ /** Get base URL with API path. */
56
29
  static getOrigin(): string;
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
- */
30
+ /** Get full script path. */
63
31
  static getUrl(path: string, api?: boolean): string;
64
- /**
65
- * Gets data for request body.
66
- * @param request request data
67
- * @param method HTTP method
68
- * @returns body data or FormData
69
- */
32
+ /** Get request body data. */
70
33
  static getBody(request?: ApiFetch['request'], method?: ApiMethodItem): string | FormData | undefined;
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
- */
34
+ /** Get GET request query string. */
78
35
  static getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethodItem): string;
79
- /**
80
- * Modifies default header data.
81
- * @param headers default headers
82
- */
83
- static setHeaders(headers: Record<string, string>): void;
84
- /**
85
- * Modifies default request data.
86
- * @param request default data
87
- */
88
- static setRequestDefault(request: Record<string, any>): void;
89
- /**
90
- * Changes base path to script.
91
- * @param url script path
92
- */
36
+ /** Set default headers. */
37
+ static setHeaders(headers: ApiHeadersValue): void;
38
+ /** Set default request data. */
39
+ static setRequestDefault(request: ApiDefaultValue): void;
40
+ /** Set base script path. */
93
41
  static setUrl(url: string): void;
94
- /**
95
- * Modifies function called before request.
96
- * @param callback pre-request function
97
- */
42
+ /** Set pre-request callback. */
98
43
  static setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): void;
99
- /**
100
- * Modifies function called after request.
101
- * @param callback post-request function
102
- */
44
+ /** Set post-request callback. */
103
45
  static setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): void;
104
- /**
105
- * Changes request timeout.
106
- * @param timeout ms
107
- */
46
+ /** Set request timeout (ms). */
108
47
  static setTimeout(timeout: number): void;
109
- /**
110
- * Changes origin for base URL.
111
- * @param origin protocol and domain
112
- */
48
+ /** Set base URL origin. */
113
49
  static setOrigin(origin: string): void;
114
- /**
115
- * Sets multiple API configuration options.
116
- * @param config config object
117
- */
50
+ /** Set API config. */
118
51
  static setConfig(config?: ApiConfig): void;
119
- /**
120
- * Executes request with path or configuration.
121
- * @param pathRequest path or config
122
- * @returns Promise with response
123
- */
52
+ /** Execute request. */
124
53
  static request<T>(pathRequest: string | ApiFetch): Promise<T>;
125
- /**
126
- * Sends GET request.
127
- * @param request fetch config
128
- * @returns Promise with response
129
- */
54
+ /** GET request. */
130
55
  static get<T>(request: ApiFetch): Promise<T>;
131
- /**
132
- * Sends POST request.
133
- * @param request fetch config
134
- * @returns Promise with response
135
- */
56
+ /** POST request. */
136
57
  static post<T>(request: ApiFetch): Promise<T>;
137
- /**
138
- * Sends PUT request.
139
- * @param request fetch config
140
- * @returns Promise with response
141
- */
58
+ /** PUT request. */
142
59
  static put<T>(request: ApiFetch): Promise<T>;
143
- /**
144
- * Sends PATCH request.
145
- * @param request fetch config
146
- * @returns Promise with response
147
- */
60
+ /** PATCH request. */
148
61
  static patch<T>(request: ApiFetch): Promise<T>;
149
- /**
150
- * Sends DELETE request.
151
- * @param request fetch config
152
- * @returns Promise with response
153
- */
62
+ /** DELETE request. */
154
63
  static delete<T>(request: ApiFetch): Promise<T>;
155
64
  }
156
- // File: classes/ApiCache.d.ts
157
- /**
158
- * Class for caching API responses.
159
- */
65
+ // File: src/classes/ApiCache.d.ts
66
+ /** API response caching. */
160
67
  export declare class ApiCache {
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
- */
68
+ /** Initialize storage. */
168
69
  static init(getListener: (key: string) => Promise<ApiCacheItem | undefined>, setListener: (key: string, value: ApiCacheItem) => Promise<boolean>, removeListener: (key: string) => Promise<boolean>, cacheStepAgeClearOld?: number): void;
169
- /**
170
- * Resets cache and listeners.
171
- */
70
+ /** Clear cache and listeners. */
172
71
  static reset(): void;
173
- /**
174
- * Gets data from cache.
175
- * @param key cache key
176
- * @returns data or undefined
177
- */
72
+ /** Get cached data. */
178
73
  static get<T>(key: string): Promise<T | undefined>;
179
- /**
180
- * Gets data from cache using fetch options.
181
- * @param fetch fetch options
182
- * @returns data or undefined
183
- */
74
+ /** Get cached data by fetch options. */
184
75
  static getByFetch<T>(fetch: ApiFetch): Promise<T | undefined>;
185
- /**
186
- * Saves data to cache.
187
- * @param key cache key
188
- * @param value data
189
- * @param age age in seconds
190
- */
76
+ /** Save data to cache. */
191
77
  static set<T>(key: string, value: T, age?: number): Promise<void>;
192
- /**
193
- * Saves data to cache using fetch options.
194
- * @param fetch fetch options
195
- * @param value data
196
- */
78
+ /** Save data by fetch options. */
197
79
  static setByFetch<T>(fetch: ApiFetch, value: T): Promise<void>;
198
- /**
199
- * Removes data from cache.
200
- * @param key cache key
201
- */
80
+ /** Remove cached data. */
202
81
  static remove(key: string): Promise<void>;
203
82
  }
204
- // File: classes/ApiDataReturn.d.ts
205
- /**
206
- * Class for handling data returned from an API request.
207
- */
83
+ // File: src/classes/ApiDataReturn.d.ts
84
+ /** API response data processor. */
208
85
  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
- */
215
- constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd);
216
- /**
217
- * Initializes class by reading response.
218
- */
86
+ constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
87
+ /** Read data from response. */
219
88
  init(): Promise<this>;
220
- /**
221
- * Returns processed data.
222
- */
89
+ /** Get processed data. */
223
90
  get(): ApiData<T>;
224
- /**
225
- * Returns processed data with status object.
226
- * @param status API status instance
227
- */
91
+ /** Get processed data and status. */
228
92
  getAndStatus(status: ApiStatus): ApiData<T>;
229
- /**
230
- * Returns raw data received from API.
231
- */
93
+ /** Get raw API data. */
232
94
  getData(): ApiData<T> | undefined;
233
95
  }
234
- // File: classes/ApiDefault.d.ts
235
- /**
236
- * Class for working with default API request data.
237
- */
96
+ // File: src/classes/ApiDefault.d.ts
97
+ /** Default API request data handler. */
238
98
  export declare class ApiDefault {
239
- /**
240
- * Checks if default data exists.
241
- * @returns true if exists
242
- */
99
+ /** Check if default data exists. */
243
100
  is(): boolean;
244
- /**
245
- * Gets default request data.
246
- * @returns data or undefined
247
- */
248
- get(): ApiDefaultValue | undefined;
249
- /**
250
- * Adds default data to request.
251
- * @param request request data
252
- * @returns merged data
253
- */
101
+ /** Get default request data. */
102
+ get(): Record<string, any> | undefined;
103
+ /** Merge default data into request. */
254
104
  request(request: ApiFetch['request']): ApiFetch['request'];
255
- /**
256
- * Sets default request data.
257
- * @param request default data
258
- * @returns this
259
- */
105
+ /** Set default request data. */
260
106
  set(request: ApiDefaultValue): this;
261
107
  }
262
- // File: classes/ApiHeaders.d.ts
263
- /**
264
- * Class for managing HTTP request headers.
265
- */
108
+ // File: src/classes/ApiError.d.ts
109
+ /** API error storage and creation utility. */
110
+ export declare class ApiError {
111
+ /** Get error storage instance. */
112
+ static getStorage(): ApiErrorStorage;
113
+ /** Add errors to storage. */
114
+ static add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): void;
115
+ /** Match response to error criteria. */
116
+ static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
117
+ }
118
+ // File: src/classes/ApiErrorItem.d.ts
119
+ /** API error response data extractor. */
120
+ export declare class ApiErrorItem {
121
+ constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
122
+ /** Get request HTTP method. */
123
+ getMethod(): ApiMethodItem;
124
+ /** Get raw response. */
125
+ getResponse(): Response;
126
+ /** Get error storage item. */
127
+ getError(): ApiErrorStorageItem;
128
+ /** Get error code. */
129
+ getCode(): string | undefined;
130
+ /** Get error message. */
131
+ getMessage(): string | undefined;
132
+ /** Get HTTP status code. */
133
+ getStatus(): number;
134
+ }
135
+ // File: src/classes/ApiErrorStorage.d.ts
136
+ /** Manager for API error states. */
137
+ export declare class ApiErrorStorage {
138
+ /** Find matching error in storage. */
139
+ find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
140
+ /** Add error criteria. */
141
+ add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): this;
142
+ }
143
+ // File: src/classes/ApiHeaders.d.ts
144
+ /** HTTP request headers manager. */
266
145
  export declare class ApiHeaders {
267
- /**
268
- * Gets headers for request.
269
- * @param value header list
270
- * @param type Content-Type value
271
- * @returns merged headers
272
- */
146
+ /** Get request headers. */
273
147
  get(value?: Record<string, string> | null, type?: string | undefined | null): Record<string, string> | undefined;
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
- */
148
+ /** Get headers by request type. */
281
149
  getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
282
- /**
283
- * Sets default headers.
284
- * @param headers default headers
285
- * @returns this
286
- */
287
- set(headers: Record<string, string>): this;
288
- }
289
- // File: classes/ApiHydration.d.ts
290
- /**
291
- * Class for collecting API data for SSR hydration.
292
- */
150
+ /** Set default headers. */
151
+ set(headers: ApiHeadersValue): this;
152
+ }
153
+ // File: src/classes/ApiHydration.d.ts
154
+ /** SSR hydration data collector. */
293
155
  export declare class ApiHydration {
294
- /**
295
- * Initializes response with hydration data.
296
- * @param response API response
297
- */
156
+ /** Initialize response with hydration. */
298
157
  initResponse(response: ApiResponse): void;
299
- /**
300
- * Saves response for client-side hydration.
301
- * @param apiFetch API config
302
- * @param response API response data
303
- */
158
+ /** Save response for client. */
304
159
  toClient<T>(apiFetch: ApiFetch, response: T): void;
305
- /**
306
- * Returns hydration data string.
307
- */
160
+ /** Get HTML script representation. */
308
161
  toString(): string;
309
162
  }
310
- // File: classes/ApiInstance.d.ts
311
- /** Options for the API instance */
163
+ // File: src/classes/ApiInstance.d.ts
164
+ /** core API instance for options. */
312
165
  export type ApiInstanceOptions = {
313
166
  headersClass?: typeof ApiHeaders;
314
167
  requestDefaultClass?: typeof ApiDefault;
@@ -319,499 +172,194 @@ export type ApiInstanceOptions = {
319
172
  errorCenterClass?: ErrorCenterInstance;
320
173
  hydrationClass?: typeof ApiHydration;
321
174
  };
322
- /**
323
- * Core class for managing HTTP requests using Fetch.
324
- */
175
+ /** Core HTTP request manager using Fetch API. */
325
176
  export declare class ApiInstance {
326
- /**
327
- * Constructor
328
- * @param url base script path
329
- * @param options instance options
330
- */
331
177
  constructor(url?: string, options?: ApiInstanceOptions);
332
- /**
333
- * Checks if server is localhost.
334
- * @returns true if local
335
- */
178
+ /** Check if on localhost. */
336
179
  isLocalhost(): boolean;
337
- /**
338
- * Returns last request status.
339
- * @returns ApiStatus instance
340
- */
180
+ /** Get request status. */
341
181
  getStatus(): ApiStatus;
342
- /**
343
- * Gets response handler.
344
- * @returns ApiResponse instance
345
- */
182
+ /** Get response handler. */
346
183
  getResponse(): ApiResponse;
347
- /**
348
- * Gets hydration handler.
349
- * @returns ApiHydration instance
350
- */
184
+ /** Get hydration handler. */
351
185
  getHydration(): ApiHydration;
352
- /**
353
- * Gets base URL with API path.
354
- * @returns final base URL
355
- */
186
+ /** Get origin with API path. */
356
187
  getOrigin(): string;
357
- /**
358
- * Gets full script path.
359
- * @param path script path
360
- * @param api prepend base URL
361
- * @returns full URL
362
- */
188
+ /** Get full script path. */
363
189
  getUrl(path: string, api?: boolean): string;
364
- /**
365
- * Gets request body data.
366
- * @param request request data
367
- * @param method HTTP method
368
- * @returns body data or FormData
369
- */
190
+ /** Get request body. */
370
191
  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
- */
192
+ /** Get GET query string. */
378
193
  getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethod): string;
379
- /**
380
- * Returns hydration data script string.
381
- * @returns HTML script string
382
- */
194
+ /** Get script element for client hydration. */
383
195
  getHydrationScript(): string;
384
- /**
385
- * Modifies default headers.
386
- * @param headers default headers
387
- */
388
- setHeaders(headers: Record<string, string>): this;
389
- /**
390
- * Modifies default request data.
391
- * @param request default data
392
- */
393
- setRequestDefault(request: Record<string, any>): this;
394
- /**
395
- * Changes base path to script.
396
- * @param url script path
397
- */
196
+ /** Set default headers. */
197
+ setHeaders(headers: ApiHeadersValue): this;
198
+ /** Set default request data. */
199
+ setRequestDefault(request: ApiDefaultValue): this;
200
+ /** Set base path. */
398
201
  setUrl(url: string): this;
399
- /**
400
- * Sets pre-request function.
401
- * @param callback pre-request function
402
- */
202
+ /** Set pre-request callback. */
403
203
  setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): this;
404
- /**
405
- * Sets post-request function.
406
- * @param callback post-request function
407
- */
204
+ /** Set post-request callback. */
408
205
  setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
409
- /**
410
- * Changes request timeout.
411
- * @param timeout ms
412
- */
206
+ /** Set request timeout (ms). */
413
207
  setTimeout(timeout: number): this;
414
- /**
415
- * Changes origin for base URL.
416
- * @param origin protocol and domain
417
- */
208
+ /** Set URL origin. */
418
209
  setOrigin(origin: string): this;
419
- /**
420
- * Executes request.
421
- * @param pathRequest path or config
422
- * @returns Promise with response
423
- */
210
+ /** Execute request. */
424
211
  request<T>(pathRequest: string | ApiFetch): Promise<T>;
425
- /**
426
- * Sends GET request.
427
- * @param request fetch config
428
- * @returns Promise with response
429
- */
212
+ /** GET method. */
430
213
  get<T>(request: ApiFetch): Promise<T>;
431
- /**
432
- * Sends POST request.
433
- * @param request fetch config
434
- * @returns Promise with response
435
- */
214
+ /** POST method. */
436
215
  post<T>(request: ApiFetch): Promise<T>;
437
- /**
438
- * Sends PUT request.
439
- * @param request fetch config
440
- * @returns Promise with response
441
- */
216
+ /** PUT method. */
442
217
  put<T>(request: ApiFetch): Promise<T>;
443
- /**
444
- * Sends PATCH request.
445
- * @param request fetch config
446
- * @returns Promise with response
447
- */
218
+ /** PATCH method. */
448
219
  patch<T>(request: ApiFetch): Promise<T>;
449
- /**
450
- * Sends DELETE request.
451
- * @param request fetch config
452
- * @returns Promise with response
453
- */
220
+ /** DELETE method. */
454
221
  delete<T>(request: ApiFetch): Promise<T>;
455
222
  }
456
- // File: classes/ApiPreparation.d.ts
457
- /**
458
- * Class for preparing requests.
459
- */
223
+ // File: src/classes/ApiPreparation.d.ts
224
+ /** Request preparation handler. */
460
225
  export declare class ApiPreparation {
461
- /**
462
- * Pre-request preparation.
463
- * @param active is active
464
- * @param apiFetch request options
465
- */
226
+ /** Execute pre-request preparation. */
466
227
  make(active: boolean, apiFetch: ApiFetch): Promise<void>;
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
- */
228
+ /** Execute post-request analysis. */
474
229
  makeEnd(active: boolean, query: Response, apiFetch: ApiFetch): Promise<ApiPreparationEnd>;
475
- /**
476
- * Sets pre-request callback.
477
- * @param callback pre-request function
478
- * @returns this
479
- */
230
+ /** Set pre-request callback. */
480
231
  set(callback: (apiFetch: ApiFetch) => Promise<void>): this;
481
- /**
482
- * Sets post-request callback.
483
- * @param callback post-request function
484
- * @returns this
485
- */
232
+ /** Set post-request callback. */
486
233
  setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
487
234
  }
488
- // File: classes/ApiResponse.d.ts
489
- /**
490
- * Class for working with API responses.
491
- */
235
+ // File: src/classes/ApiResponse.d.ts
236
+ /** API response manager and emulator. */
492
237
  export declare class ApiResponse {
493
- /**
494
- * Constructor
495
- * @param requestDefault default request class
496
- */
497
238
  constructor(requestDefault: ApiDefault);
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
- */
239
+ /** Get cached request. */
506
240
  get(path: string | undefined, method: ApiMethod, request?: ApiFetch['request'], devMode?: boolean): ApiResponseItem | undefined;
507
- /**
508
- * Returns list of cached responses.
509
- */
241
+ /** Get cached responses list. */
510
242
  getList(): (ApiResponseItem & Record<string, any>)[];
511
- /**
512
- * Adds cached requests.
513
- * @param response caching data
514
- */
243
+ /** Add cached requests. */
515
244
  add(response: ApiResponseItem | ApiResponseItem[]): this;
516
- /**
517
- * Sets developer mode.
518
- * @param devMode is dev mode
519
- * @returns this
520
- */
245
+ /** Set dev mode. */
521
246
  setDevMode(devMode: boolean): this;
522
- /**
523
- * Executes emulator if available.
524
- * @param apiFetch fetch config
525
- * @returns response or undefined
526
- */
247
+ /** Run emulator. */
527
248
  emulator<T>(apiFetch: ApiFetch): Promise<T | undefined>;
528
- /**
529
- * Executes emulator synchronously.
530
- * @param apiFetch fetch config
531
- * @returns response or undefined
532
- */
249
+ /** Run emulator synchronously. */
533
250
  emulatorAsync<T>(apiFetch: ApiFetch): T | undefined;
534
251
  }
535
- // File: classes/ApiStatus.d.ts
536
- /**
537
- * Class for managing API request status.
538
- */
252
+ // File: src/classes/ApiStatus.d.ts
253
+ /** API request status manager. */
539
254
  export declare class ApiStatus {
540
- /**
541
- * Returns last status item.
542
- * @returns status item or undefined
543
- */
255
+ /** Get last status item. */
544
256
  get(): ApiStatusItem | undefined;
545
- /**
546
- * Returns status code.
547
- * @returns HTTP status code
548
- */
257
+ /** Get HTTP status code. */
549
258
  getStatus(): number | undefined;
550
- /**
551
- * Returns status text.
552
- * @returns status text
553
- */
259
+ /** Get status text. */
554
260
  getStatusText(): string | undefined;
555
- /**
556
- * Returns last status type.
557
- * @returns status type
558
- */
261
+ /** Get status type. */
559
262
  getStatusType(): ApiStatusType | undefined;
560
- /**
561
- * Returns execution status code.
562
- * @returns code
563
- */
263
+ /** Get response code. */
564
264
  getCode(): string | undefined;
565
- /**
566
- * Returns execution error.
567
- * @returns error message
568
- */
265
+ /** Get execution error message. */
569
266
  getError(): string | undefined;
570
- /**
571
- * Returns last request data.
572
- * @returns response data
573
- */
267
+ /** Get last request data. */
574
268
  getResponse<T>(): T | undefined;
575
- /**
576
- * Returns last request message.
577
- * @returns message string
578
- */
269
+ /** Get last request message. */
579
270
  getMessage(): string;
580
- /**
581
- * Sets status item.
582
- * @param data status data
583
- * @returns this
584
- */
271
+ /** Set status data. */
585
272
  set(data: ApiStatusItem): this;
586
- /**
587
- * Sets status code and text.
588
- * @param status code
589
- * @param statusText text
590
- * @returns this
591
- */
273
+ /** Set HTTP status and text. */
592
274
  setStatus(status?: number, statusText?: string): this;
593
- /**
594
- * Sets error message.
595
- * @param error error message
596
- * @returns this
597
- */
275
+ /** Set error message. */
598
276
  setError(error?: string): this;
599
- /**
600
- * Sets last response and extracts status/message.
601
- * @param response response data
602
- * @returns this
603
- */
277
+ /** Set last response data. */
604
278
  setLastResponse(response?: any): this;
605
- /**
606
- * Sets last status.
607
- * @param status status
608
- * @returns this
609
- */
279
+ /** Set last status type. */
610
280
  setLastStatus(status?: ApiStatusType): this;
611
- /**
612
- * Sets last execution code.
613
- * @param code code
614
- * @returns this
615
- */
281
+ /** Set last response code. */
616
282
  setLastCode(code?: string): this;
617
- /**
618
- * Sets last request message.
619
- * @param message text
620
- * @returns this
621
- */
283
+ /** Set last message. */
622
284
  setLastMessage(message?: string): this;
623
285
  }
624
- // File: classes/BroadcastMessage.d.ts
625
- /**
626
- * Class for BroadcastChannel messages.
627
- */
286
+ // File: src/classes/BroadcastMessage.d.ts
287
+ /** BroadcastChannel message handler. */
628
288
  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
- */
636
289
  constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
637
- /**
638
- * Gets BroadcastChannel instance.
639
- * @returns channel or undefined
640
- */
290
+ /** Get BroadcastChannel instance. */
641
291
  getChannel(): BroadcastChannel | undefined;
642
- /**
643
- * Sends message.
644
- * @param message data
645
- * @returns this
646
- */
292
+ /** Send message. */
647
293
  post(message: Message): this;
648
- /**
649
- * Sets message callback.
650
- * @param callback callback function
651
- * @returns this
652
- */
294
+ /** Set message callback. */
653
295
  setCallback(callback: (event: MessageEvent<Message>) => void): this;
654
- /**
655
- * Sets error callback.
656
- * @param callbackError error function
657
- * @returns this
658
- */
296
+ /** Set error callback. */
659
297
  setCallbackError(callbackError: (event: MessageEvent<Message>) => void): this;
660
- /**
661
- * Closes channel.
662
- * @returns this
663
- */
298
+ /** Close channel. */
664
299
  destroy(): this;
665
300
  }
666
- // File: classes/Cache.d.ts
667
- /**
668
- * Simple in-memory cache for computed values.
669
- * @deprecated obsolete
670
- */
301
+ // File: src/classes/Cache.d.ts
302
+ /** @deprecated In-memory cache by key. */
671
303
  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
- */
304
+ /** Get cached value or execute callback. */
679
305
  get<T>(name: string, callback: () => T, comparison?: any[]): T;
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
- */
306
+ /** Async get cached value. */
687
307
  getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
688
308
  }
689
- // File: classes/CacheItem.d.ts
690
- /**
691
- * Manages single cached value with dependency tracking.
692
- * @deprecated obsolete
693
- */
309
+ // File: src/classes/CacheItem.d.ts
310
+ /** @deprecated Single cached value with dependency tracking. */
694
311
  export declare class CacheItem<T> {
695
- /**
696
- * Creates CacheItem instance.
697
- * @param callback computation function
698
- */
699
312
  constructor(callback: () => T);
700
- /**
701
- * Returns cached value. Recomputes on dependency change.
702
- * @param comparison dependency array
703
- * @returns value
704
- */
313
+ /** Get cached value, recompute if deps change. */
705
314
  getCache(comparison: any[]): T;
706
- /**
707
- * Returns previous cached value.
708
- * @returns old value or undefined
709
- */
315
+ /** Get previous cached value. */
710
316
  getCacheOld(): T | undefined;
711
- /**
712
- * Async returns cached value.
713
- * @param comparison dependency array
714
- * @returns Promise with value
715
- */
317
+ /** Async get cached value. */
716
318
  getCacheAsync(comparison: any[]): Promise<T>;
717
319
  }
718
- // File: classes/CacheStatic.d.ts
719
- /**
720
- * Static cache using ServerStorage.
721
- * @deprecated obsolete
722
- */
320
+ // File: src/classes/CacheStatic.d.ts
321
+ /** @deprecated Static persistent cache using ServerStorage. */
723
322
  export declare class CacheStatic {
724
- /**
725
- * Returns cached value.
726
- * @param name cache key
727
- * @param callback computation function
728
- * @param comparison invalidation array
729
- * @returns value
730
- */
323
+ /** Get cached value. */
731
324
  static get<T>(name: string, callback: () => T, comparison?: any[]): T;
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
- */
325
+ /** Async get cached value. */
739
326
  static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
740
327
  }
741
- // File: classes/Cookie.d.ts
742
- /**
743
- * Class for managing cookies.
744
- */
328
+ // File: src/classes/Cookie.d.ts
329
+ /** Cookie management class. */
745
330
  export declare class Cookie<T> {
746
- /**
747
- * Returns instance by cookie name.
748
- * @param name cookie name
749
- */
750
- static getInstance<T>(name: string): Cookie<unknown>;
751
- /**
752
- * Constructor
753
- * @param name cookie name
754
- */
331
+ /** Get instance by cookie name. */
332
+ static getInstance<T>(name: string): Cookie<T>;
755
333
  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
- */
334
+ /** Get data or update if missing. */
762
335
  get(defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): string | T | undefined;
763
- /**
764
- * Updates cookie.
765
- * @param value new value or factory
766
- * @param options cookie parameters
767
- */
336
+ /** Update cookie. */
768
337
  set(value?: T | string | (() => (T | string)), options?: CookieOptions): void;
769
- /**
770
- * Deletes cookie.
771
- */
338
+ /** Delete cookie. */
772
339
  remove(): void;
773
340
  }
774
- // File: classes/CookieBlock.d.ts
775
- /**
776
- * Class for cookie access status.
777
- */
341
+ // File: src/classes/CookieBlock.d.ts
342
+ /** Global cookie access status manager. */
778
343
  export declare class CookieBlock {
779
- /**
780
- * Returns isolated CookieBlockInstance.
781
- * @returns instance
782
- */
344
+ /** Get isolated CookieBlockInstance. */
783
345
  static getItem(): CookieBlockInstance;
784
- /**
785
- * Gets status.
786
- * @returns current block status
787
- */
346
+ /** Get block status. */
788
347
  static get(): boolean;
789
- /**
790
- * Sets status.
791
- * @param value block status
792
- */
348
+ /** Set block status. */
793
349
  static set(value: boolean): void;
794
350
  }
795
- // File: classes/CookieBlockInstance.d.ts
796
- /**
797
- * Class for cookie access status.
798
- */
351
+ // File: src/classes/CookieBlockInstance.d.ts
352
+ /** isolated cookie access status. */
799
353
  export declare class CookieBlockInstance {
800
- /**
801
- * Gets status.
802
- * @returns current block status
803
- */
354
+ /** Get block status. */
804
355
  get(): boolean;
805
- /**
806
- * Sets status.
807
- * @param value block status
808
- */
356
+ /** Set block status. */
809
357
  set(value: boolean): void;
810
358
  }
811
- // File: classes/CookieStorage.d.ts
812
- /** Cookie sameSite attribute */
359
+ // File: src/classes/CookieStorage.d.ts
360
+ /** Cookie sameSite values. */
813
361
  export type CookieSameSite = 'strict' | 'lax';
814
- /** Cookie options */
362
+ /** Cookie settings. */
815
363
  export type CookieOptions = {
816
364
  age?: number;
817
365
  sameSite?: CookieSameSite;
@@ -822,829 +370,564 @@ export type CookieOptions = {
822
370
  partitioned?: boolean;
823
371
  arguments?: string[] | Record<string, string | number | boolean>;
824
372
  };
825
- /**
826
- * Consistent cookie storage across environments.
827
- */
373
+ /** Cookie storage manager with SSR/DOM support. */
828
374
  export declare class CookieStorage {
829
- /**
830
- * Initializes storage with listeners.
831
- */
375
+ /** Initialize storage listeners. */
832
376
  static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
833
- /**
834
- * Resets storage.
835
- */
377
+ /** Reset storage and listeners. */
836
378
  static reset(): void;
837
- /**
838
- * Gets data from storage.
839
- * @param name cookie name
840
- * @param defaultValue default value
841
- * @returns value or default
842
- */
379
+ /** Get cookie data. */
843
380
  static get<T>(name: string, defaultValue?: T | (() => T)): T | undefined;
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
- */
381
+ /** Save cookie data. */
851
382
  static set<T>(name: string, value: T | (() => T), options?: CookieOptions): T;
852
- /**
853
- * Removes data from storage.
854
- * @param name cookie name
855
- */
383
+ /** Delete cookie. */
856
384
  static remove(name: string): void;
857
- /**
858
- * Updates storage from cookies.
859
- */
385
+ /** Sync storage data. */
860
386
  static update(): void;
861
387
  }
862
- // File: classes/DataStorage.d.ts
863
- /**
864
- * Local/session storage wrapper with SSR isolation.
865
- */
388
+ // File: src/classes/DataStorage.d.ts
389
+ /** Local/session storage with SSR isolation and TTL. */
866
390
  export declare class DataStorage<T> {
867
- /**
868
- * Changes key prefix.
869
- * @param newPrefix prefix
870
- */
391
+ /** Set storage key prefix globally. */
871
392
  static setPrefix(newPrefix: string): void;
872
- /**
873
- * Constructor.
874
- * @param name value name
875
- * @param isSession use session storage
876
- * @param errorCenter error center instance
877
- */
878
393
  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
- */
394
+ /** Get data with cache TTL support. */
885
395
  get(defaultValue?: T | (() => T), cache?: number): T | undefined;
886
- /**
887
- * Changes storage data.
888
- * @param value new values
889
- * @returns set value
890
- */
396
+ /** Save data. */
891
397
  set(value?: T | (() => T)): T | undefined;
892
- /**
893
- * Removes storage data.
894
- * @returns this
895
- */
398
+ /** Delete data. */
896
399
  remove(): this;
897
- /**
898
- * Syncs from storage.
899
- * @returns this
900
- */
400
+ /** Sync from storage. */
901
401
  update(): this;
902
402
  }
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.
907
- */
403
+ // File: src/classes/Datetime.d.ts
404
+ /** @remarks rendering in SSR without specific date may cause hydration mismatch. */
908
405
  export declare class Datetime {
909
- /**
910
- * Constructor
911
- * @param date date value
912
- * @param type output format type
913
- * @param code locale code
914
- */
915
406
  constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
916
- /**
917
- * Returns GeoIntl object.
918
- * @returns GeoIntl
919
- */
407
+ /** Get GeoIntl object. */
920
408
  getIntl(): GeoIntl;
921
- /**
922
- * Returns Date object.
923
- * @returns Date
924
- */
409
+ /** Get Date object. */
925
410
  getDate(): Date;
926
- /**
927
- * Returns output type.
928
- * @returns GeoDate
929
- */
411
+ /** Get output type. */
930
412
  getType(): GeoDate;
931
- /**
932
- * Returns hour format.
933
- * @returns GeoHours
934
- */
413
+ /** Get hour format (12/24). */
935
414
  getHoursType(): GeoHours;
936
- /**
937
- * Checks for 24-hour format.
938
- * @returns boolean
939
- */
415
+ /** Check if 24-hour format. */
940
416
  getHour24(): boolean;
941
- /**
942
- * Returns local time zone offset.
943
- * @returns offset in minutes
944
- */
417
+ /** Get timezone offset (min). */
945
418
  getTimeZoneOffset(): number;
946
- /**
947
- * Returns time zone string.
948
- * @param style display style
949
- * @returns time zone
950
- */
419
+ /** Get timezone string. */
951
420
  getTimeZone(style?: GeoTimeZoneStyle): string;
952
- /**
953
- * Returns first day of week code.
954
- * @returns GeoFirstDay
955
- */
421
+ /** Get first day of week code. */
956
422
  getFirstDayCode(): GeoFirstDay;
957
- /**
958
- * Returns year.
959
- */
423
+ /** Get year. */
960
424
  getYear(): number;
961
- /**
962
- * Returns month (1-12).
963
- */
425
+ /** Get month (1-12). */
964
426
  getMonth(): number;
965
- /**
966
- * Returns day of month (1-31).
967
- */
427
+ /** Get day (1-31). */
968
428
  getDay(): number;
969
- /**
970
- * Returns hours (0-23).
971
- */
429
+ /** Get hour (0-23). */
972
430
  getHour(): number;
973
- /**
974
- * Returns minutes (0-59).
975
- */
431
+ /** Get minute (0-59). */
976
432
  getMinute(): number;
977
- /**
978
- * Returns seconds (0-59).
979
- */
433
+ /** Get second (0-59). */
980
434
  getSecond(): number;
981
- /**
982
- * Returns last day of month.
983
- */
435
+ /** Get max days in month. */
984
436
  getMaxDay(): number;
985
- /**
986
- * Returns formatted locale date string.
987
- */
437
+ /** Format locale date string. */
988
438
  locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): string;
989
- /** Returns formatted year. */
439
+ /** Format year. */
990
440
  localeYear(style?: Intl.DateTimeFormatOptions['year']): string;
991
- /** Returns formatted month. */
441
+ /** Format month. */
992
442
  localeMonth(style?: Intl.DateTimeFormatOptions['month']): string;
993
- /** Returns formatted day. */
443
+ /** Format day. */
994
444
  localeDay(style?: Intl.DateTimeFormatOptions['day']): string;
995
- /** Returns formatted hour. */
445
+ /** Format hour. */
996
446
  localeHour(style?: Intl.DateTimeFormatOptions['hour']): string;
997
- /** Returns formatted minute. */
447
+ /** Format minute. */
998
448
  localeMinute(style?: Intl.DateTimeFormatOptions['minute']): string;
999
- /** Returns formatted second. */
449
+ /** Format second. */
1000
450
  localeSecond(style?: Intl.DateTimeFormatOptions['second']): string;
1001
- /** Standard data output string. */
451
+ /** ISO-like standard format. */
1002
452
  standard(timeZone?: boolean): string;
1003
- /** Sets date value. */
453
+ /** Set date value. */
1004
454
  setDate(value: NumberOrStringOrDate): this;
1005
- /** Sets output type. */
455
+ /** Set output type. */
1006
456
  setType(value: GeoDate): this;
1007
- /** Sets 24-hour format. */
457
+ /** Set 12/24 hour format. */
1008
458
  setHour24(value: boolean): this;
1009
- /** Sets location code. */
459
+ /** Set location code. */
1010
460
  setCode(code: string): this;
1011
- /** Sets update listener. */
461
+ /** Set update callback. */
1012
462
  setWatch(watch: (date: Date, type: GeoDate, hour24: boolean) => void): this;
1013
- /** Sets year. */
1014
463
  setYear(value: number): this;
1015
- /** Sets month (1-12). */
1016
464
  setMonth(value: number): this;
1017
- /** Sets day of month. */
1018
465
  setDay(value: number): this;
1019
- /** Sets hours. */
1020
466
  setHour(value: number): this;
1021
- /** Sets minutes. */
1022
467
  setMinute(value: number): this;
1023
- /** Sets seconds. */
1024
468
  setSecond(value: number): this;
1025
- /** Shifts date by years. */
1026
469
  moveByYear(value: number): this;
1027
- /** Shifts date by months. */
1028
470
  moveByMonth(value: number): this;
1029
- /** Shifts date by days. */
1030
471
  moveByDay(value: number): this;
1031
- /** Shifts date by hours. */
1032
472
  moveByHour(value: number): this;
1033
- /** Shifts date by minutes. */
1034
473
  moveByMinute(value: number): this;
1035
- /** Shifts date by seconds. */
1036
474
  moveBySecond(value: number): this;
1037
- /** Sets date to January. */
1038
475
  moveMonthFirst(): this;
1039
- /** Sets date to December. */
1040
476
  moveMonthLast(): this;
1041
- /** Moves to next month first day. */
1042
477
  moveMonthNext(): this;
1043
- /** Moves to previous month first day. */
1044
478
  moveMonthPrevious(): this;
1045
- /** Moves to first day of week. */
1046
479
  moveWeekdayFirst(): this;
1047
- /** Moves to last day of week. */
1048
480
  moveWeekdayLast(): this;
1049
- /** Moves to first day of first week of month. */
1050
481
  moveWeekdayFirstByMonth(): this;
1051
- /** Moves to first day of first full week of following month. */
1052
482
  moveWeekdayLastByMonth(): this;
1053
- /** Moves to next week. */
1054
483
  moveWeekdayNext(): this;
1055
- /** Moves to previous week. */
1056
484
  moveWeekdayPrevious(): this;
1057
- /** Moves to first day of month. */
1058
485
  moveDayFirst(): this;
1059
- /** Moves to last day of month. */
1060
486
  moveDayLast(): this;
1061
- /** Moves to next day. */
1062
487
  moveDayNext(): this;
1063
- /** Moves to previous day. */
1064
488
  moveDayPrevious(): this;
1065
- /** Clones Date object. */
489
+ /** Clone Date object. */
1066
490
  clone(): Date;
1067
- /** Clones Datetime instance. */
491
+ /** Clone Datetime class. */
1068
492
  cloneClass(): Datetime;
1069
- /** Clones and sets month to Jan. */
1070
493
  cloneMonthFirst(): Datetime;
1071
- /** Clones and sets month to Dec. */
1072
494
  cloneMonthLast(): Datetime;
1073
- /** Clones and moves 1 month ahead. */
1074
495
  cloneMonthNext(): Datetime;
1075
- /** Clones and moves 1 month back. */
1076
496
  cloneMonthPrevious(): Datetime;
1077
- /** Clones and sets to first day of week. */
1078
497
  cloneWeekdayFirst(): Datetime;
1079
- /** Clones and sets to last day of week. */
1080
498
  cloneWeekdayLast(): Datetime;
1081
- /** Clones and sets to first day of week in current month. */
1082
499
  cloneWeekdayFirstByMonth(): Datetime;
1083
- /** Clones and sets to last day of week in current month. */
1084
500
  cloneWeekdayLastByMonth(): Datetime;
1085
- /** Clones and sets to next week. */
1086
501
  cloneWeekdayNext(): Datetime;
1087
- /** Clones and sets to previous week. */
1088
502
  cloneWeekdayPrevious(): Datetime;
1089
- /** Clones and moves to beginning of month. */
1090
503
  cloneDayFirst(): Datetime;
1091
- /** Clones and moves to end of month. */
1092
504
  cloneDayLast(): Datetime;
1093
- /** Clones and moves 1 day ahead. */
1094
505
  cloneDayNext(): Datetime;
1095
- /** Clones and moves 1 day back. */
1096
506
  cloneDayPrevious(): Datetime;
1097
507
  }
1098
- // File: classes/ErrorCenter.d.ts
1099
- /**
1100
- * Class for managing error storage and handling.
1101
- */
508
+ // File: src/classes/ErrorCenter.d.ts
509
+ /** Global error management. */
1102
510
  export declare class ErrorCenter {
1103
- /** Returns request-isolated ErrorCenterInstance. */
511
+ /** Get isolated ErrorCenterInstance. */
1104
512
  static getItem(): ErrorCenterInstance;
1105
- /** Checks if cause with code exists. */
513
+ /** Check if error code exists. */
1106
514
  static has(code: string, group?: string): boolean;
1107
- /** Gets error cause by code and group. */
515
+ /** Get error cause. */
1108
516
  static get(code: string, group?: string): ErrorCenterCauseItem | undefined;
1109
- /** Adds error cause. */
517
+ /** Add error cause. */
1110
518
  static add(cause: ErrorCenterCauseItem): void;
1111
- /** Adds list of error causes. */
519
+ /** Add list of error causes. */
1112
520
  static addList(causes: ErrorCenterCauseList): void;
1113
- /** Registers new handler. */
521
+ /** Register error handler. */
1114
522
  static addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): void;
1115
- /** Registers list of handlers. */
523
+ /** Register handlers list. */
1116
524
  static addHandlerList(handlers: ErrorCenterHandlerList): void;
1117
- /** Triggers error handling. */
525
+ /** Trigger error handling. */
1118
526
  static on(cause: ErrorCenterCauseItem): void;
1119
527
  }
1120
- // File: classes/ErrorCenterHandler.d.ts
1121
- /**
1122
- * Class for managing and triggering error handlers.
1123
- */
528
+ // File: src/classes/ErrorCenterHandler.d.ts
529
+ /** Error handler manager. */
1124
530
  export declare class ErrorCenterHandler {
1125
- /** Constructor */
1126
531
  constructor(handlers?: ErrorCenterHandlerList);
1127
- /** Checks for handlers in group. */
532
+ /** Check handlers for group. */
1128
533
  has(group: ErrorCenterGroup): boolean;
1129
- /** Gets handlers for group. */
534
+ /** Get handler item. */
1130
535
  get(group: ErrorCenterGroup): ErrorCenterHandlerItem | undefined;
1131
- /** Adds handler for group. */
536
+ /** Add handler. */
1132
537
  add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
1133
- /** Adds list of handlers. */
538
+ /** Add handlers list. */
1134
539
  addList(handlers: ErrorCenterHandlerList): this;
1135
- /** Triggers handlers and logs error. */
540
+ /** Trigger handlers. */
1136
541
  on(cause: ErrorCenterCauseItem): this;
1137
542
  }
1138
- // File: classes/ErrorCenterInstance.d.ts
1139
- /**
1140
- * Instance-based error storage and handling.
1141
- */
543
+ // File: src/classes/ErrorCenterInstance.d.ts
544
+ /** Error storage and handling instance. */
1142
545
  export declare class ErrorCenterInstance {
1143
- /** Constructor */
1144
546
  constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
1145
- /** Checks for cause by code. */
1146
547
  has(code: string, group?: string): boolean;
1147
- /** Gets cause by code. */
1148
548
  get(code: string, group?: string): ErrorCenterCauseItem | undefined;
1149
- /** Adds error cause. */
1150
549
  add(cause: ErrorCenterCauseItem): this;
1151
- /** Adds causes list. */
1152
550
  addList(causes: ErrorCenterCauseList): this;
1153
- /** Registers handler. */
1154
551
  addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
1155
- /** Registers handlers list. */
1156
552
  addHandlerList(handlers: ErrorCenterHandlerList): this;
1157
- /** Triggers error handling. */
1158
553
  on(cause: ErrorCenterCauseItem): this;
1159
554
  }
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
- */
555
+ // File: src/classes/EventItem.d.ts
556
+ /** Advanced DOM event lifecycle manager. */
1180
557
  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
- */
1189
558
  constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
1190
- /** Checks if listening is active. */
559
+ /** Check if active. */
1191
560
  isActive(): boolean;
1192
- /** Returns target element. */
561
+ /** Get target element. */
1193
562
  getElement(): E | undefined;
1194
- /** Changes target element. */
563
+ /** Change element. */
1195
564
  setElement(elementSelector?: ElementOrString<E>): this;
1196
- /** Modifies safety check element. */
565
+ /** Set DOM safety control element. */
1197
566
  setElementControl<EC extends HTMLElement>(elementSelector?: ElementOrString<EC>): this;
1198
- /** Changes event type. */
567
+ /** Change event type(s). */
1199
568
  setType(type: string | string[]): this;
1200
- /** Modifies listener. */
569
+ /** Change listener function. */
1201
570
  setListener(listener: EventListenerDetail<O, D>): this;
1202
- /** Modifies options. */
571
+ /** Set listener options. */
1203
572
  setOptions(options?: EventOptions): this;
1204
- /** Modifies detail data. */
573
+ /** Set custom data. */
1205
574
  setDetail(detail?: D): this;
1206
- /** Manually triggers custom event dispatch. */
575
+ /** Manually trigger events. */
1207
576
  dispatch(detail?: D | undefined): this;
1208
- /** Starts listening. */
577
+ /** Enable listener. */
1209
578
  start(): this;
1210
- /** Stops listening. */
579
+ /** Disable listener. */
1211
580
  stop(): this;
1212
- /** Toggles state. */
581
+ /** Set activation state. */
1213
582
  toggle(activity: boolean): this;
1214
- /** Resets (stop and start if active). */
583
+ /** Restart listener. */
1215
584
  reset(): this;
1216
585
  }
1217
- // File: classes/Formatters.d.ts
1218
- /**
1219
- * Formats data list based on options.
1220
- */
586
+ // File: src/classes/Formatters.d.ts
587
+ /** List data formatter. */
1221
588
  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
- */
1227
589
  constructor(options: Options, list?: List | undefined);
1228
- /** Checks if list set. */
590
+ /** Check if list is set. */
1229
591
  is(): boolean;
1230
- /** Checks if list is array. */
1231
- isArray(): this is this & { list: FormattersList<Item>; };
1232
- /** Returns record count. */
592
+ /** Check if array list. */
593
+ isArray(): this is this & {
594
+ list: FormattersList<Item>;
595
+ };
596
+ /** Get list length. */
1233
597
  length(): number;
1234
- /** Returns array list. */
598
+ /** Get internal list. */
1235
599
  getList(): FormattersList<Item>;
1236
- /** Returns options. */
600
+ /** Get formatting options. */
1237
601
  getOptions(): Options;
1238
- /** Sets data list. */
602
+ /** Set data list. */
1239
603
  setList(list?: List): this;
1240
- /** Formats data. Adds values with 'Format' suffix. */
604
+ /** Execute formatting. */
1241
605
  to(): FormattersReturn<List, Options>;
1242
606
  }
1243
- // File: classes/Geo.d.ts
1244
- /**
1245
- * Static geographic data management.
1246
- */
607
+ // File: src/classes/Geo.d.ts
608
+ /** static Geographic manager. */
1247
609
  export declare class Geo {
1248
- /** Returns request-isolated GeoInstance. */
610
+ /** Get isolated GeoInstance. */
1249
611
  static getObject(): GeoInstance;
1250
- /** Returns current country and language. */
612
+ /** Get current geo data. */
1251
613
  static get(): GeoItemFull;
1252
- /** Returns 2-letter country code. */
614
+ /** Get country code. */
1253
615
  static getCountry(): string;
1254
- /** Returns 2-letter language code. */
616
+ /** Get language code. */
1255
617
  static getLanguage(): string;
1256
- /** Returns 'en-US' style locale. */
618
+ /** Get standard locale (en-US). */
1257
619
  static getStandard(): string;
1258
- /** Returns first day code. */
620
+ /** Get first day of week. */
1259
621
  static getFirstDay(): string;
1260
- /** Returns location string. */
622
+ /** Get location string. */
1261
623
  static getLocation(): string;
1262
- /** Returns processed geo data. */
624
+ /** Get full geo item. */
1263
625
  static getItem(): GeoItemFull;
1264
- /** Returns countries list. */
626
+ /** Get all available geo items. */
1265
627
  static getList(): GeoItem[];
1266
- /** Gets data by code. */
628
+ /** Find geo data by code. */
1267
629
  static getByCode(code?: string): GeoItemFull;
1268
- /** Search by full locale match. */
630
+ /** Find exact geo item by locale. */
1269
631
  static getByCodeFull(code: string): GeoItem | undefined;
1270
- /** Search by country code. */
632
+ /** Find geo item by country. */
1271
633
  static getByCountry(country: string): GeoItem | undefined;
1272
- /** Search by language code. */
634
+ /** Find geo item by language. */
1273
635
  static getByLanguage(language: string): GeoItem | undefined;
1274
- /** Returns timezone offset. */
636
+ /** Get timezone offset (min). */
1275
637
  static getTimezone(): number;
1276
- /** Returns formatted timezone ('+00:00'). */
638
+ /** Get formatted timezone (+00:00). */
1277
639
  static getTimezoneFormat(): string;
1278
- /** Determine geo data for code. */
640
+ /** Find geo data by code. */
1279
641
  static find(code: string): GeoItemFull;
1280
- /** Returns 'en-US' string from item. */
642
+ /** Convert item to standard locale string. */
1281
643
  static toStandard(item: GeoItem): string;
1282
- /** Sets location. */
644
+ /** Set current location. */
1283
645
  static set(code: string, save?: boolean): void;
1284
- /** Sets timezone offset. */
646
+ /** Set custom timezone offset. */
1285
647
  static setTimezone(timezone: number): void;
1286
648
  }
1287
- // File: classes/GeoFlag.d.ts
649
+ // File: src/classes/GeoFlag.d.ts
1288
650
  export declare const GEO_FLAG_ICON_NAME = "f";
1289
- /**
1290
- * Manage flags and geographic info.
1291
- */
651
+ /** Flag and geographic info handler. */
1292
652
  export declare class GeoFlag {
1293
653
  static flags: Record<string, string>;
1294
- /** Constructor */
1295
654
  constructor(code?: string);
1296
- /** Gets country info and flag. */
655
+ /** Get country and flag info. */
1297
656
  get(code?: string): GeoFlagItem | undefined;
1298
- /** Gets flag icon ID. */
657
+ /** Get flag icon ID. */
1299
658
  getFlag(code?: string): string | undefined;
1300
- /** Returns countries list. */
659
+ /** Get countries list by codes. */
1301
660
  getList(codes?: string[]): GeoFlagItem[];
1302
- /** Returns list with national names. */
661
+ /** Get list in national languages. */
1303
662
  getNational(codes?: string[]): GeoFlagNational[];
1304
- /** Changes locale. */
663
+ /** Set locale. */
1305
664
  setCode(code: string): this;
1306
665
  }
1307
- // File: classes/GeoInstance.d.ts
1308
- /**
1309
- * Base class for geographic data.
1310
- */
666
+ // File: src/classes/GeoInstance.d.ts
667
+ /** Geographic data logic. */
1311
668
  export declare class GeoInstance {
1312
669
  constructor();
1313
- /** Gets current country info. */
670
+ /** Get current country info. */
1314
671
  get(): GeoItemFull;
1315
- /** Gets country code. */
672
+ /** Get country code. */
1316
673
  getCountry(): string;
1317
- /** Gets language code. */
674
+ /** Get language code. */
1318
675
  getLanguage(): string;
1319
- /** Gets language-country format. */
676
+ /** Get standard format (lang-country). */
1320
677
  getStandard(): string;
1321
- /** Gets first day of week. */
678
+ /** Get first day of week. */
1322
679
  getFirstDay(): string;
1323
- /** Gets location string. */
680
+ /** Get location string. */
1324
681
  getLocation(): string;
1325
- /** Gets processed data. */
682
+ /** Get processed geo data. */
1326
683
  getItem(): GeoItemFull;
1327
- /** Returns countries list. */
684
+ /** Get all countries. */
1328
685
  getList(): GeoItem[];
1329
- /** Gets data by code. */
686
+ /** Get geo data by code. */
1330
687
  getByCode(code?: string): GeoItemFull;
1331
- /** Gets data by language-country. */
688
+ /** Find exact match (lang-country). */
1332
689
  getByCodeFull(code: string): GeoItem | undefined;
1333
- /** Gets data by country code. */
690
+ /** Find by country code. */
1334
691
  getByCountry(country: string): GeoItem | undefined;
1335
- /** Gets data by language code. */
692
+ /** Find by language code. */
1336
693
  getByLanguage(language: string): GeoItem | undefined;
1337
- /** Gets offset minutes. */
694
+ /** Get timezone offset (min). */
1338
695
  getTimezone(): number;
1339
- /** Gets formatted offset string. */
696
+ /** Get formatted timezone string. */
1340
697
  getTimezoneFormat(): string;
1341
- /** Finds country data by code/name. */
698
+ /** Find country by code/name. */
1342
699
  find(code: string): GeoItemFull;
1343
- /** Converts to standard code. */
700
+ /** Convert item to standard string. */
1344
701
  toStandard(item: GeoItem): string;
1345
- /** Updates location. */
702
+ /** Update location. */
1346
703
  set(code: string, save?: boolean): void;
1347
- /** Updates timezone offset. */
704
+ /** Update timezone offset. */
1348
705
  setTimezone(timezone: number): void;
1349
706
  }
1350
- // File: classes/GeoIntl.d.ts
1351
- /**
1352
- * Intl wrapper for language-sensitive formatting.
1353
- */
707
+ // File: src/classes/GeoIntl.d.ts
708
+ /** Internationalization API wrapper. */
1354
709
  export declare class GeoIntl {
1355
- /** Checks for code instance. */
710
+ /** Check instance existence by code. */
1356
711
  static isItem(code?: string): boolean;
1357
- /** Returns location code. */
712
+ /** Get standard location code. */
1358
713
  static getLocation(code?: string): string;
1359
- /** Returns instance for code. */
714
+ /** Get instance by code. */
1360
715
  static getInstance(code?: string): GeoIntl;
1361
- /** Constructor */
1362
716
  constructor(code?: string, errorCenter?: ErrorCenterInstance);
1363
- /** Returns location code. */
717
+ /** Get location string. */
1364
718
  getLocation(): string;
1365
- /** Returns first day. */
719
+ /** Get first day of week. */
1366
720
  getFirstDay(): string;
1367
- /** Translated names for language/region. */
721
+ /** Localized names for language/region. */
1368
722
  display(value?: string, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): string;
1369
- /** Display language name. */
1370
723
  languageName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
1371
- /** Display region name. */
1372
724
  countryName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
1373
- /** Formatted full name. */
725
+ /** Format full name. */
1374
726
  fullName(last: string, first: string, surname?: string, short?: boolean): string;
1375
727
  /** Number formatting. */
1376
728
  number(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
1377
- /** Decimal point symbol. */
729
+ /** Get decimal symbol. */
1378
730
  decimal(): string;
1379
731
  /** Currency formatting. */
1380
732
  currency(value: NumberOrString, currencyOptions?: string | Intl.NumberFormatOptions, numberOnly?: boolean): string;
1381
- /** Returns currency symbol or code. */
733
+ /** Get currency symbol. */
1382
734
  currencySymbol(currency: string, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): string;
1383
735
  /** Unit formatting. */
1384
736
  unit(value: NumberOrString, unitOptions?: string | Intl.NumberFormatOptions): string;
1385
- /** File size formatting. */
737
+ /** Format file size. */
1386
738
  sizeFile(value: NumberOrString, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): string;
1387
- /** Percent formatting. */
739
+ /** Percentage formatting. */
1388
740
  percent(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
1389
- /** Percent formatting (base 100). */
1390
741
  percentBy100(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
1391
- /** Plural rule formatting. */
742
+ /** Pluralization. */
1392
743
  plural(value: NumberOrString, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): string;
1393
- /** Date formatting. */
744
+ /** Date/time formatting. */
1394
745
  date(value: NumberOrStringOrDate, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): string;
1395
746
  /** Relative time formatting. */
1396
747
  relative(value: NumberOrStringOrDate, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): string;
1397
- /** Relative time with fallback limit. */
748
+ /** Relative time with limit fallback. */
1398
749
  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. */
1400
750
  relativeByValue(value: NumberOrString, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): string;
1401
- /** Month name. */
751
+ /** Month name(s). */
1402
752
  month(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['month']): string;
1403
- /** Months list. */
1404
753
  months(style?: Intl.DateTimeFormatOptions['month']): ItemValue<number | undefined>[];
1405
- /** Weekday name. */
754
+ /** Weekday name(s). */
1406
755
  weekday(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['weekday']): string;
1407
- /** Weekdays list. */
1408
756
  weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ItemValue<number | undefined>[];
1409
- /** Time string. */
757
+ /** Time formatting. */
1410
758
  time(value: NumberOrStringOrDate): string;
1411
- /** Locale-sensitive sort. */
759
+ /** Localized sort. */
1412
760
  sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
1413
761
  }
1414
- // File: classes/GeoPhone.d.ts
1415
- /**
1416
- * Phone number mask storage and processing.
1417
- */
762
+ // File: src/classes/GeoPhone.d.ts
763
+ /** Phone mask processing. */
1418
764
  export declare class GeoPhone {
1419
- /** Gets code and country info. */
765
+ /** Get phone info by country code. */
1420
766
  static get(code: string): GeoPhoneValue | undefined;
1421
- /** Gets info by phone. */
767
+ /** Get info by phone number. */
1422
768
  static getByPhone(phone: string): GeoPhoneMapInfo;
1423
- /** Gets mask data by country code. */
769
+ /** Get mask data by country code. */
1424
770
  static getByCode(code: string): GeoPhoneMap | undefined;
1425
- /** Returns codes list. */
771
+ /** Get all phone codes. */
1426
772
  static getList(): GeoPhoneValue[];
1427
- /** Returns map tree. */
773
+ /** Get search map. */
1428
774
  static getMap(): Record<string, GeoPhoneMap>;
1429
- /** Converts to phone mask. */
775
+ /** Apply phone mask. */
1430
776
  static toMask(phone: string, masks?: string[]): string | undefined;
1431
- /** Removes country code. */
777
+ /** Remove country code from number. */
1432
778
  static removeZero(phone: string): string;
1433
779
  }
1434
- // File: classes/Global.d.ts
1435
- /**
1436
- * Global application data storage.
1437
- */
780
+ // File: src/classes/Global.d.ts
781
+ /** Global application data storage. */
1438
782
  export declare class Global {
1439
- /** Returns storage instance. */
783
+ /** Get storage instance. */
1440
784
  static getItem(): Record<string, any>;
1441
- /** Gets value by name. */
785
+ /** Get value by name. */
1442
786
  static get<R = any>(name: string): R;
1443
- /** Adds data once. */
787
+ /** Add global data (one-time). */
1444
788
  static add(data: Record<string, any>): void;
1445
789
  }
1446
- // File: classes/Hash.d.ts
1447
- /**
1448
- * URL hash data management.
1449
- */
790
+ // File: src/classes/Hash.d.ts
791
+ /** URL hash data manager. */
1450
792
  export declare class Hash {
1451
- /** Returns HashInstance. */
793
+ /** Get isolated HashInstance. */
1452
794
  static getItem(): HashInstance;
1453
- /** Gets data from hash. */
795
+ /** Get value from hash. */
1454
796
  static get<T>(name: string, defaultValue?: T | (() => T)): T;
1455
- /** Sets data in hash. */
797
+ /** Set value in hash. */
1456
798
  static set<T>(name: string, callback: T | (() => T)): void;
1457
- /** Adds change watcher. */
799
+ /** Watch hash changes. */
1458
800
  static addWatch<T>(name: string, callback: (value: T) => void): void;
1459
- /** Removes watcher. */
801
+ /** Stop watching hash. */
1460
802
  static removeWatch<T>(name: string, callback: (value: T) => void): void;
1461
- /** Reloads from URL string. */
803
+ /** Reload from URL. */
1462
804
  static reload(): void;
1463
805
  }
1464
- // File: classes/HashInstance.d.ts
1465
- /**
1466
- * URL hash data management.
1467
- */
806
+ // File: src/classes/HashInstance.d.ts
807
+ /** isolated URL hash logic. */
1468
808
  export declare class HashInstance {
1469
- /** Gets data from hash. */
1470
809
  get<T>(name: string, defaultValue?: T | (() => T)): T;
1471
- /** Sets data in hash. */
1472
810
  set<T>(name: string, callback: T | (() => T)): this;
1473
- /** Adds change listener. */
1474
811
  addWatch<T>(name: string, callback: (value: T) => void): this;
1475
- /** Removes listener. */
1476
812
  removeWatch<T>(name: string, callback: (value: T) => void): this;
1477
- /** Updates from URL. */
1478
813
  reload(): this;
1479
814
  }
1480
- // File: classes/Icons.d.ts
815
+ // File: src/classes/Icons.d.ts
1481
816
  export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
1482
817
  export type IconsConfig = {
1483
818
  url?: string;
1484
819
  list?: Record<string, IconsItem>;
1485
820
  };
1486
- /**
1487
- * Icons management.
1488
- */
821
+ /** Icon management and loading. */
1489
822
  export declare class Icons {
1490
- /** Checks if icon registered. */
823
+ /** Check if icon exists. */
1491
824
  static is(index: string): boolean;
1492
- /** Returns icon content/path. */
825
+ /** Get icon async. */
1493
826
  static get(index: string, url?: string, wait?: number): Promise<string>;
1494
- /** Sync returns icon. */
827
+ /** Get loaded icon. */
1495
828
  static getAsync(index: string, url?: string): string;
1496
- /** Returns icon names list. */
829
+ /** Get all icon names. */
1497
830
  static getNameList(): string[];
1498
- /** Returns global URL. */
831
+ /** Get global icons URL. */
1499
832
  static getUrlGlobal(): string;
1500
- /** Adds custom icon. */
833
+ /** Add custom icon. */
1501
834
  static add(index: string, file: IconsItem): void;
1502
- /** Adds loading placeholder. */
835
+ /** Mark icon for loading. */
1503
836
  static addLoad(index: string): void;
1504
- /** Adds global icon. */
837
+ /** Add global icon. */
1505
838
  static addGlobal(index: string, file: string): void;
1506
- /** Adds icons list. */
839
+ /** Add icons list. */
1507
840
  static addByList(list: Record<string, IconsItem>): void;
1508
- /** Changes path. */
841
+ /** Set icons path. */
1509
842
  static setUrl(url: string): void;
1510
- /** Changes config. */
843
+ /** Set icons config. */
1511
844
  static setConfig(config: IconsConfig): void;
1512
845
  }
1513
- // File: classes/Loading.d.ts
1514
- /**
1515
- * Global loading state.
1516
- */
846
+ // File: src/classes/Loading.d.ts
847
+ /** Global loading state manager. */
1517
848
  export declare class Loading {
1518
- /** Checks if active. */
849
+ /** Check if active. */
1519
850
  static is(): boolean;
1520
- /** Gets current value. */
851
+ /** Get loading count. */
1521
852
  static get(): number;
1522
- /** Returns LoadingInstance. */
853
+ /** Get isolated LoadingInstance. */
1523
854
  static getItem(): LoadingInstance;
1524
- /** Shows loader. */
855
+ /** Show loader. */
1525
856
  static show(): void;
1526
- /** Hides loader. */
857
+ /** Hide loader. */
1527
858
  static hide(): void;
1528
- /** Registers event listener. */
859
+ /** Register change listener. */
1529
860
  static registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1530
- /** Unregisters event listener. */
861
+ /** Unregister change listener. */
1531
862
  static unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1532
863
  }
1533
- // File: classes/LoadingInstance.d.ts
1534
- /** Loading event data */
864
+ // File: src/classes/LoadingInstance.d.ts
865
+ /** Loading event detail. */
1535
866
  export type LoadingDetail = {
1536
867
  loading: boolean;
1537
868
  };
1538
- /** Loading registration item */
869
+ /** Loading registration record. */
1539
870
  export type LoadingRegistrationItem = {
1540
871
  item: EventItem<Window, CustomEvent, LoadingDetail>;
1541
872
  listener: EventListenerDetail<CustomEvent, LoadingDetail>;
1542
873
  element?: ElementOrString<HTMLElement>;
1543
874
  };
1544
- /**
1545
- * Global loading instance.
1546
- */
875
+ /** isolated loading state. */
1547
876
  export declare class LoadingInstance {
1548
- /** Constructor */
1549
877
  constructor(eventName?: string);
1550
- /** Checks if loader active. */
1551
878
  is(): boolean;
1552
- /** Gets loading value. */
1553
879
  get(): number;
1554
- /** Shows loader. */
1555
880
  show(): void;
1556
- /** Hides loader. */
1557
881
  hide(): void;
1558
- /** Registers event. */
1559
882
  registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1560
- /** Unregisters event. */
1561
883
  unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
1562
884
  }
1563
- // File: classes/Meta.d.ts
1564
- /**
1565
- * Unified meta tag manager (Standard, OG, Twitter).
1566
- */
885
+ // File: src/classes/Meta.d.ts
886
+ /** HTML/OG/Twitter meta tags manager. */
1567
887
  export declare class Meta extends MetaManager<MetaTag[]> {
1568
- /** Constructor */
1569
888
  constructor();
1570
- /** Gets MetaOg instance. */
1571
889
  getOg(): MetaOg;
1572
- /** Gets MetaTwitter instance. */
1573
890
  getTwitter(): MetaTwitter;
1574
- /** Gets title. */
1575
891
  getTitle(): string;
1576
- /** Gets keywords. */
1577
892
  getKeywords(): string;
1578
- /** Gets description. */
1579
893
  getDescription(): string;
1580
- /** Gets OG image. */
1581
894
  getImage(): string;
1582
- /** Gets canonical URL. */
1583
895
  getCanonical(): string;
1584
- /** Gets robots directive. */
1585
896
  getRobots(): MetaRobots;
1586
- /** Gets author. */
1587
897
  getAuthor(): string;
1588
- /** Gets OG site name. */
1589
898
  getSiteName(): string;
1590
- /** Gets OG locale. */
1591
899
  getLocale(): string;
1592
- /** Sets title and syncs cards. */
1593
900
  setTitle(title: string): this;
1594
- /** Sets keywords. */
1595
901
  setKeywords(keywords: string | string[]): this;
1596
- /** Sets description. */
1597
902
  setDescription(description: string): this;
1598
- /** Sets OG/Twitter image. */
1599
903
  setImage(image: string): this;
1600
- /** Sets canonical and syncs cards. */
1601
904
  setCanonical(canonical: string): this;
1602
- /** Sets robots. */
1603
905
  setRobots(robots: MetaRobots): this;
1604
- /** Sets author. */
1605
906
  setAuthor(author: string): this;
1606
- /** Sets OG/Twitter site name. */
1607
907
  setSiteName(siteName: string): this;
1608
- /** Sets OG locale. */
1609
908
  setLocale(locale: string): this;
1610
- /** Sets title suffix. */
1611
909
  setSuffix(suffix?: string): void;
1612
- /** Generates full HTML. */
910
+ /** Generate full HTML meta block. */
1613
911
  html(): string;
1614
- /** Generates HTML-safe title. */
912
+ /** Get HTML-safe title. */
1615
913
  htmlTitle(): string;
1616
914
  }
1617
- // File: classes/MetaManager.d.ts
915
+ // File: src/classes/MetaManager.d.ts
1618
916
  type MetaList<T extends readonly string[]> = {
1619
917
  [K in T[number]]?: string;
1620
918
  };
1621
- /**
1622
- * Base meta tag management.
1623
- */
919
+ /** Meta tag logic base. */
1624
920
  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
- */
1630
921
  constructor(listMeta: T, isProperty?: boolean);
1631
- /** Returns tag names list. */
1632
922
  getListMeta(): T;
1633
- /** Gets content by name. */
1634
923
  get(name: Key): string;
1635
- /** Returns all tags object. */
1636
924
  getItems(): MetaList<T>;
1637
- /** Returns all tags HTML. */
1638
925
  html(): string;
1639
- /** Sets tag content. */
1640
926
  set(name: Key, content: string): this;
1641
- /** Sets multiple tags. */
1642
927
  setByList(metaList: MetaList<T>): this;
1643
928
  }
1644
- // File: classes/MetaOg.d.ts
1645
- /**
1646
- * Open Graph meta manager.
1647
- */
929
+ // File: src/classes/MetaOg.d.ts
930
+ /** Open Graph tags manager. */
1648
931
  export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
1649
932
  constructor();
1650
933
  getTitle(): string;
@@ -1662,10 +945,8 @@ export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
1662
945
  setLocale(locale: string): this;
1663
946
  setSiteName(siteName: string): this;
1664
947
  }
1665
- // File: classes/MetaStatic.d.ts
1666
- /**
1667
- * Static meta tag management.
1668
- */
948
+ // File: src/classes/MetaStatic.d.ts
949
+ /** static meta tags manager. */
1669
950
  export declare class MetaStatic {
1670
951
  static getItem(): Meta;
1671
952
  static getOg(): MetaOg;
@@ -1692,10 +973,8 @@ export declare class MetaStatic {
1692
973
  static html(): string;
1693
974
  static htmlTitle(): string;
1694
975
  }
1695
- // File: classes/MetaTwitter.d.ts
1696
- /**
1697
- * Twitter Card meta manager.
1698
- */
976
+ // File: src/classes/MetaTwitter.d.ts
977
+ /** Twitter Card tags manager. */
1699
978
  export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
1700
979
  constructor();
1701
980
  getCard(): MetaTwitterCard;
@@ -1713,141 +992,90 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
1713
992
  setDescription(description: string): this;
1714
993
  setImage(image: string): this;
1715
994
  }
1716
- // File: classes/ResumableTimer.d.ts
1717
- /**
1718
- * Timer that can be paused/resumed.
1719
- */
995
+ // File: src/classes/ResumableTimer.d.ts
996
+ /** Pauseable timeout timer. */
1720
997
  export declare class ResumableTimer {
1721
- /**
1722
- * Constructor
1723
- * @param callback function to call
1724
- * @param delay ms
1725
- * @param blockStart no immediate start
1726
- */
1727
998
  constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
1728
- /** Resumes/starts timer. */
999
+ /** Start or resume. */
1729
1000
  resume(): this;
1730
- /** Pauses timer. */
1001
+ /** Pause and track remaining time. */
1731
1002
  pause(): this;
1732
- /** Resets with original delay. */
1003
+ /** Restart from zero. */
1733
1004
  reset(): this;
1734
- /** Clears timer state. */
1005
+ /** Stop and clear. */
1735
1006
  clear(): this;
1736
1007
  }
1737
- // File: classes/ScrollbarWidth.d.ts
1738
- /**
1739
- * Gets scrollbar width.
1740
- */
1008
+ // File: src/classes/ScrollbarWidth.d.ts
1009
+ /** Scrollbar width detector. */
1741
1010
  export declare class ScrollbarWidth {
1742
- /** Checks if scroll hiding enabled. */
1011
+ /** Check if scroll hiding enabled. */
1743
1012
  static is(): Promise<boolean>;
1744
- /** Returns width in pixels. */
1013
+ /** Get scroll width (px). */
1745
1014
  static get(): Promise<number>;
1746
- /** Returns storage instance. */
1015
+ /** Get internal storage. */
1747
1016
  static getStorage(): DataStorage<number>;
1748
- /** Checks if calculation active. */
1017
+ /** Check calculation status. */
1749
1018
  static getCalculate(): boolean;
1750
1019
  }
1751
- // File: classes/SearchList.d.ts
1752
- /**
1753
- * Manages searchable list.
1754
- */
1020
+ // File: src/classes/SearchList.d.ts
1021
+ /** Searchable list coordinator. */
1755
1022
  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
- */
1763
1023
  constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
1764
- /** Returns data manager. */
1765
1024
  getData(): SearchListData<T, K>;
1766
- /** Returns items list. */
1767
1025
  getList(): SearchListValue<T>;
1768
- /** Returns search columns. */
1769
1026
  getColumns(): K | undefined;
1770
- /** Returns search item instance. */
1771
1027
  getItem(): SearchListItem;
1772
- /** Returns current search value. */
1773
1028
  getValue(): string | undefined;
1774
- /** Returns options manager. */
1775
1029
  getOptions(): SearchListOptions;
1776
- /** Sets items and resets cache. */
1777
1030
  setList(list: SearchListValue<T>): this;
1778
- /** Sets columns and resets cache. */
1779
1031
  setColumns(columns?: K): this;
1780
- /** Sets value and updates matcher. */
1781
1032
  setValue(value?: string): this;
1782
- /** Sets options and updates matcher. */
1783
1033
  setOptions(options: SearchOptions): this;
1784
- /** Processes and returns formatted list. */
1034
+ /** Get formatted searchable list. */
1785
1035
  to(): SearchFormatList<T, K>;
1786
1036
  }
1787
- // File: classes/SearchListData.d.ts
1788
- /**
1789
- * Search data and cache manager.
1790
- */
1037
+ // File: src/classes/SearchListData.d.ts
1038
+ /** Search data and cache manager. */
1791
1039
  export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
1792
- /** Constructor */
1793
1040
  constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
1794
- /** Checks if ready for search. */
1795
- is(): this is this & { list: T[]; columns: string[]; };
1796
- /** Checks for list. */
1797
- isList(): this is this & { list: T[]; };
1798
- /** Returns original list. */
1041
+ is(): this is this & {
1042
+ list: T[];
1043
+ columns: string[];
1044
+ };
1045
+ isList(): this is this & {
1046
+ list: T[];
1047
+ };
1799
1048
  getList(): SearchListValue<T>;
1800
- /** Returns columns. */
1801
1049
  getColumns(): K | undefined;
1802
- /** Sets list and regenerates cache. */
1803
1050
  setList(list: SearchListValue<T>): this;
1804
- /** Sets columns and regenerates cache. */
1805
1051
  setColumns(columns?: SearchColumns<T>): this;
1806
- /** Finds cached item. */
1807
1052
  findCacheItem(item: T): SearchCacheItem<T> | undefined;
1808
- /** Executes callback for each cached item. */
1809
1053
  forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
1810
- /** Formats single item with highlights. */
1811
1054
  toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
1812
1055
  }
1813
- // File: classes/SearchListItem.d.ts
1814
- /**
1815
- * Single search item state.
1816
- */
1056
+ // File: src/classes/SearchListItem.d.ts
1057
+ /** Single search query state. */
1817
1058
  export declare class SearchListItem {
1818
- /** Constructor */
1819
1059
  constructor(value: string | undefined, options: SearchListOptions);
1820
- /** Checks for value. */
1821
- is(): this is this & { value: string; };
1822
- /** Checks if search should trigger. */
1060
+ is(): this is this & {
1061
+ value: string;
1062
+ };
1823
1063
  isSearch(): boolean;
1824
- /** Returns value. */
1825
1064
  get(): string;
1826
- /** Sets value. */
1827
1065
  set(value?: string): this;
1828
1066
  }
1829
- // File: classes/SearchListMatcher.d.ts
1830
- /**
1831
- * Search regex matcher.
1832
- */
1067
+ // File: src/classes/SearchListMatcher.d.ts
1068
+ /** Regex-based search matcher. */
1833
1069
  export declare class SearchListMatcher {
1834
- /** Constructor */
1835
1070
  constructor(item: SearchListItem, options: SearchListOptions);
1836
- /** Checks if initialized. */
1837
1071
  is(): boolean;
1838
- /** Checks for match. */
1839
1072
  isSelection(value: SearchCacheItem<any>['value']): boolean;
1840
- /** Returns current RegExp. */
1841
1073
  get(): RegExp | undefined;
1842
- /** Updates matcher from value/options. */
1843
1074
  update(): void;
1844
1075
  }
1845
- // File: classes/SearchListOptions.d.ts
1846
- /**
1847
- * Search options manager.
1848
- */
1076
+ // File: src/classes/SearchListOptions.d.ts
1077
+ /** Search list settings. */
1849
1078
  export declare class SearchListOptions {
1850
- /** Constructor */
1851
1079
  constructor(options?: SearchOptions | undefined);
1852
1080
  getOptions(): SearchOptions;
1853
1081
  getLimit(): number;
@@ -1857,496 +1085,514 @@ export declare class SearchListOptions {
1857
1085
  getClassName(): string;
1858
1086
  setOptions(options: SearchOptions): this;
1859
1087
  }
1860
- // File: classes/ServerStorage.d.ts
1861
- type ServerStorageItem = {
1862
- value: any;
1863
- hydration: boolean;
1864
- };
1865
- type ServerStorageList = Record<string, ServerStorageItem>;
1866
- /**
1867
- * SSR data isolation manager.
1868
- */
1088
+ // File: src/classes/ServerStorage.d.ts
1089
+ /** context storage for SSR isolation. */
1869
1090
  export declare class ServerStorage {
1870
- /**
1871
- * Initializes storage with context listener.
1872
- * @param listener context factory
1873
- * @returns this class
1874
- */
1091
+ /** Init context listener. */
1875
1092
  static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
1876
1093
  static reset(): void;
1877
- /** Checks key existence. */
1878
1094
  static has(key: string): boolean;
1879
- /** Gets value or creates with factory. */
1095
+ /** Get value with SSR/Hydration support. */
1880
1096
  static get<T = any>(key: string, defaultValue?: () => T, hydration?: boolean): T;
1881
- /** Saves value. */
1097
+ /** Save value. */
1882
1098
  static set<T = any>(key: string, value: () => T, hydration?: boolean): T;
1883
1099
  static setErrorStatus(hide: boolean): void;
1884
1100
  static remove(key: string): void;
1885
- /** Returns hydration script string. */
1101
+ /** Get script for hydration. */
1886
1102
  static toString(): string;
1887
1103
  }
1888
- // File: classes/StorageCallback.d.ts
1889
- /**
1890
- * Callback lists for storage.
1891
- */
1104
+ // File: src/classes/StorageCallback.d.ts
1105
+ /** Callback list manager for storage. */
1892
1106
  export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
1893
- /** Returns instance by name. */
1894
1107
  static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
1895
- /** Constructor */
1896
1108
  constructor(name: string, group?: string);
1897
- /** Gets loading state. */
1898
1109
  isLoading(): boolean;
1899
- /** Gets name. */
1900
1110
  getName(): string;
1901
1111
  getLoading(): boolean;
1902
- /** Adds callback. */
1903
1112
  addCallback(callback: Callback, isOnce?: boolean): this;
1904
- /** Removes callback. */
1905
1113
  removeCallback(callback: Callback): this;
1906
- /** Prepares launch. */
1907
1114
  preparation(): this;
1908
- /** Executes all callbacks. */
1909
1115
  run(value: T): Promise<this>;
1910
1116
  }
1911
- // File: classes/Translate.d.ts
1912
- /**
1913
- * Translation text retrieval.
1914
- */
1117
+ // File: src/classes/Translate.d.ts
1118
+ /** Translation text manager. */
1915
1119
  export declare class Translate {
1916
- /** Gets text by code. */
1917
1120
  static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
1918
- /** Returns TranslateInstance. */
1919
1121
  static getItem(): TranslateInstance;
1920
- /** Sync gets text by code. */
1921
1122
  static getSync(name: string, first?: boolean, replacement?: string[] | Record<string, string | number>): string;
1922
- /** Gets list of translations. */
1923
1123
  static getList<T extends TranslateCode[]>(names: T): Promise<TranslateList<T>>;
1924
- /** Sync gets translations list. */
1925
1124
  static getListSync<T extends TranslateCode[]>(names: T, first?: boolean): TranslateList<T>;
1926
- /** Adds translated texts. */
1927
1125
  static add(names: string | string[]): Promise<void>;
1928
- /** Sync adds texts. */
1929
1126
  static addSync(data: Record<string, string>): void;
1930
- /** Adds based on environment. */
1931
1127
  static addNormalOrSync(data: Record<string, string>): Promise<void>;
1932
- /** Adds sync by location. */
1933
1128
  static addSyncByLocation(data: Record<string, Record<string, string>>): void;
1934
- /** Adds sync from file. */
1935
1129
  static addSyncByFile(data: TranslateDataFile): void;
1936
- /** Sets script URL. */
1937
1130
  static setUrl(url: string): void;
1938
- /** Sets property name. */
1939
1131
  static setPropsName(name: string): void;
1940
- /** Changes read mode. */
1941
1132
  static setReadApi(value: boolean): void;
1942
- /** Sets configuration. */
1943
1133
  static setConfig(config: TranslateConfig): void;
1944
1134
  }
1945
- // File: classes/TranslateFile.d.ts
1946
- /**
1947
- * Translation files manager.
1948
- */
1135
+ // File: src/classes/TranslateFile.d.ts
1136
+ /** Translation files handler. */
1949
1137
  export declare class TranslateFile {
1950
- /** Constructor */
1951
1138
  constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
1952
- /** Checks for files. */
1953
1139
  isFile(): boolean;
1954
- /** Gets location. */
1955
1140
  getLocation(): string;
1956
- /** Gets language. */
1957
1141
  getLanguage(): string;
1958
- /** Returns translations list. */
1959
1142
  getList(): Promise<TranslateDataFileList | undefined>;
1960
- /** Adds files list. */
1961
1143
  add(data: TranslateDataFile): void;
1962
1144
  }
1963
- // File: classes/TranslateInstance.d.ts
1964
- /**
1965
- * Translation text retrieval instance.
1966
- */
1145
+ // File: src/classes/TranslateInstance.d.ts
1146
+ /** isolated translation logic. */
1967
1147
  export declare class TranslateInstance {
1968
- /** Constructor */
1969
1148
  constructor(url?: string, propsName?: string, files?: TranslateFile);
1970
- /** Gets text by code. */
1971
1149
  get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
1972
- /** Sync gets text. */
1973
1150
  getSync(name: string, first?: boolean, replacement?: string[] | Record<string, string | number>): string;
1974
- /** Gets translations list. */
1975
1151
  getList<T extends TranslateCode[]>(names: T): Promise<TranslateList<T>>;
1976
- /** Sync gets list. */
1977
1152
  getListSync<T extends TranslateCode[]>(names: T, first?: boolean): TranslateList<T>;
1978
- /** Adds texts. */
1979
1153
  add(names: string | string[]): Promise<void>;
1980
- /** Sync adds texts. */
1981
1154
  addSync(data: Record<string, string>): void;
1982
- /** Environment-based add. */
1983
1155
  addNormalOrSync(data: Record<string, string>): Promise<void>;
1984
- /** Sync add by location. */
1985
1156
  addSyncByLocation(data: Record<string, Record<string, string>>): void;
1986
- /** Sync add from file. */
1987
1157
  addSyncByFile(data: TranslateDataFile): void;
1988
- /** Sets script URL. */
1989
1158
  setUrl(url: string): this;
1990
- /** Sets property name. */
1991
1159
  setPropsName(name: string): this;
1992
- /** Sets read mode. */
1993
1160
  setReadApi(value: boolean): this;
1994
1161
  }
1995
- // File: functions/addTagHighlightMatch.d.ts
1996
- /** Highlights match in string with tags. */
1162
+ // File: src/functions/addTagHighlightMatch.d.ts
1163
+ /** Highlight match with HTML tag. */
1997
1164
  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. */
1165
+ // File: src/functions/anyToString.d.ts
1166
+ /** Convert value to string. */
2000
1167
  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. */
1168
+ // File: src/functions/applyTemplate.d.ts
1169
+ /** Replace template keys with values. */
2003
1170
  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. */
1171
+ // File: src/functions/arrFill.d.ts
1172
+ /** Create array filled with value. */
2006
1173
  export declare function arrFill<T>(value: T, count: number): T[];
2007
- // File: functions/blobToBase64.d.ts
2008
- /** Converts Blob to Base64. */
1174
+ // File: src/functions/blobToBase64.d.ts
1175
+ /** Blob to Base64 string. */
2009
1176
  export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
2010
- // File: functions/capitalize.d.ts
2011
- /** Capitalizes first letter. */
1177
+ // File: src/functions/capitalize.d.ts
1178
+ /** Capitalize first letter. */
2012
1179
  export declare function capitalize(value: string, isLocale?: boolean): string;
2013
- // File: functions/copyObject.d.ts
2014
- /** Deep copy of object. */
1180
+ // File: src/functions/copyObject.d.ts
1181
+ /** Deep copy object. */
2015
1182
  export declare function copyObject<T>(value: T): T;
2016
- // File: functions/copyObjectLite.d.ts
2017
- /** Shallow copy of simple object. */
1183
+ // File: src/functions/copyObjectLite.d.ts
1184
+ /** Shallow copy object. */
2018
1185
  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
- */
1186
+ // File: src/functions/createElement.d.ts
1187
+ /** @remarks call only in client-side hooks. */
2024
1188
  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. */
1189
+ // File: src/functions/domQuerySelector.d.ts
2027
1190
  export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
2028
- // File: functions/domQuerySelectorAll.d.ts
2029
- /** Returns all matched elements. */
1191
+ // File: src/functions/domQuerySelectorAll.d.ts
2030
1192
  export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
2031
- // File: functions/encodeAttribute.d.ts
2032
- /** Encodes for HTML attributes. */
1193
+ // File: src/functions/encodeAttribute.d.ts
2033
1194
  export declare function encodeAttribute(text: string): string;
2034
- // File: functions/encodeLiteAttribute.d.ts
2035
- /** Lightly encodes for HTML attributes. */
1195
+ // File: src/functions/encodeLiteAttribute.d.ts
2036
1196
  export declare function encodeLiteAttribute(text: string): string;
2037
- // File: functions/ensureMaxSize.d.ts
2038
- /** Resizes image if it exceeds max size. */
1197
+ // File: src/functions/ensureMaxSize.d.ts
1198
+ /** Resize image if too large. */
2039
1199
  export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
2040
- // File: functions/escapeExp.d.ts
2041
- /** Escapes special regex characters. */
1200
+ // File: src/functions/escapeExp.d.ts
1201
+ /** Escape regex special chars. */
2042
1202
  export declare function escapeExp(value: string): string;
2043
- // File: functions/eventStopPropagation.d.ts
2044
- /** Stops event propagation. */
1203
+ // File: src/functions/eventStopPropagation.d.ts
2045
1204
  export declare function eventStopPropagation(event: Event): void;
2046
- // File: functions/executeFunction.d.ts
2047
- /** Executes argument if function, else returns value. */
1205
+ // File: src/functions/executeFunction.d.ts
1206
+ /** Execute if function, else return. */
2048
1207
  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. */
1208
+ // File: src/functions/executePromise.d.ts
1209
+ /** Execute and await result. */
2051
1210
  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. */
1211
+ // File: src/functions/forEach.d.ts
1212
+ /** Object/Array/Map/Set iteration with results. */
2054
1213
  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. */
1214
+ // File: src/functions/frame.d.ts
1215
+ /** Cyclic requestAnimationFrame. */
2057
1216
  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. */
1217
+ // File: src/functions/getArrayHighlightMatch.d.ts
1218
+ /** Split string into segments for highlighting. */
2060
1219
  export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
2061
- // File: functions/getAttributes.d.ts
2062
- /** Gets attributes record of element. */
1220
+ // File: src/functions/getAttributes.d.ts
2063
1221
  export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
2064
- // File: functions/getClipboardData.d.ts
2065
- /** Retrieves clipboard string. */
1222
+ // File: src/functions/getClipboardData.d.ts
2066
1223
  export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
2067
- // File: functions/getColumn.d.ts
2068
- /** Returns array of specific column values. */
1224
+ // File: src/functions/getColumn.d.ts
1225
+ /** Get values from specific key across array. */
2069
1226
  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
- */
1227
+ // File: src/functions/getCurrentDate.d.ts
1228
+ /** @remarks SSR usage causes hydration mismatch. */
2075
1229
  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
- */
1230
+ // File: src/functions/getCurrentTime.d.ts
1231
+ /** @remarks SSR usage causes hydration mismatch. */
2081
1232
  export declare function getCurrentTime(): number;
2082
- // File: functions/getElement.d.ts
2083
- /** Returns first matched Element. */
1233
+ // File: src/functions/getElement.d.ts
2084
1234
  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. */
1235
+ // File: src/functions/getElementId.d.ts
1236
+ /** @warning SSR initialization required. */
2087
1237
  export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
2088
- /**
2089
- * Initializes getElementId.
2090
- * @warning Mandatory for SSR.
2091
- */
2092
1238
  export declare function initGetElementId(newListener: () => string | number): void;
2093
- // File: functions/getElementImage.d.ts
2094
- /** Gets Image element from source. */
1239
+ // File: src/functions/getElementImage.d.ts
2095
1240
  export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
2096
- // File: functions/getElementItem.d.ts
2097
- /** Returns element property value. */
1241
+ // File: src/functions/getElementItem.d.ts
2098
1242
  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. */
1243
+ // File: src/functions/getElementOrWindow.d.ts
2101
1244
  export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
2102
- // File: functions/getElementSafeScript.d.ts
2103
- /** Generates script tag for hydration. */
1245
+ // File: src/functions/getElementSafeScript.d.ts
1246
+ /** Safe script for hydration. */
2104
1247
  export declare function getElementSafeScript(id: string, data: any): string;
2105
- // File: functions/getExactSearchExp.d.ts
2106
- /** Regex for exact case-insensitive phrase match. */
1248
+ // File: src/functions/getExactSearchExp.d.ts
2107
1249
  export declare function getExactSearchExp(search: string): RegExp;
2108
- // File: functions/getExp.d.ts
2109
- /** Creates RegExp from template. */
1250
+ // File: src/functions/getExp.d.ts
2110
1251
  export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
2111
- // File: functions/getHydrationData.d.ts
2112
- /** Parses JSON from script tag. */
1252
+ // File: src/functions/getFirst.d.ts
1253
+ export declare function getFirst<T>(value: T | T[] | Record<string, T>): T | undefined;
1254
+ // File: src/functions/getHydrationData.d.ts
2113
1255
  export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
2114
- // File: functions/getItemByPath.d.ts
2115
- /** Returns data by path string. */
1256
+ // File: src/functions/getItemByPath.d.ts
2116
1257
  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. */
1258
+ // File: src/functions/getKey.d.ts
2119
1259
  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. */
1260
+ // File: src/functions/getLengthOfAllArray.d.ts
2125
1261
  export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
1262
+ // File: src/functions/getMaxLengthAllArray.d.ts
2126
1263
  export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
2127
- // File: functions/getMinLengthAllArray.d.ts
2128
- /** Returns length of shortest string. */
1264
+ // File: src/functions/getMinLengthAllArray.d.ts
2129
1265
  export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
2130
- // File: functions/getMouseClient.d.ts
2131
- /** Returns mouse/click coordinates. */
1266
+ // File: src/functions/getMouseClient.d.ts
2132
1267
  export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
2133
- // File: functions/getMouseClientX.d.ts
2134
- /** Returns X coordinate. */
1268
+ // File: src/functions/getMouseClientX.d.ts
2135
1269
  export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
2136
- // File: functions/getMouseClientY.d.ts
2137
- /** Returns Y coordinate. */
1270
+ // File: src/functions/getMouseClientY.d.ts
2138
1271
  export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
2139
- // File: functions/getObjectByKeys.d.ts
2140
- /** New object with specified keys. */
1272
+ // File: src/functions/getObjectByKeys.d.ts
2141
1273
  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. */
1274
+ // File: src/functions/getObjectNoUndefined.d.ts
2144
1275
  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. */
1276
+ // File: src/functions/getObjectOrNone.d.ts
2147
1277
  export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
2148
- // File: functions/getOnlyText.d.ts
2149
- /** Keeps letters, numbers, spaces. */
1278
+ // File: src/functions/getOnlyText.d.ts
2150
1279
  export declare function getOnlyText(text: any): string;
2151
- // File: functions/getRandomText.d.ts
2152
- /** Generates random text. */
1280
+ // File: src/functions/getRandomText.d.ts
2153
1281
  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. */
1282
+ // File: src/functions/getRequestString.d.ts
1283
+ /** Formatted key-value string for requests. */
2156
1284
  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. */
1285
+ // File: src/functions/getSearchExp.d.ts
1286
+ /** Case-insensitive global multi-word match RegExp. */
2159
1287
  export declare function getSearchExp(search: string, limit?: number): RegExp;
2160
- // File: functions/getSeparatingSearchExp.d.ts
2161
- /** RegExp for search by space-separated words. */
1288
+ // File: src/functions/getSeparatingSearchExp.d.ts
2162
1289
  export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
2163
- // File: functions/getStepPercent.d.ts
2164
- /** Step unit in percent. */
1290
+ // File: src/functions/getStepPercent.d.ts
2165
1291
  export declare function getStepPercent(min: number | undefined, max: number): number;
2166
- // File: functions/getStepValue.d.ts
2167
- /** Step unit value. */
1292
+ // File: src/functions/getStepValue.d.ts
2168
1293
  export declare function getStepValue(min: number | undefined, max: number): number;
2169
- // File: functions/goScroll.d.ts
2170
- /** Quick scroll to element. */
1294
+ // File: src/functions/goScroll.d.ts
2171
1295
  export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
2172
- // File: functions/goScrollSmooth.d.ts
2173
- /** Smooth scroll to element. */
1296
+ // File: src/functions/goScrollSmooth.d.ts
2174
1297
  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. */
1298
+ // File: src/functions/goScrollTo.d.ts
2177
1299
  export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
2178
- // File: functions/handleShare.d.ts
1300
+ // File: src/functions/handleShare.d.ts
2179
1301
  /** Web Share API wrapper. */
2180
1302
  export declare function handleShare(data: ShareData): Promise<boolean>;
2181
- // File: functions/inArray.d.ts
2182
- /** Checks value in array. */
1303
+ // File: src/functions/inArray.d.ts
2183
1304
  export declare function inArray<T>(array: T[], value: T): boolean;
2184
- // File: functions/initScrollbarOffset.d.ts
2185
- /** Init scroll control data. */
1305
+ // File: src/functions/initScrollbarOffset.d.ts
2186
1306
  export declare function initScrollbarOffset(): Promise<void>;
2187
- // File: functions/intersectKey.d.ts
2188
- /** Intersection of arrays using keys. */
1307
+ // File: src/functions/intersectKey.d.ts
2189
1308
  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. */
1309
+ // File: src/functions/isApiSuccess.d.ts
2192
1310
  export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
2193
- // File: functions/isArray.d.ts
2194
- /** Checks if array. */
1311
+ // File: src/functions/isArray.d.ts
2195
1312
  export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
2196
- // File: functions/isDifferent.d.ts
2197
- /** Checks object value difference. */
1313
+ // File: src/functions/isDifferent.d.ts
2198
1314
  export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
2199
- // File: functions/isDomData.d.ts
2200
- /** Checks for data URL environment. */
1315
+ // File: src/functions/isDomData.d.ts
2201
1316
  export declare function isDomData(): boolean;
2202
- // File: functions/isDomRuntime.d.ts
2203
- /** Checks if window available. */
1317
+ // File: src/functions/isDomRuntime.d.ts
2204
1318
  export declare function isDomRuntime(): boolean;
2205
- // File: functions/isElementVisible.d.ts
2206
- /** Checks CSS visibility and DOM presence. */
1319
+ // File: src/functions/isElementVisible.d.ts
2207
1320
  export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
2208
- // File: functions/isEnter.d.ts
2209
- /** Checks Enter/Space key. */
1321
+ // File: src/functions/isEnter.d.ts
2210
1322
  export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
2211
- // File: functions/isFilled.d.ts
2212
- /** Checks if field filled. */
1323
+ // File: src/functions/isFilled.d.ts
2213
1324
  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. */
1325
+ // File: src/functions/isFloat.d.ts
2216
1326
  export declare function isFloat(value: any): boolean;
2217
- // File: functions/isFunction.d.ts
2218
- /** Checks if function. */
1327
+ // File: src/functions/isFunction.d.ts
2219
1328
  export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
2220
- // File: functions/isInDom.d.ts
2221
- /** Checks DOM presence. */
1329
+ // File: src/functions/isInDom.d.ts
2222
1330
  export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
2223
- // File: functions/isInput.d.ts
2224
- /** Checks if input/editable. */
1331
+ // File: src/functions/isInput.d.ts
2225
1332
  export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
2226
- // File: functions/isIntegerBetween.d.ts
2227
- /** Checks if between integers. */
1333
+ // File: src/functions/isIntegerBetween.d.ts
2228
1334
  export declare function isIntegerBetween(value: number, between: number): boolean;
2229
- // File: functions/isNull.d.ts
2230
- /** Checks null/undefined. */
1335
+ // File: src/functions/isNull.d.ts
2231
1336
  export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
2232
- // File: functions/isNumber.d.ts
2233
- /** Checks if number. */
1337
+ // File: src/functions/isNumber.d.ts
2234
1338
  export declare function isNumber(value: any): boolean;
2235
- // File: functions/isObject.d.ts
2236
- /** Checks if object. */
1339
+ // File: src/functions/isObject.d.ts
2237
1340
  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. */
1341
+ // File: src/functions/isObjectNotArray.d.ts
2240
1342
  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. */
1343
+ // File: src/functions/isOnLine.d.ts
2243
1344
  export declare function isOnLine(): boolean;
2244
- // File: functions/isSelected.d.ts
2245
- /** Checks value in selected array/string. */
1345
+ // File: src/functions/isSelected.d.ts
2246
1346
  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. */
1347
+ // File: src/functions/isSelectedByList.d.ts
2249
1348
  export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
2250
- // File: functions/isShare.d.ts
2251
- /** Checks Web Share API support. */
1349
+ // File: src/functions/isShare.d.ts
2252
1350
  export declare function isShare(): boolean;
2253
- // File: functions/isString.d.ts
2254
- /** Checks if string. */
1351
+ // File: src/functions/isString.d.ts
2255
1352
  export declare function isString<T>(value: T): value is Extract<T, string>;
2256
- // File: functions/isWindow.d.ts
2257
- /** Checks if Window. */
1353
+ // File: src/functions/isWindow.d.ts
2258
1354
  export declare function isWindow<E>(element: E): element is Extract<E, Window>;
2259
- // File: functions/random.d.ts
2260
- /** Random integer generator. */
1355
+ // File: src/functions/random.d.ts
2261
1356
  export declare function random(min: number, max: number): number;
2262
- // File: functions/removeCommonPrefix.d.ts
2263
- /** Removes prefix from string. */
1357
+ // File: src/functions/removeCommonPrefix.d.ts
2264
1358
  export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
2265
- // File: functions/replaceComponentName.d.ts
2266
- /** Replaces component name in text. */
1359
+ // File: src/functions/replaceComponentName.d.ts
2267
1360
  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. */
1361
+ // File: src/functions/replaceRecursive.d.ts
2270
1362
  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. */
1363
+ // File: src/functions/replaceTemplate.d.ts
2273
1364
  export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
2274
- // File: functions/resizeImageByMax.d.ts
1365
+ // File: src/functions/resizeImageByMax.d.ts
2275
1366
  type ResizeImageByMaxType = 'auto' | 'width' | 'height';
2276
- /** Resizes image within max constraint. */
2277
1367
  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. */
1368
+ // File: src/functions/secondToTime.d.ts
2280
1369
  export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
2281
- // File: functions/setElementItem.d.ts
2282
- /** Modifies element property. */
1370
+ // File: src/functions/setElementItem.d.ts
2283
1371
  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). */
1372
+ // File: src/functions/setValues.d.ts
2286
1373
  export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
2287
1374
  multiple?: boolean | undefined;
2288
1375
  maxlength?: number | undefined;
2289
1376
  alwaysChange?: boolean | undefined;
2290
1377
  notEmpty?: boolean | undefined;
2291
1378
  }): T | T[] | undefined;
2292
- // File: functions/sleep.d.ts
2293
- /** ms delay promise. */
1379
+ // File: src/functions/sleep.d.ts
2294
1380
  export declare function sleep(ms: number): Promise<void>;
2295
- // File: functions/splice.d.ts
2296
- /** enumerable property copy into target object. */
1381
+ // File: src/functions/splice.d.ts
2297
1382
  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. */
1383
+ // File: src/functions/strFill.d.ts
2300
1384
  export declare function strFill(value: string, count: number): string;
2301
- // File: functions/strSplit.d.ts
2302
- /** Splitting with limit. Last element contains remainder. */
1385
+ // File: src/functions/strSplit.d.ts
2303
1386
  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. */
1387
+ // File: src/functions/toArray.d.ts
2306
1388
  export declare function toArray<T>(value: T): T extends any[] ? T : [T];
2307
- // File: functions/toCamelCase.d.ts
2308
- /** Camel case (upper). */
1389
+ // File: src/functions/toCamelCase.d.ts
2309
1390
  export declare function toCamelCase(value: string): string;
2310
- // File: functions/toCamelCaseFirst.d.ts
2311
- /** Camel case with first letter upper. */
1391
+ // File: src/functions/toCamelCaseFirst.d.ts
2312
1392
  export declare function toCamelCaseFirst(value: string): string;
2313
- // File: functions/toDate.d.ts
2314
- /** Date object conversion. */
1393
+ // File: src/functions/toDate.d.ts
2315
1394
  export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
2316
- // File: functions/toKebabCase.d.ts
2317
- /** Kebab-case conversion. */
1395
+ // File: src/functions/toKebabCase.d.ts
2318
1396
  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
- */
1397
+ // File: src/functions/toNumber.d.ts
1398
+ /** @example toNumber("1 234,56") // 1234.56 */
2324
1399
  export declare function toNumber(value?: NumberOrString): number;
2325
- // File: functions/toNumberByMax.d.ts
2326
- /** Number conversion with max limit and formatting. */
1400
+ // File: src/functions/toNumberByMax.d.ts
2327
1401
  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. */
1402
+ // File: src/functions/toPercent.d.ts
2330
1403
  export declare function toPercent(maxValue: number, value: number): number;
2331
- // File: functions/toPercentBy100.d.ts
2332
- /** Percentage * 100 conversion. */
1404
+ // File: src/functions/toPercentBy100.d.ts
2333
1405
  export declare function toPercentBy100(maxValue: number, value: number): number;
2334
- // File: functions/toString.d.ts
2335
- /** String conversion. Empty if null/undefined. */
1406
+ // File: src/functions/toString.d.ts
2336
1407
  export declare function toString<T>(value: T): string;
2337
- // File: functions/transformation.d.ts
2338
- /** Transforms string to inferred type (null, boolean, object, function). */
1408
+ // File: src/functions/transformation.d.ts
2339
1409
  export declare function transformation(value: any, isFunction?: boolean): any;
2340
- // File: functions/uint8ArrayToBase64.d.ts
2341
- /** Uint8Array to base64 string. */
1410
+ // File: src/functions/uint8ArrayToBase64.d.ts
2342
1411
  export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
2343
- // File: functions/uniqueArray.d.ts
2344
- /** Removes duplicates. */
1412
+ // File: src/functions/uniqueArray.d.ts
2345
1413
  export declare function uniqueArray<T>(value: T[]): T[];
2346
- // File: functions/writeClipboardData.d.ts
2347
- /** Writes string to buffer. */
1414
+ // File: src/functions/writeClipboardData.d.ts
2348
1415
  export declare function writeClipboardData(text: string): Promise<void>;
2349
- // File: types/apiTypes.d.ts
1416
+ // File: src/library.d.ts
1417
+ export * from './classes/Api';
1418
+ export * from './classes/ApiCache';
1419
+ export * from './classes/ApiDataReturn';
1420
+ export * from './classes/ApiDefault';
1421
+ export * from './classes/ApiError';
1422
+ export * from './classes/ApiErrorItem';
1423
+ export * from './classes/ApiErrorStorage';
1424
+ export * from './classes/ApiHeaders';
1425
+ export * from './classes/ApiHydration';
1426
+ export * from './classes/ApiInstance';
1427
+ export * from './classes/ApiPreparation';
1428
+ export * from './classes/ApiResponse';
1429
+ export * from './classes/ApiStatus';
1430
+ export * from './classes/BroadcastMessage';
1431
+ export * from './classes/Cache';
1432
+ export * from './classes/CacheItem';
1433
+ export * from './classes/CacheStatic';
1434
+ export * from './classes/Cookie';
1435
+ export * from './classes/CookieBlock';
1436
+ export * from './classes/CookieBlockInstance';
1437
+ export * from './classes/CookieStorage';
1438
+ export * from './classes/DataStorage';
1439
+ export * from './classes/Datetime';
1440
+ export * from './classes/ErrorCenter';
1441
+ export * from './classes/ErrorCenterHandler';
1442
+ export * from './classes/ErrorCenterInstance';
1443
+ export * from './classes/EventItem';
1444
+ export * from './classes/Formatters';
1445
+ export * from './classes/Geo';
1446
+ export * from './classes/GeoFlag';
1447
+ export * from './classes/GeoInstance';
1448
+ export * from './classes/GeoIntl';
1449
+ export * from './classes/GeoPhone';
1450
+ export * from './classes/Global';
1451
+ export * from './classes/Hash';
1452
+ export * from './classes/HashInstance';
1453
+ export * from './classes/Icons';
1454
+ export * from './classes/Loading';
1455
+ export * from './classes/LoadingInstance';
1456
+ export * from './classes/Meta';
1457
+ export * from './classes/MetaManager';
1458
+ export * from './classes/MetaOg';
1459
+ export * from './classes/MetaStatic';
1460
+ export * from './classes/MetaTwitter';
1461
+ export * from './classes/ResumableTimer';
1462
+ export * from './classes/ScrollbarWidth';
1463
+ export * from './classes/SearchList';
1464
+ export * from './classes/SearchListData';
1465
+ export * from './classes/SearchListItem';
1466
+ export * from './classes/SearchListMatcher';
1467
+ export * from './classes/SearchListOptions';
1468
+ export * from './classes/ServerStorage';
1469
+ export * from './classes/StorageCallback';
1470
+ export * from './classes/Translate';
1471
+ export * from './classes/TranslateFile';
1472
+ export * from './classes/TranslateInstance';
1473
+ export * from './functions/addTagHighlightMatch';
1474
+ export * from './functions/anyToString';
1475
+ export * from './functions/applyTemplate';
1476
+ export * from './functions/arrFill';
1477
+ export * from './functions/blobToBase64';
1478
+ export * from './functions/capitalize';
1479
+ export * from './functions/copyObject';
1480
+ export * from './functions/copyObjectLite';
1481
+ export * from './functions/createElement';
1482
+ export * from './functions/domQuerySelector';
1483
+ export * from './functions/domQuerySelectorAll';
1484
+ export * from './functions/encodeAttribute';
1485
+ export * from './functions/encodeLiteAttribute';
1486
+ export * from './functions/ensureMaxSize';
1487
+ export * from './functions/escapeExp';
1488
+ export * from './functions/eventStopPropagation';
1489
+ export * from './functions/executeFunction';
1490
+ export * from './functions/executePromise';
1491
+ export * from './functions/forEach';
1492
+ export * from './functions/frame';
1493
+ export * from './functions/getArrayHighlightMatch';
1494
+ export * from './functions/getAttributes';
1495
+ export * from './functions/getClipboardData';
1496
+ export * from './functions/getColumn';
1497
+ export * from './functions/getCurrentDate';
1498
+ export * from './functions/getCurrentTime';
1499
+ export * from './functions/getElement';
1500
+ export * from './functions/getElementId';
1501
+ export * from './functions/getElementImage';
1502
+ export * from './functions/getElementItem';
1503
+ export * from './functions/getElementOrWindow';
1504
+ export * from './functions/getElementSafeScript';
1505
+ export * from './functions/getExactSearchExp';
1506
+ export * from './functions/getExp';
1507
+ export * from './functions/getFirst';
1508
+ export * from './functions/getHydrationData';
1509
+ export * from './functions/getItemByPath';
1510
+ export * from './functions/getKey';
1511
+ export * from './functions/getLengthOfAllArray';
1512
+ export * from './functions/getMaxLengthAllArray';
1513
+ export * from './functions/getMinLengthAllArray';
1514
+ export * from './functions/getMouseClient';
1515
+ export * from './functions/getMouseClientX';
1516
+ export * from './functions/getMouseClientY';
1517
+ export * from './functions/getObjectByKeys';
1518
+ export * from './functions/getObjectNoUndefined';
1519
+ export * from './functions/getObjectOrNone';
1520
+ export * from './functions/getOnlyText';
1521
+ export * from './functions/getRandomText';
1522
+ export * from './functions/getRequestString';
1523
+ export * from './functions/getSearchExp';
1524
+ export * from './functions/getSeparatingSearchExp';
1525
+ export * from './functions/getStepPercent';
1526
+ export * from './functions/getStepValue';
1527
+ export * from './functions/goScroll';
1528
+ export * from './functions/goScrollSmooth';
1529
+ export * from './functions/goScrollTo';
1530
+ export * from './functions/handleShare';
1531
+ export * from './functions/inArray';
1532
+ export * from './functions/initScrollbarOffset';
1533
+ export * from './functions/intersectKey';
1534
+ export * from './functions/isApiSuccess';
1535
+ export * from './functions/isArray';
1536
+ export * from './functions/isDifferent';
1537
+ export * from './functions/isDomData';
1538
+ export * from './functions/isDomRuntime';
1539
+ export * from './functions/isElementVisible';
1540
+ export * from './functions/isEnter';
1541
+ export * from './functions/isFilled';
1542
+ export * from './functions/isFloat';
1543
+ export * from './functions/isFunction';
1544
+ export * from './functions/isInDom';
1545
+ export * from './functions/isInput';
1546
+ export * from './functions/isIntegerBetween';
1547
+ export * from './functions/isNull';
1548
+ export * from './functions/isNumber';
1549
+ export * from './functions/isObject';
1550
+ export * from './functions/isObjectNotArray';
1551
+ export * from './functions/isOnLine';
1552
+ export * from './functions/isSelected';
1553
+ export * from './functions/isSelectedByList';
1554
+ export * from './functions/isShare';
1555
+ export * from './functions/isString';
1556
+ export * from './functions/isWindow';
1557
+ export * from './functions/random';
1558
+ export * from './functions/removeCommonPrefix';
1559
+ export * from './functions/replaceComponentName';
1560
+ export * from './functions/replaceRecursive';
1561
+ export * from './functions/replaceTemplate';
1562
+ export * from './functions/resizeImageByMax';
1563
+ export * from './functions/secondToTime';
1564
+ export * from './functions/setElementItem';
1565
+ export * from './functions/setValues';
1566
+ export * from './functions/sleep';
1567
+ export * from './functions/splice';
1568
+ export * from './functions/strFill';
1569
+ export * from './functions/strSplit';
1570
+ export * from './functions/toArray';
1571
+ export * from './functions/toCamelCase';
1572
+ export * from './functions/toCamelCaseFirst';
1573
+ export * from './functions/toDate';
1574
+ export * from './functions/toKebabCase';
1575
+ export * from './functions/toNumber';
1576
+ export * from './functions/toNumberByMax';
1577
+ export * from './functions/toPercent';
1578
+ export * from './functions/toPercentBy100';
1579
+ export * from './functions/toString';
1580
+ export * from './functions/transformation';
1581
+ export * from './functions/uint8ArrayToBase64';
1582
+ export * from './functions/uniqueArray';
1583
+ export * from './functions/writeClipboardData';
1584
+ export * from './types/apiTypes';
1585
+ export * from './types/basicTypes';
1586
+ export * from './types/errorCenter';
1587
+ export * from './types/formattersTypes';
1588
+ export * from './types/geoTypes';
1589
+ export * from './types/metaTypes';
1590
+ export * from './types/searchTypes';
1591
+ export * from './types/translateTypes';
1592
+ // File: src/media/errorCauseList.d.ts
1593
+ export declare const errorCauseList: ErrorCenterCauseList;
1594
+ // File: src/types/apiTypes.d.ts
1595
+ /** HTTP methods for API requests. */
2350
1596
  export declare enum ApiMethodItem {
2351
1597
  delete = "DELETE",
2352
1598
  get = "GET",
@@ -2363,24 +1609,31 @@ export type ApiCacheList = Record<string, ApiCacheItem>;
2363
1609
  export type ApiConfig = {
2364
1610
  urlRoot?: string;
2365
1611
  origin?: string;
2366
- headers?: Record<string, string>;
2367
- requestDefault?: Record<string, any>;
1612
+ headers?: ApiHeadersValue;
1613
+ requestDefault?: ApiDefaultValue;
2368
1614
  preparation?: (apiFetch: ApiFetch) => Promise<void>;
2369
1615
  end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
2370
1616
  timeout?: number;
1617
+ devMode?: boolean;
2371
1618
  };
2372
1619
  export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
2373
1620
  export type ApiDataValidation = {
2374
1621
  status?: ApiStatusType;
2375
1622
  code?: string | number;
2376
1623
  message?: string;
1624
+ error?: {
1625
+ code?: string | number;
1626
+ message?: string;
1627
+ };
2377
1628
  };
2378
1629
  export type ApiDataItem<T = any> = T & ApiDataValidation & {
2379
1630
  data?: T;
2380
1631
  success?: boolean;
2381
1632
  statusObject?: ApiStatusItem;
1633
+ errorObject?: ApiErrorItem;
2382
1634
  };
2383
- export type ApiDefaultValue = Record<string, any>;
1635
+ export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
1636
+ export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
2384
1637
  export type ApiFetch = {
2385
1638
  api?: boolean;
2386
1639
  path?: string;
@@ -2401,6 +1654,7 @@ export type ApiFetch = {
2401
1654
  globalPreparation?: boolean;
2402
1655
  globalEnd?: boolean;
2403
1656
  init?: RequestInit;
1657
+ initError?: boolean;
2404
1658
  timeout?: number;
2405
1659
  controller?: AbortController;
2406
1660
  cache?: number;
@@ -2415,6 +1669,15 @@ export type ApiHydrationItem = {
2415
1669
  response: any;
2416
1670
  };
2417
1671
  export type ApiHydrationList = ApiHydrationItem[];
1672
+ export type ApiErrorStorageItem = {
1673
+ url: string | RegExp;
1674
+ method: ApiMethodItem;
1675
+ code?: string;
1676
+ status?: number;
1677
+ validation?: (response: Response) => boolean;
1678
+ message?: string | ((response?: Response) => string);
1679
+ };
1680
+ export type ApiErrorStorageList = ApiErrorStorageItem[];
2418
1681
  export type ApiMethod = string | ApiMethodItem;
2419
1682
  export type ApiPreparationEnd = {
2420
1683
  reset?: boolean;
@@ -2439,7 +1702,7 @@ export type ApiStatusItem = {
2439
1702
  lastMessage?: string;
2440
1703
  };
2441
1704
  export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
2442
- // File: types/basicTypes.d.ts
1705
+ // File: src/types/basicTypes.d.ts
2443
1706
  export type Undefined = undefined | null;
2444
1707
  export type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'null' | '0' | 'false' | '[]';
2445
1708
  export type NumberOrString = number | string;
@@ -2481,7 +1744,7 @@ export type ImageCoordinator = {
2481
1744
  x: number;
2482
1745
  y: number;
2483
1746
  };
2484
- // File: types/errorCenter.d.ts
1747
+ // File: src/types/errorCenter.d.ts
2485
1748
  export type ErrorCenterGroup = string | undefined;
2486
1749
  export type ErrorCenterCauseItem = {
2487
1750
  group?: ErrorCenterGroup;
@@ -2498,7 +1761,7 @@ export type ErrorCenterHandlerItem = {
2498
1761
  handlers: ErrorCenterHandlerCallback[];
2499
1762
  };
2500
1763
  export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
2501
- // File: types/formattersTypes.d.ts
1764
+ // File: src/types/formattersTypes.d.ts
2502
1765
  export declare enum FormattersType {
2503
1766
  currency = "currency",
2504
1767
  date = "date",
@@ -2555,7 +1818,7 @@ export type FormattersListColumns<T extends FormattersListItem, O extends Format
2555
1818
  export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
2556
1819
  export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
2557
1820
  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
1821
+ // File: src/types/geoTypes.d.ts
2559
1822
  export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
2560
1823
  export type GeoFirstDay = 1 | 6 | 0;
2561
1824
  export type GeoHours = '12' | '24';
@@ -2607,7 +1870,8 @@ export interface GeoPhoneMapInfo {
2607
1870
  item?: GeoPhoneMap;
2608
1871
  phone?: string;
2609
1872
  }
2610
- // File: types/metaTypes.d.ts
1873
+ // File: src/types/metaTypes.d.ts
1874
+ /** Standard HTML meta tags. */
2611
1875
  export declare enum MetaTag {
2612
1876
  title = "title",
2613
1877
  description = "description",
@@ -2622,15 +1886,16 @@ export declare enum MetaRobots {
2622
1886
  indexNoFollow = "index, nofollow",
2623
1887
  noIndexNoFollow = "noindex, nofollow",
2624
1888
  noArchive = "noarchive",
2625
- noSnippet = "nosnippet",
2626
- noImageIndex = "noimageindex",
1889
+ nosnippet = "nosnippet",
1890
+ noimageindex = "noimageindex",
2627
1891
  images = "images",
2628
- noTranslate = "notranslate",
2629
- noPreview = "nopreview",
1892
+ notranslate = "notranslate",
1893
+ nopreview = "nopreview",
2630
1894
  textOnly = "textonly",
2631
1895
  noIndexSubpages = "noindex, noarchive",
2632
1896
  none = "none"
2633
1897
  }
1898
+ /** Open Graph tags. */
2634
1899
  export declare enum MetaOpenGraphTag {
2635
1900
  title = "og:title",
2636
1901
  type = "og:type",
@@ -2706,6 +1971,7 @@ export declare enum MetaOpenGraphTag {
2706
1971
  productAgeGroup = "product:age_group",
2707
1972
  productGender = "product:gender"
2708
1973
  }
1974
+ /** Open Graph content types. */
2709
1975
  export declare enum MetaOpenGraphType {
2710
1976
  website = "website",
2711
1977
  article = "article",
@@ -2750,6 +2016,7 @@ export declare enum MetaOpenGraphGender {
2750
2016
  male = "male",
2751
2017
  unisex = "unisex"
2752
2018
  }
2019
+ /** Twitter Card tags. */
2753
2020
  export declare enum MetaTwitterTag {
2754
2021
  card = "twitter:card",
2755
2022
  site = "twitter:site",
@@ -2781,6 +2048,7 @@ export declare enum MetaTwitterTag {
2781
2048
  playerStream = "twitter:player:stream",
2782
2049
  playerStreamContentType = "twitter:player:stream:content_type"
2783
2050
  }
2051
+ /** Twitter Card types. */
2784
2052
  export declare enum MetaTwitterCard {
2785
2053
  summary = "summary",
2786
2054
  summaryLargeImage = "summary_large_image",
@@ -2793,7 +2061,7 @@ export declare enum MetaTwitterCard {
2793
2061
  audio = "audio",
2794
2062
  poll = "poll"
2795
2063
  }
2796
- // File: types/searchTypes.d.ts
2064
+ // File: src/types/searchTypes.d.ts
2797
2065
  export type SearchItem = Record<string, any>;
2798
2066
  export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
2799
2067
  export type SearchColumn<T extends SearchItem> = {
@@ -2825,7 +2093,7 @@ export type HighlightMatchItem = {
2825
2093
  text: string;
2826
2094
  isMatch: boolean;
2827
2095
  };
2828
- // File: types/translateTypes.d.ts
2096
+ // File: src/types/translateTypes.d.ts
2829
2097
  export type TranslateConfig = {
2830
2098
  url?: string;
2831
2099
  propsName?: string;
@@ -2840,6 +2108,4 @@ export type TranslateDataFileList = Record<string, string>;
2840
2108
  export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
2841
2109
  export type TranslateDataFile = Record<string, TranslateDataFileItem>;
2842
2110
  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;
2111
+ export declare const TRANSLATE_TIME_OUT = 160;