@dxtmisha/functional-basic 1.3.6 → 1.3.8

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
@@ -64,7 +64,7 @@ import { ApiStatus } from './ApiStatus';
64
64
  import { ApiErrorItem } from './ApiErrorItem';
65
65
  import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
66
66
  /**
67
- * Class for processing API return data.
67
+ * Class for handling and processing data returned from an API request.
68
68
  */
69
69
  export declare class ApiDataReturn<T = any> {
70
70
  constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
@@ -76,7 +76,7 @@ export declare class ApiDataReturn<T = any> {
76
76
  // File: src/classes/ApiDefault.d.ts
77
77
  import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
78
78
  /**
79
- * Class for default API request data.
79
+ * Class for working with default API request data.
80
80
  */
81
81
  export declare class ApiDefault {
82
82
  is(): boolean;
@@ -87,19 +87,19 @@ export declare class ApiDefault {
87
87
  // File: src/classes/ApiError.d.ts
88
88
  import { ApiErrorItem } from './ApiErrorItem';
89
89
  import { ApiErrorStorage } from './ApiErrorStorage';
90
- import { ApiMethodItem } from '../types/apiTypes';
90
+ import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
91
91
  /**
92
- * Utility for API error storage.
92
+ * Utility class for managing the API error storage and creating error items.
93
93
  */
94
94
  export declare class ApiError {
95
95
  static getStorage(): ApiErrorStorage;
96
- static add(item: any, url?: string | RegExp, method?: ApiMethodItem): void;
96
+ static add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): void;
97
97
  static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
98
98
  }
99
99
  // File: src/classes/ApiErrorItem.d.ts
100
100
  import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
101
101
  /**
102
- * Class for extracting API error response data.
102
+ * Class for managing and extracting data from an API error response.
103
103
  */
104
104
  export declare class ApiErrorItem {
105
105
  constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
@@ -113,11 +113,11 @@ export declare class ApiErrorItem {
113
113
  // File: src/classes/ApiErrorStorage.d.ts
114
114
  import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
115
115
  /**
116
- * Manager for API error states.
116
+ * Manager for handling and identifying API error states.
117
117
  */
118
118
  export declare class ApiErrorStorage {
119
119
  find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
120
- add(item: any, url?: string | RegExp, method?: ApiMethodItem): this;
120
+ add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): this;
121
121
  }
122
122
  // File: src/classes/ApiHeaders.d.ts
123
123
  import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
@@ -133,7 +133,7 @@ export declare class ApiHeaders {
133
133
  import { ApiResponse } from './ApiResponse';
134
134
  import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
135
135
  /**
136
- * Class for SSR client-side hydration.
136
+ * Class for collecting API data for hydration on the client side during SSR.
137
137
  */
138
138
  export declare class ApiHydration {
139
139
  initResponse(response: ApiResponse): void;
@@ -144,6 +144,7 @@ export declare class ApiHydration {
144
144
  import { LoadingInstance } from './LoadingInstance';
145
145
  import { ErrorCenterInstance } from './ErrorCenterInstance';
146
146
  import { ApiDefault } from './ApiDefault';
147
+ import { ApiErrorItem } from './ApiErrorItem';
147
148
  import { ApiHeaders } from './ApiHeaders';
148
149
  import { ApiHydration } from './ApiHydration';
149
150
  import { ApiPreparation } from './ApiPreparation';
@@ -161,7 +162,7 @@ export type ApiInstanceOptions = {
161
162
  hydrationClass?: typeof ApiHydration;
162
163
  };
163
164
  /**
164
- * Core API request manager.
165
+ * Core class for managing HTTP requests using the Fetch API.
165
166
  */
166
167
  export declare class ApiInstance {
167
168
  constructor(url?: string, options?: ApiInstanceOptions);
@@ -191,7 +192,7 @@ export declare class ApiInstance {
191
192
  // File: src/classes/ApiPreparation.d.ts
192
193
  import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
193
194
  /**
194
- * Class for request preparation.
195
+ * Class for preparing requests.
195
196
  */
196
197
  export declare class ApiPreparation {
197
198
  make(active: boolean, apiFetch: ApiFetch): Promise<void>;
@@ -203,7 +204,7 @@ export declare class ApiPreparation {
203
204
  import { ApiDefault } from './ApiDefault';
204
205
  import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
205
206
  /**
206
- * Class for API responses.
207
+ * Class for working with API responses.
207
208
  */
208
209
  export declare class ApiResponse {
209
210
  constructor(requestDefault: ApiDefault);
@@ -217,7 +218,7 @@ export declare class ApiResponse {
217
218
  // File: src/classes/ApiStatus.d.ts
218
219
  import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
219
220
  /**
220
- * Class for API status management.
221
+ * Class for managing API request status.
221
222
  */
222
223
  export declare class ApiStatus {
223
224
  get(): ApiStatusItem | undefined;
@@ -239,7 +240,7 @@ export declare class ApiStatus {
239
240
  // File: src/classes/BroadcastMessage.d.ts
240
241
  import { ErrorCenterInstance } from './ErrorCenterInstance';
241
242
  /**
242
- * Class for BroadcastChannel messages.
243
+ * Class for working with BroadcastChannel messages.
243
244
  */
244
245
  export declare class BroadcastMessage<Message = any> {
245
246
  constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
@@ -251,7 +252,8 @@ export declare class BroadcastMessage<Message = any> {
251
252
  }
252
253
  // File: src/classes/Cache.d.ts
253
254
  /**
254
- * @deprecated
255
+ * Simple in-memory cache class that stores computed values by key.
256
+ * @deprecated This class is obsolete and should not be used
255
257
  */
256
258
  export declare class Cache {
257
259
  get<T>(name: string, callback: () => T, comparison?: any[]): T;
@@ -259,7 +261,8 @@ export declare class Cache {
259
261
  }
260
262
  // File: src/classes/CacheItem.d.ts
261
263
  /**
262
- * @deprecated
264
+ * Class for managing a single cached value with dependency tracking.
265
+ * @deprecated This class is obsolete and should not be used
263
266
  */
264
267
  export declare class CacheItem<T> {
265
268
  constructor(callback: () => T);
@@ -268,8 +271,10 @@ export declare class CacheItem<T> {
268
271
  getCacheAsync(comparison: any[]): Promise<T>;
269
272
  }
270
273
  // File: src/classes/CacheStatic.d.ts
274
+ import { Cache } from './Cache';
271
275
  /**
272
- * @deprecated
276
+ * Static cache class that uses ServerStorage for persistent caching across the application.
277
+ * @deprecated This class is obsolete and should not be used
273
278
  */
274
279
  export declare class CacheStatic {
275
280
  static get<T>(name: string, callback: () => T, comparison?: any[]): T;
@@ -278,7 +283,7 @@ export declare class CacheStatic {
278
283
  // File: src/classes/Cookie.d.ts
279
284
  import { CookieOptions } from './CookieStorage';
280
285
  /**
281
- * Cookie manager.
286
+ * Class for working with cookies.
282
287
  */
283
288
  export declare class Cookie<T> {
284
289
  static getInstance<T>(name: string): Cookie<T>;
@@ -290,7 +295,7 @@ export declare class Cookie<T> {
290
295
  // File: src/classes/CookieBlock.d.ts
291
296
  import { CookieBlockInstance } from './CookieBlockInstance';
292
297
  /**
293
- * Cookie access status.
298
+ * Class for changing cookie access status.
294
299
  */
295
300
  export declare class CookieBlock {
296
301
  static getItem(): CookieBlockInstance;
@@ -298,6 +303,9 @@ export declare class CookieBlock {
298
303
  static set(value: boolean): void;
299
304
  }
300
305
  // File: src/classes/CookieBlockInstance.d.ts
306
+ /**
307
+ * Class for changing cookie access status.
308
+ */
301
309
  export declare class CookieBlockInstance {
302
310
  get(): boolean;
303
311
  set(value: boolean): void;
@@ -315,7 +323,7 @@ export type CookieOptions = {
315
323
  arguments?: string[] | Record<string, string | number | boolean>;
316
324
  };
317
325
  /**
318
- * Cookie storage with listeners.
326
+ * Class for managing cookie storage with support for custom listeners.
319
327
  */
320
328
  export declare class CookieStorage {
321
329
  static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
@@ -328,7 +336,7 @@ export declare class CookieStorage {
328
336
  // File: src/classes/DataStorage.d.ts
329
337
  import { ErrorCenterInstance } from './ErrorCenterInstance';
330
338
  /**
331
- * localStorage/sessionStorage manager.
339
+ * Class for working with localStorage and sessionStorage.
332
340
  */
333
341
  export declare class DataStorage<T> {
334
342
  static setPrefix(newPrefix: string): void;
@@ -343,7 +351,7 @@ import { GeoIntl } from './GeoIntl';
343
351
  import { NumberOrStringOrDate } from '../types/basicTypes';
344
352
  import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
345
353
  /**
346
- * Datetime handling class.
354
+ * A class for working with dates.
347
355
  */
348
356
  export declare class Datetime {
349
357
  constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
@@ -422,7 +430,7 @@ export declare class Datetime {
422
430
  import { ErrorCenterInstance } from './ErrorCenterInstance';
423
431
  import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
424
432
  /**
425
- * API error center.
433
+ * Class for managing error storage and handling.
426
434
  */
427
435
  export declare class ErrorCenter {
428
436
  static getItem(): ErrorCenterInstance;
@@ -435,11 +443,14 @@ export declare class ErrorCenter {
435
443
  static on(cause: ErrorCenterCauseItem): void;
436
444
  }
437
445
  // File: src/classes/ErrorCenterHandler.d.ts
438
- import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
446
+ import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerItem, ErrorCenterHandlerList } from '../types/errorCenter';
447
+ /**
448
+ * Class for managing and triggering error handlers.
449
+ */
439
450
  export declare class ErrorCenterHandler {
440
451
  constructor(handlers?: ErrorCenterHandlerList);
441
452
  has(group: ErrorCenterGroup): boolean;
442
- get(group: ErrorCenterGroup): any;
453
+ get(group: ErrorCenterGroup): ErrorCenterHandlerItem | undefined;
443
454
  add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
444
455
  addList(handlers: ErrorCenterHandlerList): this;
445
456
  on(cause: ErrorCenterCauseItem): this;
@@ -447,6 +458,9 @@ export declare class ErrorCenterHandler {
447
458
  // File: src/classes/ErrorCenterInstance.d.ts
448
459
  import { ErrorCenterHandler } from './ErrorCenterHandler';
449
460
  import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
461
+ /**
462
+ * Class for managing error storage and handling within an instance.
463
+ */
450
464
  export declare class ErrorCenterInstance {
451
465
  constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
452
466
  has(code: string, group?: string): boolean;
@@ -458,9 +472,9 @@ export declare class ErrorCenterInstance {
458
472
  on(cause: ErrorCenterCauseItem): this;
459
473
  }
460
474
  // File: src/classes/EventItem.d.ts
461
- import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
475
+ import { ElementOrString, ElementOrWindow, EventActivityItem, EventListenerDetail, EventOptions } from '../types/basicTypes';
462
476
  /**
463
- * Event listener wrapper.
477
+ * Advanced wrapper for managing event listeners on DOM elements or the `window` object.
464
478
  */
465
479
  export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
466
480
  constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
@@ -479,16 +493,18 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
479
493
  reset(): this;
480
494
  }
481
495
  // File: src/classes/Formatters.d.ts
482
- import { FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersOptionsList, FormattersReturn } from '../types/formattersTypes';
496
+ import { FormattersType, FormattersList, FormattersOptionsList, FormattersOptionsInformation, FormattersOptionsCurrency, FormattersOptionsDate, FormattersOptionsName, FormattersOptionsNumber, FormattersOptionsPlural, FormattersOptionsUnit, FormattersReturn, FormattersListProp, FormattersItemProp } from '../types/formattersTypes';
483
497
  /**
484
- * List formatter.
498
+ * Class for formatting a list of data based on provided options.
485
499
  */
486
500
  export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
487
501
  constructor(options: Options, list?: List | undefined);
488
502
  is(): boolean;
489
- isArray(): boolean;
503
+ isArray(): this is this & {
504
+ list: FormattersList<Item>;
505
+ };
490
506
  length(): number;
491
- getList(): any;
507
+ getList(): FormattersList<Item>;
492
508
  getOptions(): Options;
493
509
  setList(list?: List): this;
494
510
  to(): FormattersReturn<List, Options>;
@@ -497,7 +513,7 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
497
513
  import { GeoInstance } from './GeoInstance';
498
514
  import { GeoItem, GeoItemFull } from '../types/geoTypes';
499
515
  /**
500
- * Geography static utility.
516
+ * Static class for working with geographical data.
501
517
  */
502
518
  export declare class Geo {
503
519
  static getObject(): GeoInstance;
@@ -519,12 +535,14 @@ export declare class Geo {
519
535
  static toStandard(item: GeoItem): string;
520
536
  static set(code: string, save?: boolean): void;
521
537
  static setTimezone(timezone: number): void;
538
+ static setValueDefault(code?: string): void;
522
539
  }
523
540
  // File: src/classes/GeoFlag.d.ts
524
- import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
541
+ import { GeoIntl } from './GeoIntl';
542
+ import { GeoFlagItem, GeoFlagNational, GeoItemFull } from '../types/geoTypes';
525
543
  export declare const GEO_FLAG_ICON_NAME = "f";
526
544
  /**
527
- * Geography flag utility.
545
+ * Class for working with flags and geographic information.
528
546
  */
529
547
  export declare class GeoFlag {
530
548
  static flags: Record<string, string>;
@@ -538,6 +556,10 @@ export declare class GeoFlag {
538
556
  }
539
557
  // File: src/classes/GeoInstance.d.ts
540
558
  import { GeoItem, GeoItemFull } from '../types/geoTypes';
559
+ export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
560
+ /**
561
+ * Base class for working with geographic data.
562
+ */
541
563
  export declare class GeoInstance {
542
564
  constructor();
543
565
  get(): GeoItemFull;
@@ -558,13 +580,15 @@ export declare class GeoInstance {
558
580
  toStandard(item: GeoItem): string;
559
581
  set(code: string, save?: boolean): void;
560
582
  setTimezone(timezone: number): void;
583
+ setValueDefault(code?: string): void;
561
584
  }
562
585
  // File: src/classes/GeoIntl.d.ts
563
586
  import { ErrorCenterInstance } from './ErrorCenterInstance';
564
587
  import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
565
588
  import { GeoDate } from '../types/geoTypes';
566
589
  /**
567
- * Internationalization API wrapper.
590
+ * The Intl namespace object contains several constructors as well as functionality common
591
+ * to the internationalization constructors and other language sensitive functions.
568
592
  */
569
593
  export declare class GeoIntl {
570
594
  static isItem(code?: string): boolean;
@@ -599,6 +623,9 @@ export declare class GeoIntl {
599
623
  }
600
624
  // File: src/classes/GeoPhone.d.ts
601
625
  import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
626
+ /**
627
+ * A class for storing and processing phone number masks.
628
+ */
602
629
  export declare class GeoPhone {
603
630
  static get(code: string): GeoPhoneValue | undefined;
604
631
  static getByPhone(phone: string): GeoPhoneMapInfo;
@@ -609,6 +636,9 @@ export declare class GeoPhone {
609
636
  static removeZero(phone: string): string;
610
637
  }
611
638
  // File: src/classes/Global.d.ts
639
+ /**
640
+ * Static utility class for storing and retrieving application-wide global data.
641
+ */
612
642
  export declare class Global {
613
643
  static getItem(): Record<string, any>;
614
644
  static get<R = any>(name: string): R;
@@ -616,6 +646,9 @@ export declare class Global {
616
646
  }
617
647
  // File: src/classes/Hash.d.ts
618
648
  import { HashInstance } from './HashInstance';
649
+ /**
650
+ * Static class for working with data stored in the URL hash.
651
+ */
619
652
  export declare class Hash {
620
653
  static getItem(): HashInstance;
621
654
  static get<T>(name: string, defaultValue?: T | (() => T)): T;
@@ -625,6 +658,9 @@ export declare class Hash {
625
658
  static reload(): void;
626
659
  }
627
660
  // File: src/classes/HashInstance.d.ts
661
+ /**
662
+ * Class for working with data stored in the URL hash.
663
+ */
628
664
  export declare class HashInstance {
629
665
  get<T>(name: string, defaultValue?: T | (() => T)): T;
630
666
  set<T>(name: string, callback: T | (() => T)): this;
@@ -634,7 +670,13 @@ export declare class HashInstance {
634
670
  }
635
671
  // File: src/classes/Icons.d.ts
636
672
  export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
637
- export type IconsConfig = { url?: string; list?: Record<string, IconsItem>; };
673
+ export type IconsConfig = {
674
+ url?: string;
675
+ list?: Record<string, IconsItem>;
676
+ };
677
+ /**
678
+ * Class for managing icons.
679
+ */
638
680
  export declare class Icons {
639
681
  static is(index: string): boolean;
640
682
  static get(index: string, url?: string, wait?: number): Promise<string>;
@@ -649,20 +691,34 @@ export declare class Icons {
649
691
  static setConfig(config: IconsConfig): void;
650
692
  }
651
693
  // File: src/classes/Loading.d.ts
652
- import { LoadingInstance } from './LoadingInstance';
694
+ import { LoadingInstance, LoadingDetail } from './LoadingInstance';
653
695
  import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
696
+ /**
697
+ * Class for working with global loading.
698
+ */
654
699
  export declare class Loading {
655
700
  static is(): boolean;
656
701
  static get(): number;
657
702
  static getItem(): LoadingInstance;
658
703
  static show(): void;
659
704
  static hide(): void;
660
- static registrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
661
- static unregistrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
705
+ static registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
706
+ static unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
662
707
  }
663
708
  // File: src/classes/LoadingInstance.d.ts
709
+ import { EventItem } from './EventItem';
664
710
  import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
665
- export type LoadingDetail = { loading: boolean; };
711
+ export type LoadingDetail = {
712
+ loading: boolean;
713
+ };
714
+ export type LoadingRegistrationItem = {
715
+ item: EventItem<Window, CustomEvent, LoadingDetail>;
716
+ listener: EventListenerDetail<CustomEvent, LoadingDetail>;
717
+ element?: ElementOrString<HTMLElement>;
718
+ };
719
+ /**
720
+ * Class for working with global loading.
721
+ */
666
722
  export declare class LoadingInstance {
667
723
  constructor(eventName?: string);
668
724
  is(): boolean;
@@ -677,6 +733,9 @@ import { MetaManager } from './MetaManager';
677
733
  import { MetaOg } from './MetaOg';
678
734
  import { MetaTwitter } from './MetaTwitter';
679
735
  import { MetaRobots, MetaTag } from '../types/metaTypes';
736
+ /**
737
+ * Unified class for managing all types of meta tags.
738
+ */
680
739
  export declare class Meta extends MetaManager<MetaTag[]> {
681
740
  constructor();
682
741
  getOg(): MetaOg;
@@ -704,18 +763,28 @@ export declare class Meta extends MetaManager<MetaTag[]> {
704
763
  htmlTitle(): string;
705
764
  }
706
765
  // File: src/classes/MetaManager.d.ts
707
- export declare class MetaManager<T extends readonly string[], Key extends any = any> {
766
+ type MetaList<T extends readonly string[]> = {
767
+ [K in T[number]]?: string;
768
+ };
769
+ /**
770
+ * Class for working with meta tags.
771
+ */
772
+ export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
708
773
  constructor(listMeta: T, isProperty?: boolean);
709
774
  getListMeta(): T;
710
775
  get(name: Key): string;
711
- getItems(): any;
776
+ getItems(): MetaList<T>;
712
777
  html(): string;
713
778
  set(name: Key, content: string): this;
714
- setByList(metaList: any): this;
779
+ setByList(metaList: MetaList<T>): this;
715
780
  }
781
+ export {};
716
782
  // File: src/classes/MetaOg.d.ts
717
783
  import { MetaManager } from './MetaManager';
718
784
  import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
785
+ /**
786
+ * Class for working with Open Graph meta tags.
787
+ */
719
788
  export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
720
789
  constructor();
721
790
  getTitle(): string;
@@ -738,6 +807,9 @@ import { Meta } from './Meta';
738
807
  import { MetaOg } from './MetaOg';
739
808
  import { MetaTwitter } from './MetaTwitter';
740
809
  import { MetaRobots } from '../types/metaTypes';
810
+ /**
811
+ * Static class for managing meta tags.
812
+ */
741
813
  export declare class MetaStatic {
742
814
  static getItem(): Meta;
743
815
  static getOg(): MetaOg;
@@ -767,6 +839,9 @@ export declare class MetaStatic {
767
839
  // File: src/classes/MetaTwitter.d.ts
768
840
  import { MetaManager } from './MetaManager';
769
841
  import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
842
+ /**
843
+ * Class for working with Twitter Card meta tags.
844
+ */
770
845
  export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
771
846
  constructor();
772
847
  getCard(): MetaTwitterCard;
@@ -786,6 +861,9 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
786
861
  }
787
862
  // File: src/classes/ResumableTimer.d.ts
788
863
  import { FunctionVoid } from '../types/basicTypes';
864
+ /**
865
+ * Class for creating a timer that can be paused and resumed.
866
+ */
789
867
  export declare class ResumableTimer {
790
868
  constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
791
869
  resume(): this;
@@ -795,6 +873,9 @@ export declare class ResumableTimer {
795
873
  }
796
874
  // File: src/classes/ScrollbarWidth.d.ts
797
875
  import { DataStorage } from './DataStorage';
876
+ /**
877
+ * Class for getting the scroll width.
878
+ */
798
879
  export declare class ScrollbarWidth {
799
880
  static is(): Promise<boolean>;
800
881
  static get(): Promise<number>;
@@ -804,8 +885,12 @@ export declare class ScrollbarWidth {
804
885
  // File: src/classes/SearchList.d.ts
805
886
  import { SearchListData } from './SearchListData';
806
887
  import { SearchListItem } from './SearchListItem';
888
+ import { SearchListMatcher } from './SearchListMatcher';
807
889
  import { SearchListOptions } from './SearchListOptions';
808
890
  import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
891
+ /**
892
+ * Main class for managing a searchable list.
893
+ */
809
894
  export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
810
895
  constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
811
896
  getData(): SearchListData<T, K>;
@@ -823,24 +908,35 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
823
908
  // File: src/classes/SearchListData.d.ts
824
909
  import { SearchListItem } from './SearchListItem';
825
910
  import { SearchListOptions } from './SearchListOptions';
826
- import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
911
+ import { SearchCache, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
912
+ /**
913
+ * Class for managing and formatting the search data list and its cache.
914
+ */
827
915
  export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
828
916
  constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
829
- is(): boolean;
830
- isList(): boolean;
917
+ is(): this is this & {
918
+ list: T[];
919
+ columns: string[];
920
+ };
921
+ isList(): this is this & {
922
+ list: T[];
923
+ };
831
924
  getList(): SearchListValue<T>;
832
925
  getColumns(): K | undefined;
833
926
  setList(list: SearchListValue<T>): this;
834
927
  setColumns(columns?: SearchColumns<T>): this;
835
- findCacheItem(item: T): SearchCacheItem<T> | undefined;
836
- forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
837
928
  toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
838
929
  }
839
930
  // File: src/classes/SearchListItem.d.ts
840
931
  import { SearchListOptions } from './SearchListOptions';
932
+ /**
933
+ * Class representing a single search item's value and its search-related state.
934
+ */
841
935
  export declare class SearchListItem {
842
936
  constructor(value: string | undefined, options: SearchListOptions);
843
- is(): boolean;
937
+ is(): this is this & {
938
+ value: string;
939
+ };
844
940
  isSearch(): boolean;
845
941
  get(): string;
846
942
  set(value?: string): this;
@@ -849,6 +945,9 @@ export declare class SearchListItem {
849
945
  import { SearchListItem } from './SearchListItem';
850
946
  import { SearchListOptions } from './SearchListOptions';
851
947
  import { SearchCacheItem } from '../types/searchTypes';
948
+ /**
949
+ * Class responsible for matching search values against the search list data.
950
+ */
852
951
  export declare class SearchListMatcher {
853
952
  constructor(item: SearchListItem, options: SearchListOptions);
854
953
  is(): boolean;
@@ -858,6 +957,9 @@ export declare class SearchListMatcher {
858
957
  }
859
958
  // File: src/classes/SearchListOptions.d.ts
860
959
  import { SearchOptions } from '../types/searchTypes';
960
+ /**
961
+ * Class for managing search list options.
962
+ */
861
963
  export declare class SearchListOptions {
862
964
  constructor(options?: SearchOptions | undefined);
863
965
  getOptions(): SearchOptions;
@@ -869,6 +971,9 @@ export declare class SearchListOptions {
869
971
  setOptions(options: SearchOptions): this;
870
972
  }
871
973
  // File: src/classes/ServerStorage.d.ts
974
+ /**
975
+ * Class for managing data storage during server-side rendering (SSR).
976
+ */
872
977
  export declare class ServerStorage {
873
978
  static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
874
979
  static reset(): void;
@@ -879,7 +984,11 @@ export declare class ServerStorage {
879
984
  static remove(key: string): void;
880
985
  static toString(): string;
881
986
  }
987
+ export {};
882
988
  // File: src/classes/StorageCallback.d.ts
989
+ /**
990
+ * A class for working with callback lists for storage.
991
+ */
883
992
  export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
884
993
  static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
885
994
  constructor(name: string, group?: string);
@@ -894,6 +1003,9 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
894
1003
  // File: src/classes/Translate.d.ts
895
1004
  import { TranslateInstance } from './TranslateInstance';
896
1005
  import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
1006
+ /**
1007
+ * Class for getting the translated text.
1008
+ */
897
1009
  export declare class Translate {
898
1010
  static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
899
1011
  static getItem(): TranslateInstance;
@@ -912,6 +1024,9 @@ export declare class Translate {
912
1024
  }
913
1025
  // File: src/classes/TranslateFile.d.ts
914
1026
  import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
1027
+ /**
1028
+ * Class for working with translation files.
1029
+ */
915
1030
  export declare class TranslateFile {
916
1031
  constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
917
1032
  isFile(): boolean;
@@ -923,6 +1038,9 @@ export declare class TranslateFile {
923
1038
  // File: src/classes/TranslateInstance.d.ts
924
1039
  import { TranslateFile } from './TranslateFile';
925
1040
  import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
1041
+ /**
1042
+ * Class for getting the translated text.
1043
+ */
926
1044
  export declare class TranslateInstance {
927
1045
  constructor(url?: string, propsName?: string, files?: TranslateFile);
928
1046
  get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
@@ -938,255 +1056,808 @@ export declare class TranslateInstance {
938
1056
  setPropsName(name: string): this;
939
1057
  setReadApi(value: boolean): this;
940
1058
  }
1059
+ // File: src/classes/UrlItem.d.ts
1060
+ /**
1061
+ * Isomorphic utility class for working with URLs.
1062
+ */
1063
+ export declare class UrlItem {
1064
+ constructor(url: string | URL);
1065
+ get href(): string;
1066
+ get protocol(): string;
1067
+ get username(): string;
1068
+ get password(): string;
1069
+ get host(): string;
1070
+ get hostname(): string;
1071
+ get port(): string;
1072
+ get pathname(): string;
1073
+ get search(): string;
1074
+ get searchParams(): URLSearchParams;
1075
+ get hash(): string;
1076
+ get origin(): string;
1077
+ set(url: string | URL): this;
1078
+ toString(): string;
1079
+ toJSON(): string;
1080
+ }
941
1081
  // File: src/functions/addTagHighlightMatch.d.ts
1082
+ /**
1083
+ * Adds a tag to highlight the match in the string.
1084
+ */
942
1085
  export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
943
1086
  // File: src/functions/anyToString.d.ts
1087
+ /**
1088
+ * Conversion of a value to a string.
1089
+ */
944
1090
  export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
945
1091
  // File: src/functions/applyTemplate.d.ts
1092
+ /**
1093
+ * Applies a template to the text, replacing keys with values from the replacement object.
1094
+ */
946
1095
  export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
947
1096
  // File: src/functions/arrFill.d.ts
1097
+ /**
1098
+ * The method creates an array of "count" elements with values equal to `value`.
1099
+ */
948
1100
  export declare function arrFill<T>(value: T, count: number): T[];
949
1101
  // File: src/functions/blobToBase64.d.ts
1102
+ /**
1103
+ * Convert a Blob to a Base64 string.
1104
+ */
950
1105
  export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
951
1106
  // File: src/functions/capitalize.d.ts
1107
+ /**
1108
+ * Capitalizes the first letter of a string.
1109
+ */
952
1110
  export declare function capitalize(value: string, isLocale?: boolean): string;
953
1111
  // File: src/functions/copyObject.d.ts
1112
+ /**
1113
+ * Creates a deep copy of an object for independent data management.
1114
+ */
954
1115
  export declare function copyObject<T>(value: T): T;
955
1116
  // File: src/functions/copyObjectLite.d.ts
1117
+ /**
1118
+ * Copies a simple object.
1119
+ */
956
1120
  export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
957
1121
  // File: src/functions/createElement.d.ts
958
- export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: any, referenceElement?: HTMLElement): T | undefined;
1122
+ /**
1123
+ * In HTML documents, creates an element with the tag that is specified in the argument.
1124
+ */
1125
+ 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;
959
1126
  // File: src/functions/domQuerySelector.d.ts
1127
+ /**
1128
+ * Selects the first element that matches the specified selectors.
1129
+ */
960
1130
  export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
961
1131
  // File: src/functions/domQuerySelectorAll.d.ts
1132
+ /**
1133
+ * Selects all elements that match the specified selectors.
1134
+ */
962
1135
  export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
963
1136
  // File: src/functions/encodeAttribute.d.ts
1137
+ /**
1138
+ * Encodes special characters in a string for safe use in HTML attributes.
1139
+ */
964
1140
  export declare function encodeAttribute(text: string): string;
965
1141
  // File: src/functions/encodeLiteAttribute.d.ts
1142
+ /**
1143
+ * Encodes special characters in a string for safe use in HTML attributes.
1144
+ */
966
1145
  export declare function encodeLiteAttribute(text: string): string;
967
1146
  // File: src/functions/ensureMaxSize.d.ts
1147
+ /**
1148
+ * Ensures that an image does not exceed the maximum size by resizing it if needed.
1149
+ */
968
1150
  export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
969
1151
  // File: src/functions/escapeExp.d.ts
1152
+ /**
1153
+ * Escapes special regex characters in a string.
1154
+ */
970
1155
  export declare function escapeExp(value: string): string;
971
1156
  // File: src/functions/eventStopPropagation.d.ts
1157
+ /**
1158
+ * Stop listening to events in depth.
1159
+ */
972
1160
  export declare function eventStopPropagation(event: Event): void;
973
1161
  // File: src/functions/executeFunction.d.ts
974
1162
  import { FunctionArgs } from '../types/basicTypes';
1163
+ /**
1164
+ * Flexible utility that executes the provided argument if it is a function, otherwise returns it as is.
1165
+ */
975
1166
  export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
976
1167
  // File: src/functions/executePromise.d.ts
977
- export declare function executePromise<T>(callback: any, ...args: any[]): Promise<T>;
1168
+ /**
1169
+ * Safely executes a function and awaits its result if it returns a Promise.
1170
+ */
1171
+ export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
978
1172
  // File: src/functions/forEach.d.ts
979
- export declare function forEach<T, R, D = any>(data: D, callback: (item: T, key: any, dataMain: any) => R, saveUndefined?: boolean): R[];
1173
+ /**
1174
+ * Iterates over the object/array and applies a callback to each element.
1175
+ */
1176
+ 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[];
980
1177
  // File: src/functions/frame.d.ts
1178
+ /**
1179
+ * Cyclically calls requestAnimationFrame.
1180
+ */
981
1181
  export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
982
1182
  // File: src/functions/getArrayHighlightMatch.d.ts
983
1183
  import { HighlightMatchItem } from '../types/searchTypes';
1184
+ /**
1185
+ * Split a string into an array of objects to highlight matches.
1186
+ */
984
1187
  export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
985
1188
  // File: src/functions/getAttributes.d.ts
986
1189
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1190
+ /**
1191
+ * Gets a list of attributes of an element.
1192
+ */
987
1193
  export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
988
1194
  // File: src/functions/getClipboardData.d.ts
1195
+ /**
1196
+ * The method retrieves drag data (as a string) for the specified type.
1197
+ */
989
1198
  export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
990
1199
  // File: src/functions/getColumn.d.ts
991
1200
  import { ObjectOrArray } from '../types/basicTypes';
1201
+ /**
1202
+ * Returns an array of values for a specific column in the input array.
1203
+ */
992
1204
  export declare function getColumn<T, K extends keyof T>(array: ObjectOrArray<T>, column: K): (T[K] | undefined)[];
993
1205
  // File: src/functions/getCurrentDate.d.ts
994
1206
  import { GeoDate } from '../types/geoTypes';
1207
+ /**
1208
+ * Returns the current date in the specified format.
1209
+ */
995
1210
  export declare function getCurrentDate(format?: GeoDate): string;
996
1211
  // File: src/functions/getCurrentTime.d.ts
1212
+ /**
1213
+ * Returns the current time in milliseconds.
1214
+ */
997
1215
  export declare function getCurrentTime(): number;
998
1216
  // File: src/functions/getElement.d.ts
999
1217
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1218
+ /**
1219
+ * Returns the first Element in the document that matches the specified selector.
1220
+ */
1000
1221
  export declare function getElement<E extends ElementOrWindow, R extends Exclude<E, Window>>(element?: ElementOrString<E>): R | undefined;
1001
1222
  // File: src/functions/getElementId.d.ts
1002
1223
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1224
+ /**
1225
+ * Returns the identifier (ID) of the element or creates it.
1226
+ */
1003
1227
  export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
1004
1228
  export declare function initGetElementId(newListener: () => string | number): void;
1005
1229
  // File: src/functions/getElementImage.d.ts
1230
+ /**
1231
+ * Get image element from HTMLImageElement or string source.
1232
+ */
1006
1233
  export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
1007
1234
  // File: src/functions/getElementItem.d.ts
1008
1235
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1236
+ /**
1237
+ * Returns the value of an element by its key.
1238
+ */
1009
1239
  export declare function getElementItem<T extends ElementOrWindow, K extends keyof T, D>(element: ElementOrString<T>, index: K | string, defaultValue?: D): T[K] | D | undefined;
1010
1240
  // File: src/functions/getElementOrWindow.d.ts
1011
1241
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1242
+ /**
1243
+ * Returns window or element.
1244
+ */
1012
1245
  export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
1013
1246
  // File: src/functions/getElementSafeScript.d.ts
1247
+ /**
1248
+ * Generates a safe script tag for data hydration.
1249
+ */
1014
1250
  export declare function getElementSafeScript(id: string, data: any): string;
1015
1251
  // File: src/functions/getExactSearchExp.d.ts
1252
+ /**
1253
+ * Creates a case-insensitive regular expression for an exact match of a phrase.
1254
+ */
1016
1255
  export declare function getExactSearchExp(search: string): RegExp;
1017
1256
  // File: src/functions/getExp.d.ts
1257
+ /**
1258
+ * Creates a regular expression object.
1259
+ */
1018
1260
  export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
1019
1261
  // File: src/functions/getFirst.d.ts
1262
+ /**
1263
+ * Returns the first element of an array or object.
1264
+ */
1020
1265
  export declare function getFirst<T>(value: T | T[] | Record<string, T>): T | undefined;
1021
1266
  // File: src/functions/getHydrationData.d.ts
1267
+ /**
1268
+ * Retrieves and parses JSON data from a script tag in the DOM.
1269
+ */
1022
1270
  export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
1023
1271
  // File: src/functions/getItemByPath.d.ts
1272
+ /**
1273
+ * Returns data by their path.
1274
+ */
1024
1275
  export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
1025
1276
  // File: src/functions/getKey.d.ts
1277
+ /**
1278
+ * Returns the pressed key.
1279
+ */
1026
1280
  export declare function getKey(event: KeyboardEvent): string | number | undefined;
1027
1281
  // File: src/functions/getLength.d.ts
1282
+ /**
1283
+ * Returns the length or size of various data types.
1284
+ */
1028
1285
  export declare function getLength(value: any): number;
1029
1286
  // File: src/functions/getLengthOfAllArray.d.ts
1030
1287
  import { ObjectOrArray } from '../types/basicTypes';
1288
+ /**
1289
+ * Returns the length of all elements in an array.
1290
+ */
1031
1291
  export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
1032
1292
  // File: src/functions/getMaxLengthAllArray.d.ts
1033
1293
  import { ObjectOrArray } from '../types/basicTypes';
1294
+ /**
1295
+ * Searches for the longest string in the array.
1296
+ */
1034
1297
  export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
1035
1298
  // File: src/functions/getMinLengthAllArray.d.ts
1036
1299
  import { ObjectOrArray } from '../types/basicTypes';
1300
+ /**
1301
+ * Searches for the shortest string in the array.
1302
+ */
1037
1303
  export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
1038
1304
  // File: src/functions/getMouseClient.d.ts
1039
1305
  import { ImageCoordinator } from '../types/basicTypes';
1306
+ /**
1307
+ * Returns the position of the mouse cursor or the location of the click.
1308
+ */
1040
1309
  export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
1041
1310
  // File: src/functions/getMouseClientX.d.ts
1311
+ /**
1312
+ * Returns the X position of the mouse cursor.
1313
+ */
1042
1314
  export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
1043
1315
  // File: src/functions/getMouseClientY.d.ts
1316
+ /**
1317
+ * Returns the Y position of the mouse cursor.
1318
+ */
1044
1319
  export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
1045
1320
  // File: src/functions/getObjectByKeys.d.ts
1321
+ /**
1322
+ * Returns a new object with keys from the keys list.
1323
+ */
1046
1324
  export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
1047
1325
  // File: src/functions/getObjectNoUndefined.d.ts
1326
+ /**
1327
+ * Removes from the object all properties belonging to the exception type.
1328
+ */
1048
1329
  export declare function getObjectNoUndefined<T extends Record<string | number, any>>(data: T, exception?: any): T;
1049
1330
  // File: src/functions/getObjectOrNone.d.ts
1331
+ /**
1332
+ * Returns the object if the object’s values are set.
1333
+ */
1050
1334
  export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
1051
1335
  // File: src/functions/getOnlyText.d.ts
1336
+ /**
1337
+ * Returns only letters, numbers, and spaces from a string.
1338
+ */
1052
1339
  export declare function getOnlyText(text: any): string;
1053
1340
  // File: src/functions/getRandomText.d.ts
1341
+ /**
1342
+ * Generates text.
1343
+ */
1054
1344
  export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
1055
1345
  // File: src/functions/getRequestString.d.ts
1346
+ /**
1347
+ * Returns a string in the form of key-value.
1348
+ */
1056
1349
  export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
1057
1350
  // File: src/functions/getSearchExp.d.ts
1351
+ /**
1352
+ * Builds a global RegExp for multi-word search.
1353
+ */
1058
1354
  export declare function getSearchExp(search: string, limit?: number): RegExp;
1059
1355
  // File: src/functions/getSeparatingSearchExp.d.ts
1356
+ /**
1357
+ * Creates a case-insensitive regular expression for a search by words.
1358
+ */
1060
1359
  export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
1061
1360
  // File: src/functions/getStepPercent.d.ts
1361
+ /**
1362
+ * Returns the unit of measurement for 1 step as a percentage.
1363
+ */
1062
1364
  export declare function getStepPercent(min: number | undefined, max: number): number;
1063
1365
  // File: src/functions/getStepValue.d.ts
1366
+ /**
1367
+ * Returns the unit of measurement for a single step.
1368
+ */
1064
1369
  export declare function getStepValue(min: number | undefined, max: number): number;
1065
1370
  // File: src/functions/goScroll.d.ts
1371
+ /**
1372
+ * Quickly scrolls the container to the specified element.
1373
+ */
1066
1374
  export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
1067
1375
  // File: src/functions/goScrollSmooth.d.ts
1376
+ /**
1377
+ * Smoothly scrolls to the element.
1378
+ */
1068
1379
  export declare function goScrollSmooth<E extends HTMLElement>(element: E, options?: ScrollIntoViewOptions, shift?: number): void;
1069
1380
  // File: src/functions/goScrollTo.d.ts
1381
+ /**
1382
+ * Scrolls the container to make the target element visible.
1383
+ */
1070
1384
  export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
1071
1385
  // File: src/functions/handleShare.d.ts
1386
+ /**
1387
+ * Invokes the native sharing mechanism.
1388
+ */
1072
1389
  export declare function handleShare(data: ShareData): Promise<boolean>;
1073
1390
  // File: src/functions/inArray.d.ts
1391
+ /**
1392
+ * Checks if the value is in the current array.
1393
+ */
1074
1394
  export declare function inArray<T>(array: T[], value: T): boolean;
1075
1395
  // File: src/functions/initScrollbarOffset.d.ts
1396
+ /**
1397
+ * Initialization of data for scroll control.
1398
+ */
1076
1399
  export declare function initScrollbarOffset(): Promise<void>;
1077
1400
  // File: src/functions/intersectKey.d.ts
1401
+ /**
1402
+ * Computes the intersection of objects using keys.
1403
+ */
1078
1404
  export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
1079
1405
  // File: src/functions/isApiSuccess.d.ts
1080
1406
  import { ApiData } from '../types/apiTypes';
1407
+ /**
1408
+ * Checks if the API response is successful.
1409
+ */
1081
1410
  export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
1082
1411
  // File: src/functions/isArray.d.ts
1412
+ /**
1413
+ * Checks if the values are arrays.
1414
+ */
1083
1415
  export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
1084
1416
  // File: src/functions/isDifferent.d.ts
1085
1417
  import { ObjectItem } from '../types/basicTypes';
1418
+ /**
1419
+ * Checks if the values of two objects are different.
1420
+ */
1086
1421
  export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
1087
1422
  // File: src/functions/isDomData.d.ts
1423
+ /**
1424
+ * Checks if the current environment is a data URL.
1425
+ */
1088
1426
  export declare function isDomData(): boolean;
1089
1427
  // File: src/functions/isDomRuntime.d.ts
1428
+ /**
1429
+ * Checks if running in a browser.
1430
+ */
1090
1431
  export declare function isDomRuntime(): boolean;
1091
1432
  // File: src/functions/isElementVisible.d.ts
1092
1433
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1434
+ /**
1435
+ * Checks if an element is visible in the DOM.
1436
+ */
1093
1437
  export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
1094
1438
  // File: src/functions/isEnter.d.ts
1439
+ /**
1440
+ * Checks if the pressed key is Enter or Space.
1441
+ */
1095
1442
  export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
1096
1443
  // File: src/functions/isFilled.d.ts
1097
- export declare function isFilled<T>(value: T, zeroTrue?: boolean): boolean;
1444
+ import { EmptyValue } from '../types/basicTypes';
1445
+ /**
1446
+ * Checks if the field is filled.
1447
+ */
1448
+ export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
1098
1449
  // File: src/functions/isFloat.d.ts
1450
+ /**
1451
+ * Checks if the value is a number (integer or float).
1452
+ */
1099
1453
  export declare function isFloat(value: any): boolean;
1100
1454
  // File: src/functions/isFunction.d.ts
1101
- export declare function isFunction<T>(callback: T): boolean;
1455
+ import { FunctionArgs } from '../types/basicTypes';
1456
+ /**
1457
+ * Checks if the value is a function.
1458
+ */
1459
+ export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
1102
1460
  // File: src/functions/isInDom.d.ts
1103
1461
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1462
+ /**
1463
+ * Checks if an element is still in the DOM tree.
1464
+ */
1104
1465
  export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
1105
1466
  // File: src/functions/isInput.d.ts
1467
+ /**
1468
+ * Checks if the element is an input field or editable.
1469
+ */
1106
1470
  export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
1107
1471
  // File: src/functions/isIntegerBetween.d.ts
1472
+ /**
1473
+ * Checks if the value is between integers.
1474
+ */
1108
1475
  export declare function isIntegerBetween(value: number, between: number): boolean;
1109
1476
  // File: src/functions/isNull.d.ts
1110
- export declare function isNull<T>(value: T): boolean;
1477
+ import { Undefined } from '../types/basicTypes';
1478
+ /**
1479
+ * Checks if the variable is equal to null or undefined.
1480
+ */
1481
+ export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
1111
1482
  // File: src/functions/isNumber.d.ts
1483
+ /**
1484
+ * Checks if the value is a number.
1485
+ */
1112
1486
  export declare function isNumber(value: any): boolean;
1113
1487
  // File: src/functions/isObject.d.ts
1114
- export declare function isObject<T>(value: T): boolean;
1488
+ /**
1489
+ * Checks if a value is an object.
1490
+ */
1491
+ export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
1115
1492
  // File: src/functions/isObjectNotArray.d.ts
1116
- export declare function isObjectNotArray<T>(value: T): boolean;
1493
+ /**
1494
+ * Checks if the value is an object and not an array.
1495
+ */
1496
+ export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
1117
1497
  // File: src/functions/isOnLine.d.ts
1498
+ /**
1499
+ * Check if the device is online.
1500
+ */
1118
1501
  export declare function isOnLine(): boolean;
1119
1502
  // File: src/functions/isSelected.d.ts
1503
+ /**
1504
+ * Checks if the value is selected.
1505
+ */
1120
1506
  export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;
1121
1507
  // File: src/functions/isSelectedByList.d.ts
1508
+ /**
1509
+ * Testing isSelected property for the entire list of values.
1510
+ */
1122
1511
  export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
1123
1512
  // File: src/functions/isShare.d.ts
1513
+ /**
1514
+ * Checks if the Web Share API is supported.
1515
+ */
1124
1516
  export declare function isShare(): boolean;
1125
1517
  // File: src/functions/isString.d.ts
1126
- export declare function isString<T>(value: T): boolean;
1518
+ /**
1519
+ * Checks if the value is of type string.
1520
+ */
1521
+ export declare function isString<T>(value: T): value is Extract<T, string>;
1127
1522
  // File: src/functions/isTab.d.ts
1523
+ /**
1524
+ * Checks if the pressed key is Tab.
1525
+ */
1128
1526
  export declare const isTab: (event: KeyboardEvent) => boolean;
1129
1527
  // File: src/functions/isWindow.d.ts
1130
- export declare function isWindow<E>(element: E): boolean;
1528
+ /**
1529
+ * Checks if object is Window.
1530
+ */
1531
+ export declare function isWindow<E>(element: E): element is Extract<E, Window>;
1131
1532
  // File: src/functions/random.d.ts
1533
+ /**
1534
+ * Generate a random integer.
1535
+ */
1132
1536
  export declare function random(min: number, max: number): number;
1133
1537
  // File: src/functions/removeCommonPrefix.d.ts
1538
+ /**
1539
+ * Removes the common prefix from the main string.
1540
+ */
1134
1541
  export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
1135
1542
  // File: src/functions/replaceComponentName.d.ts
1543
+ /**
1544
+ * Replaces the component name in the text.
1545
+ */
1136
1546
  export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
1137
1547
  // File: src/functions/replaceRecursive.d.ts
1138
1548
  import { ObjectItem, ObjectOrArray } from '../types/basicTypes';
1549
+ /**
1550
+ * Merge one or more arrays recursively.
1551
+ */
1139
1552
  export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
1140
1553
  // File: src/functions/replaceTemplate.d.ts
1141
- export declare function replaceTemplate(value: string, replaces: Record<string, any>): string;
1554
+ import { FunctionReturn } from '../types/basicTypes';
1555
+ /**
1556
+ * Replacing the value from replaces in value.
1557
+ */
1558
+ export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
1142
1559
  // File: src/functions/resizeImageByMax.d.ts
1560
+ /**
1561
+ * Resizes an image to fit within a maximum size constraint.
1562
+ */
1143
1563
  export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: 'auto' | 'width' | 'height', typeData?: string): string | undefined;
1144
1564
  // File: src/functions/secondToTime.d.ts
1565
+ /**
1566
+ * Converts seconds into a time string.
1567
+ */
1145
1568
  export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
1146
1569
  // File: src/functions/setElementItem.d.ts
1147
1570
  import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1571
+ /**
1572
+ * Modifies the value of an element.
1573
+ */
1148
1574
  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;
1149
1575
  // File: src/functions/setValues.d.ts
1150
- export declare function setValues<T>(selected: T | T[] | undefined, value: any, options: any): T | T[] | undefined;
1576
+ /**
1577
+ * Modifies data according to its type and settings.
1578
+ */
1579
+ export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
1580
+ multiple?: boolean | undefined;
1581
+ maxlength?: number | undefined;
1582
+ alwaysChange?: boolean | undefined;
1583
+ notEmpty?: boolean | undefined;
1584
+ }): T | T[] | undefined;
1151
1585
  // File: src/functions/sleep.d.ts
1586
+ /**
1587
+ * Pause execution for a specified number of milliseconds.
1588
+ */
1152
1589
  export declare function sleep(ms: number): Promise<void>;
1153
1590
  // File: src/functions/splice.d.ts
1154
1591
  import { ObjectItem } from '../types/basicTypes';
1592
+ /**
1593
+ * Merges source properties into a target object.
1594
+ */
1155
1595
  export declare function splice<I>(array: ObjectItem<I>, replacement?: ObjectItem<I> | I, indexStart?: string): ObjectItem<I>;
1156
1596
  // File: src/functions/strFill.d.ts
1597
+ /**
1598
+ * Creates a string consisting of value repeated count times.
1599
+ */
1157
1600
  export declare function strFill(value: string, count: number): string;
1158
1601
  // File: src/functions/strSplit.d.ts
1602
+ /**
1603
+ * Splits a string by a separator with a limit.
1604
+ */
1159
1605
  export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
1160
1606
  // File: src/functions/toArray.d.ts
1607
+ /**
1608
+ * Converts a value to an array.
1609
+ */
1161
1610
  export declare function toArray<T>(value: T): T extends any[] ? T : [T];
1162
1611
  // File: src/functions/toCamelCase.d.ts
1612
+ /**
1613
+ * Converts a string to Camel Case.
1614
+ */
1163
1615
  export declare function toCamelCase(value: string): string;
1164
1616
  // File: src/functions/toCamelCaseFirst.d.ts
1617
+ /**
1618
+ * Converts a string to Camel Case with first letter uppercase.
1619
+ */
1165
1620
  export declare function toCamelCaseFirst(value: string): string;
1166
1621
  // File: src/functions/toDate.d.ts
1622
+ /**
1623
+ * Converts to a Date object.
1624
+ */
1167
1625
  export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
1168
1626
  // File: src/functions/toKebabCase.d.ts
1627
+ /**
1628
+ * Converts a string to kebab-case.
1629
+ */
1169
1630
  export declare function toKebabCase(value: string): string;
1170
1631
  // File: src/functions/toNumber.d.ts
1171
1632
  import { NumberOrString } from '../types/basicTypes';
1633
+ /**
1634
+ * Converts a string or number to a floating-point number.
1635
+ */
1172
1636
  export declare function toNumber(value?: NumberOrString): number;
1173
1637
  // File: src/functions/toNumberByMax.d.ts
1638
+ /**
1639
+ * Converts data to a number, taking max value into account.
1640
+ */
1174
1641
  export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
1175
1642
  // File: src/functions/toPercent.d.ts
1643
+ /**
1644
+ * Converts values to percentages.
1645
+ */
1176
1646
  export declare function toPercent(maxValue: number, value: number): number;
1177
1647
  // File: src/functions/toPercentBy100.d.ts
1648
+ /**
1649
+ * Converts values to percentages (*100).
1650
+ */
1178
1651
  export declare function toPercentBy100(maxValue: number, value: number): number;
1179
1652
  // File: src/functions/toString.d.ts
1653
+ /**
1654
+ * Converts the given value to a string.
1655
+ */
1180
1656
  export declare function toString<T>(value: T): string;
1181
1657
  // File: src/functions/transformation.d.ts
1658
+ /**
1659
+ * Transforms a string into the corresponding data type.
1660
+ */
1182
1661
  export declare function transformation(value: any, isFunction?: boolean): any;
1183
1662
  // File: src/functions/uint8ArrayToBase64.d.ts
1663
+ /**
1664
+ * Converts a Uint8Array to a base64 encoded string.
1665
+ */
1184
1666
  export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
1185
1667
  // File: src/functions/uniqueArray.d.ts
1668
+ /**
1669
+ * Removes duplicate entries in an array.
1670
+ */
1186
1671
  export declare function uniqueArray<T>(value: T[]): T[];
1187
1672
  // File: src/functions/writeClipboardData.d.ts
1673
+ /**
1674
+ * Writes text to the clipboard.
1675
+ */
1188
1676
  export declare function writeClipboardData(text: string): Promise<void>;
1677
+ // File: src/library.d.ts
1678
+ export * from './classes/Api';
1679
+ export * from './classes/ApiCache';
1680
+ export * from './classes/ApiDataReturn';
1681
+ export * from './classes/ApiDefault';
1682
+ export * from './classes/ApiError';
1683
+ export * from './classes/ApiErrorItem';
1684
+ export * from './classes/ApiErrorStorage';
1685
+ export * from './classes/ApiHeaders';
1686
+ export * from './classes/ApiHydration';
1687
+ export * from './classes/ApiInstance';
1688
+ export * from './classes/ApiPreparation';
1689
+ export * from './classes/ApiResponse';
1690
+ export * from './classes/ApiStatus';
1691
+ export * from './classes/BroadcastMessage';
1692
+ export * from './classes/Cache';
1693
+ export * from './classes/CacheItem';
1694
+ export * from './classes/CacheStatic';
1695
+ export * from './classes/Cookie';
1696
+ export * from './classes/CookieBlock';
1697
+ export * from './classes/CookieBlockInstance';
1698
+ export * from './classes/CookieStorage';
1699
+ export * from './classes/DataStorage';
1700
+ export * from './classes/Datetime';
1701
+ export * from './classes/ErrorCenter';
1702
+ export * from './classes/ErrorCenterHandler';
1703
+ export * from './classes/ErrorCenterInstance';
1704
+ export * from './classes/EventItem';
1705
+ export * from './classes/Formatters';
1706
+ export * from './classes/Geo';
1707
+ export * from './classes/GeoFlag';
1708
+ export * from './classes/GeoInstance';
1709
+ export * from './classes/GeoIntl';
1710
+ export * from './classes/GeoPhone';
1711
+ export * from './classes/Global';
1712
+ export * from './classes/Hash';
1713
+ export * from './classes/HashInstance';
1714
+ export * from './classes/Icons';
1715
+ export * from './classes/Loading';
1716
+ export * from './classes/LoadingInstance';
1717
+ export * from './classes/Meta';
1718
+ export * from './classes/MetaManager';
1719
+ export * from './classes/MetaOg';
1720
+ export * from './classes/MetaStatic';
1721
+ export * from './classes/MetaTwitter';
1722
+ export * from './classes/ResumableTimer';
1723
+ export * from './classes/ScrollbarWidth';
1724
+ export * from './classes/SearchList';
1725
+ export * from './classes/SearchListData';
1726
+ export * from './classes/SearchListItem';
1727
+ export * from './classes/SearchListMatcher';
1728
+ export * from './classes/SearchListOptions';
1729
+ export * from './classes/ServerStorage';
1730
+ export * from './classes/StorageCallback';
1731
+ export * from './classes/Translate';
1732
+ export * from './classes/TranslateFile';
1733
+ export * from './classes/TranslateInstance';
1734
+ export * from './classes/UrlItem';
1735
+ export * from './functions/addTagHighlightMatch';
1736
+ export * from './functions/anyToString';
1737
+ export * from './functions/applyTemplate';
1738
+ export * from './functions/arrFill';
1739
+ export * from './functions/blobToBase64';
1740
+ export * from './functions/capitalize';
1741
+ export * from './functions/copyObject';
1742
+ export * from './functions/copyObjectLite';
1743
+ export * from './functions/createElement';
1744
+ export * from './functions/domQuerySelector';
1745
+ export * from './functions/domQuerySelectorAll';
1746
+ export * from './functions/encodeAttribute';
1747
+ export * from './functions/encodeLiteAttribute';
1748
+ export * from './functions/ensureMaxSize';
1749
+ export * from './functions/escapeExp';
1750
+ export * from './functions/eventStopPropagation';
1751
+ export * from './functions/executeFunction';
1752
+ export * from './functions/executePromise';
1753
+ export * from './functions/forEach';
1754
+ export * from './functions/frame';
1755
+ export * from './functions/getArrayHighlightMatch';
1756
+ export * from './functions/getAttributes';
1757
+ export * from './functions/getClipboardData';
1758
+ export * from './functions/getColumn';
1759
+ export * from './functions/getCurrentDate';
1760
+ export * from './functions/getCurrentTime';
1761
+ export * from './functions/getElement';
1762
+ export * from './functions/getElementId';
1763
+ export * from './functions/getElementImage';
1764
+ export * from './functions/getElementItem';
1765
+ export * from './functions/getElementOrWindow';
1766
+ export * from './functions/getElementSafeScript';
1767
+ export * from './functions/getExactSearchExp';
1768
+ export * from './functions/getExp';
1769
+ export * from './functions/getFirst';
1770
+ export * from './functions/getHydrationData';
1771
+ export * from './functions/getItemByPath';
1772
+ export * from './functions/getKey';
1773
+ export * from './functions/getLength';
1774
+ export * from './functions/getLengthOfAllArray';
1775
+ export * from './functions/getMaxLengthAllArray';
1776
+ export * from './functions/getMinLengthAllArray';
1777
+ export * from './functions/getMouseClient';
1778
+ export * from './functions/getMouseClientX';
1779
+ export * from './functions/getMouseClientY';
1780
+ export * from './functions/getObjectByKeys';
1781
+ export * from './functions/getObjectNoUndefined';
1782
+ export * from './functions/getObjectOrNone';
1783
+ export * from './functions/getOnlyText';
1784
+ export * from './functions/getRandomText';
1785
+ export * from './functions/getRequestString';
1786
+ export * from './functions/getSearchExp';
1787
+ export * from './functions/getSeparatingSearchExp';
1788
+ export * from './functions/getStepPercent';
1789
+ export * from './functions/getStepValue';
1790
+ export * from './functions/goScroll';
1791
+ export * from './functions/goScrollSmooth';
1792
+ export * from './functions/goScrollTo';
1793
+ export * from './functions/handleShare';
1794
+ export * from './functions/inArray';
1795
+ export * from './functions/initScrollbarOffset';
1796
+ export * from './functions/intersectKey';
1797
+ export * from './functions/isApiSuccess';
1798
+ export * from './functions/isArray';
1799
+ export * from './functions/isDifferent';
1800
+ export * from './functions/isDomData';
1801
+ export * from './functions/isDomRuntime';
1802
+ export * from './functions/isElementVisible';
1803
+ export * from './functions/isEnter';
1804
+ export * from './functions/isFilled';
1805
+ export * from './functions/isFloat';
1806
+ export * from './functions/isFunction';
1807
+ export * from './functions/isInDom';
1808
+ export * from './functions/isInput';
1809
+ export * from './functions/isIntegerBetween';
1810
+ export * from './functions/isNull';
1811
+ export * from './functions/isNumber';
1812
+ export * from './functions/isObject';
1813
+ export * from './functions/isObjectNotArray';
1814
+ export * from './functions/isOnLine';
1815
+ export * from './functions/isSelected';
1816
+ export * from './functions/isSelectedByList';
1817
+ export * from './functions/isShare';
1818
+ export * from './functions/isString';
1819
+ export * from './functions/isTab';
1820
+ export * from './functions/isWindow';
1821
+ export * from './functions/random';
1822
+ export * from './functions/removeCommonPrefix';
1823
+ export * from './functions/replaceComponentName';
1824
+ export * from './functions/replaceRecursive';
1825
+ export * from './functions/replaceTemplate';
1826
+ export * from './functions/resizeImageByMax';
1827
+ export * from './functions/secondToTime';
1828
+ export * from './functions/setElementItem';
1829
+ export * from './functions/setValues';
1830
+ export * from './functions/sleep';
1831
+ export * from './functions/splice';
1832
+ export * from './functions/strFill';
1833
+ export * from './functions/strSplit';
1834
+ export * from './functions/toArray';
1835
+ export * from './functions/toCamelCase';
1836
+ export * from './functions/toCamelCaseFirst';
1837
+ export * from './functions/toDate';
1838
+ export * from './functions/toKebabCase';
1839
+ export * from './functions/toNumber';
1840
+ export * from './functions/toNumberByMax';
1841
+ export * from './functions/toPercent';
1842
+ export * from './functions/toPercentBy100';
1843
+ export * from './functions/toString';
1844
+ export * from './functions/transformation';
1845
+ export * from './functions/uint8ArrayToBase64';
1846
+ export * from './functions/uniqueArray';
1847
+ export * from './functions/writeClipboardData';
1848
+ export * from './types/apiTypes';
1849
+ export * from './types/basicTypes';
1850
+ export * from './types/errorCenter';
1851
+ export * from './types/formattersTypes';
1852
+ export * from './types/geoTypes';
1853
+ export * from './types/metaTypes';
1854
+ export * from './types/searchTypes';
1855
+ export * from './types/translateTypes';
1856
+ // File: src/media/errorCauseList.d.ts
1857
+ import { ErrorCenterCauseList } from '../types/errorCenter';
1858
+ export declare const errorCauseList: ErrorCenterCauseList;
1189
1859
  // File: src/types/apiTypes.d.ts
1860
+ import { ApiErrorItem } from '../classes/ApiErrorItem';
1190
1861
  export declare enum ApiMethodItem {
1191
1862
  delete = "DELETE",
1192
1863
  get = "GET",
@@ -1194,23 +1865,107 @@ export declare enum ApiMethodItem {
1194
1865
  put = "PUT",
1195
1866
  patch = "PATCH"
1196
1867
  }
1197
- export type ApiCacheItem<T = any> = { value: T; age?: number; cacheAge: number; };
1868
+ export type ApiCacheItem<T = any> = {
1869
+ value: T;
1870
+ age?: number;
1871
+ cacheAge: number;
1872
+ };
1198
1873
  export type ApiCacheList = Record<string, ApiCacheItem>;
1199
- export type ApiConfig = { urlRoot?: string; origin?: string; headers?: ApiHeadersValue; requestDefault?: ApiDefaultValue; preparation?: (apiFetch: ApiFetch) => Promise<void>; end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>; timeout?: number; devMode?: boolean; };
1874
+ export type ApiConfig = {
1875
+ urlRoot?: string;
1876
+ origin?: string;
1877
+ headers?: ApiHeadersValue;
1878
+ requestDefault?: ApiDefaultValue;
1879
+ preparation?: (apiFetch: ApiFetch) => Promise<void>;
1880
+ end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
1881
+ timeout?: number;
1882
+ devMode?: boolean;
1883
+ };
1200
1884
  export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
1201
- export type ApiDataValidation = { status?: ApiStatusType; code?: string | number; message?: string; error?: { code?: string | number; message?: string; }; };
1202
- export type ApiDataItem<T = any> = T & ApiDataValidation & { data?: T; success?: boolean; statusObject?: ApiStatusItem; errorObject?: ApiErrorItem; };
1885
+ export type ApiDataValidation = {
1886
+ status?: ApiStatusType;
1887
+ code?: string | number;
1888
+ message?: string;
1889
+ error?: {
1890
+ code?: string | number;
1891
+ message?: string;
1892
+ };
1893
+ };
1894
+ export type ApiDataItem<T = any> = T & ApiDataValidation & {
1895
+ data?: T;
1896
+ success?: boolean;
1897
+ statusObject?: ApiStatusItem;
1898
+ errorObject?: ApiErrorItem;
1899
+ };
1203
1900
  export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
1204
1901
  export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
1205
- export type ApiFetch = { api?: boolean; path?: string; pathFull?: string; method?: ApiMethod; request?: FormData | Record<string, any> | string; auth?: boolean; headers?: Record<string, string> | null; type?: string; toData?: boolean; global?: boolean; devMode?: boolean; hideError?: boolean; hideLoading?: boolean; retry?: number; retryDelay?: number; queryReturn?: (query: Response) => Promise<any | ApiDataValidation>; globalPreparation?: boolean; globalEnd?: boolean; init?: RequestInit; initError?: boolean; timeout?: number; controller?: AbortController; cache?: number; enableClientCache?: boolean; cacheId?: number | string; endResetLimit?: number; };
1206
- export type ApiHydrationItem = { path: string | RegExp; method: ApiMethod; request?: ApiFetch['request']; response: any; };
1902
+ export type ApiFetch = {
1903
+ api?: boolean;
1904
+ path?: string;
1905
+ pathFull?: string;
1906
+ method?: ApiMethod;
1907
+ request?: FormData | Record<string, any> | string;
1908
+ auth?: boolean;
1909
+ headers?: Record<string, string> | null;
1910
+ type?: string;
1911
+ toData?: boolean;
1912
+ global?: boolean;
1913
+ devMode?: boolean;
1914
+ hideError?: boolean;
1915
+ hideLoading?: boolean;
1916
+ retry?: number;
1917
+ retryDelay?: number;
1918
+ queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
1919
+ globalPreparation?: boolean;
1920
+ globalEnd?: boolean;
1921
+ init?: RequestInit;
1922
+ initError?: boolean;
1923
+ timeout?: number;
1924
+ controller?: AbortController;
1925
+ cache?: number;
1926
+ enableClientCache?: boolean;
1927
+ cacheId?: number | string;
1928
+ endResetLimit?: number;
1929
+ };
1930
+ export type ApiHydrationItem = {
1931
+ path: string;
1932
+ method: ApiMethod;
1933
+ request?: ApiFetch['request'];
1934
+ response: any;
1935
+ };
1207
1936
  export type ApiHydrationList = ApiHydrationItem[];
1208
- export type ApiErrorStorageItem = Record<string, any> & { url: string | RegExp; method: ApiMethodItem; code?: string; status?: number; validation?: (response: Response) => boolean; message?: string | ((response?: Response) => string); };
1937
+ export type ApiErrorStorageItem = Record<string, any> & {
1938
+ url: string | RegExp;
1939
+ method: ApiMethodItem;
1940
+ code?: string;
1941
+ status?: number;
1942
+ validation?: (response: Response) => boolean;
1943
+ message?: string | ((response?: Response) => string);
1944
+ };
1209
1945
  export type ApiErrorStorageList = ApiErrorStorageItem[];
1210
1946
  export type ApiMethod = string | ApiMethodItem;
1211
- export type ApiPreparationEnd = { reset?: boolean; data?: any; };
1212
- export type ApiResponseItem = { path: string | RegExp; method: ApiMethod; request?: ApiFetch['request'] | '*any'; response: any | ((request?: ApiFetch['request']) => any); disable?: any; isForGlobal?: boolean; lag?: any; };
1213
- export type ApiStatusItem = { status?: number; statusText?: string; error?: string; lastResponse?: any; lastStatus?: ApiStatusType; lastCode?: string; lastMessage?: string; };
1947
+ export type ApiPreparationEnd = {
1948
+ reset?: boolean;
1949
+ data?: any;
1950
+ };
1951
+ export type ApiResponseItem = {
1952
+ path: string | RegExp;
1953
+ method: ApiMethod;
1954
+ request?: ApiFetch['request'] | '*any';
1955
+ response: any | ((request?: ApiFetch['request']) => any);
1956
+ disable?: any;
1957
+ isForGlobal?: boolean;
1958
+ lag?: any;
1959
+ };
1960
+ export type ApiStatusItem = {
1961
+ status?: number;
1962
+ statusText?: string;
1963
+ error?: string;
1964
+ lastResponse?: any;
1965
+ lastStatus?: ApiStatusType;
1966
+ lastCode?: string;
1967
+ lastMessage?: string;
1968
+ };
1214
1969
  export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
1215
1970
  // File: src/types/basicTypes.d.ts
1216
1971
  export type Undefined = undefined | null;
@@ -1228,21 +1983,48 @@ export type FunctionVoid = () => void;
1228
1983
  export type FunctionArgs<T, R> = (...args: T[]) => R;
1229
1984
  export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
1230
1985
  export type ItemList<T = any> = Record<string, T>;
1231
- export type Item<V> = { index: string; value: V; };
1232
- export type ItemValue<V> = { label: string; value: V; };
1233
- export type ItemName<V> = { name: string | number; value: V; };
1986
+ export type Item<V> = {
1987
+ index: string;
1988
+ value: V;
1989
+ };
1990
+ export type ItemValue<V> = {
1991
+ label: string;
1992
+ value: V;
1993
+ };
1994
+ export type ItemName<V> = {
1995
+ name: string | number;
1996
+ value: V;
1997
+ };
1234
1998
  export type ElementOrWindow = HTMLElement | Window;
1235
1999
  export type ElementOrString<E extends ElementOrWindow> = E | string;
1236
2000
  export type EventOptions = AddEventListenerOptions | boolean | undefined;
1237
2001
  export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
1238
- export type EventActivityItem<E extends ElementOrWindow> = { element: E | undefined; type: string; listener?: (event: any | Event) => void; observer?: ResizeObserver; };
1239
- export type ImageCoordinator = { x: number; y: number; };
2002
+ export type EventActivityItem<E extends ElementOrWindow> = {
2003
+ element: E | undefined;
2004
+ type: string;
2005
+ listener?: (event: any | Event) => void;
2006
+ observer?: ResizeObserver;
2007
+ };
2008
+ export type ImageCoordinator = {
2009
+ x: number;
2010
+ y: number;
2011
+ };
1240
2012
  // File: src/types/errorCenter.d.ts
1241
2013
  export type ErrorCenterGroup = string | undefined;
1242
- export type ErrorCenterCauseItem<D = any> = { group?: ErrorCenterGroup; code: string; priority?: number; label?: string; message?: string; details?: D; };
2014
+ export type ErrorCenterCauseItem<D = any> = {
2015
+ group?: ErrorCenterGroup;
2016
+ code: string;
2017
+ priority?: number;
2018
+ label?: string;
2019
+ message?: string;
2020
+ details?: D;
2021
+ };
1243
2022
  export type ErrorCenterCauseList = ErrorCenterCauseItem[];
1244
2023
  export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
1245
- export type ErrorCenterHandlerItem = { group?: ErrorCenterGroup; handlers: ErrorCenterHandlerCallback[]; };
2024
+ export type ErrorCenterHandlerItem = {
2025
+ group?: ErrorCenterGroup;
2026
+ handlers: ErrorCenterHandlerCallback[];
2027
+ };
1246
2028
  export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
1247
2029
  // File: src/types/formattersTypes.d.ts
1248
2030
  import { ArrayToItem } from './basicTypes';
@@ -1255,68 +2037,335 @@ export declare enum FormattersType {
1255
2037
  plural = "plural",
1256
2038
  unit = "unit"
1257
2039
  }
1258
- export type FormattersOptionsCurrency = { currencyPropName?: string; options?: string | Intl.NumberFormatOptions; numberOnly?: boolean; };
1259
- export type FormattersOptionsDate = { type?: GeoDate; options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions; hour24?: boolean; };
1260
- export type FormattersOptionsName = { lastPropName?: string; firstPropName?: string; surname?: string; short?: boolean; };
1261
- export type FormattersOptionsNumber = { options?: Intl.NumberFormatOptions; };
1262
- export type FormattersOptionsPlural = { words: string; options?: Intl.PluralRulesOptions; optionsNumber?: Intl.NumberFormatOptions; };
1263
- export type FormattersOptionsUnit = { unit: string | Intl.NumberFormatOptions; };
1264
- export type FormattersOptionsInformation<Type extends FormattersType> = any;
1265
- export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = { type?: Type; transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R; options?: FormattersOptionsInformation<Type>; };
2040
+ export type FormattersOptionsCurrency = {
2041
+ currencyPropName?: string;
2042
+ options?: string | Intl.NumberFormatOptions;
2043
+ numberOnly?: boolean;
2044
+ };
2045
+ export type FormattersOptionsDate = {
2046
+ type?: GeoDate;
2047
+ options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions;
2048
+ hour24?: boolean;
2049
+ };
2050
+ export type FormattersOptionsName = {
2051
+ lastPropName?: string;
2052
+ firstPropName?: string;
2053
+ surname?: string;
2054
+ short?: boolean;
2055
+ };
2056
+ export type FormattersOptionsNumber = {
2057
+ options?: Intl.NumberFormatOptions;
2058
+ };
2059
+ export type FormattersOptionsPlural = {
2060
+ words: string;
2061
+ options?: Intl.PluralRulesOptions;
2062
+ optionsNumber?: Intl.NumberFormatOptions;
2063
+ };
2064
+ export type FormattersOptionsUnit = {
2065
+ unit: string | Intl.NumberFormatOptions;
2066
+ };
2067
+ export type FormattersOptionsInformation<Type extends FormattersType> = Type extends FormattersType.currency ? FormattersOptionsCurrency : Type extends FormattersType.date ? FormattersOptionsDate : Type extends FormattersType.name ? FormattersOptionsName : Type extends FormattersType.number ? FormattersOptionsNumber : Type extends FormattersType.plural ? FormattersOptionsPlural : Type extends FormattersType.unit ? FormattersOptionsUnit : Record<string, any>;
2068
+ export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
2069
+ type?: Type;
2070
+ transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
2071
+ options?: FormattersOptionsInformation<Type>;
2072
+ };
1266
2073
  export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
1267
2074
  export type FormattersListItem = Record<string, any>;
1268
2075
  export type FormattersList<Item extends FormattersListItem> = Item[];
1269
- export type FormattersCapitalize<K extends string> = any;
2076
+ export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
1270
2077
  export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
1271
- export type FormattersKey<K, A extends string = 'Format'> = any;
1272
- export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = any;
1273
- export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = any;
1274
- export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = any;
1275
- export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = any;
2078
+ export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
2079
+ export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = {
2080
+ [K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string;
2081
+ };
2082
+ export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
2083
+ export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
2084
+ export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
1276
2085
  export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
1277
2086
  export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
1278
- export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = any;
2087
+ 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);
1279
2088
  // File: src/types/geoTypes.d.ts
1280
2089
  export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
1281
2090
  export type GeoFirstDay = 1 | 6 | 0;
1282
2091
  export type GeoHours = '12' | '24';
1283
2092
  export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
1284
- export interface GeoItem { country: string; countryAlternative?: string[]; language: string; languageAlternative?: string[]; firstDay?: string | null; zone?: string | null; phoneCode?: string; phoneWithin?: string; phoneMask?: string | string[]; nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string; }
1285
- export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> { standard: string; firstDay: string; }
1286
- export interface GeoFlagItem { language: string; country: string; standard: string; icon?: string; label: string; value: string; phoneCode?: string; }
1287
- export interface GeoFlagNational extends GeoFlagItem { description: string; nationalLanguage: string; nationalCountry: string; }
1288
- export interface GeoPhoneValue { phone: number; within: number; mask: string[]; value: string; }
1289
- export interface GeoPhoneMap { items: GeoPhoneValue[]; info: GeoPhoneValue | undefined; value: string | undefined; mask: string[]; maskFull: string[]; next: Record<string, GeoPhoneMap>; }
1290
- export interface GeoPhoneMapInfo { item?: GeoPhoneMap; phone?: string; }
2093
+ export interface GeoItem {
2094
+ country: string;
2095
+ countryAlternative?: string[];
2096
+ language: string;
2097
+ languageAlternative?: string[];
2098
+ firstDay?: string | null;
2099
+ zone?: string | null;
2100
+ phoneCode?: string;
2101
+ phoneWithin?: string;
2102
+ phoneMask?: string | string[];
2103
+ nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
2104
+ }
2105
+ export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
2106
+ standard: string;
2107
+ firstDay: string;
2108
+ }
2109
+ export interface GeoFlagItem {
2110
+ language: string;
2111
+ country: string;
2112
+ standard: string;
2113
+ icon?: string;
2114
+ label: string;
2115
+ value: string;
2116
+ phoneCode?: string;
2117
+ }
2118
+ export interface GeoFlagNational extends GeoFlagItem {
2119
+ description: string;
2120
+ nationalLanguage: string;
2121
+ nationalCountry: string;
2122
+ }
2123
+ export interface GeoPhoneValue {
2124
+ phone: number;
2125
+ within: number;
2126
+ mask: string[];
2127
+ value: string;
2128
+ }
2129
+ export interface GeoPhoneMap {
2130
+ items: GeoPhoneValue[];
2131
+ info: GeoPhoneValue | undefined;
2132
+ value: string | undefined;
2133
+ mask: string[];
2134
+ maskFull: string[];
2135
+ next: Record<string, GeoPhoneMap>;
2136
+ }
2137
+ export interface GeoPhoneMapInfo {
2138
+ item?: GeoPhoneMap;
2139
+ phone?: string;
2140
+ }
1291
2141
  // File: src/types/metaTypes.d.ts
1292
- export declare enum MetaTag { title = "title", description = "description", keywords = "keywords", canonical = "canonical", robots = "robots", author = "author" }
1293
- export declare enum MetaRobots { indexFollow = "index, follow", noIndexFollow = "noindex, follow", indexNoFollow = "index, nofollow", noIndexNoFollow = "noindex, nofollow", noArchive = "noarchive", noSnippet = "nosnippet", noImageIndex = "noimageindex", images = "images", noTranslate = "notranslate", noPreview = "nopreview", textOnly = "textonly", noIndexSubpages = "noindex, noarchive", none = "none" }
1294
- export declare enum MetaOpenGraphTag { title = "og:title", type = "og:type", url = "og:url", image = "og:image", description = "og:description", locale = "og:locale", siteName = "og:site_name", localeAlternate = "og:locale:alternate", imageUrl = "og:image:url", imageSecureUrl = "og:image:secure_url", imageType = "og:image:type", imageWidth = "og:image:width", imageHeight = "og:image:height", imageAlt = "og:image:alt", video = "og:video", videoUrl = "og:video:url", videoSecureUrl = "og:video:secure_url", videoType = "og:video:type", videoWidth = "og:video:width", videoHeight = "og:video:height", audio = "og:audio", audioSecureUrl = "og:audio:secure_url", audioType = "og:audio:type", articlePublishedTime = "article:published_time", articleModifiedTime = "article:modified_time", articleExpirationTime = "article:expiration_time", articleAuthor = "article:author", articleSection = "article:section", articleTag = "article:tag", bookAuthor = "book:author", bookIsbn = "book:isbn", bookReleaseDate = "book:release_date", bookTag = "book:tag", musicDuration = "music:duration", musicAlbum = "music:album", musicAlbumDisc = "music:album:disc", musicAlbumTrack = "music:album:track", musicMusician = "music:musician", musicSong = "music:song", musicSongDisc = "music:song:disc", musicSongTrack = "music:song:track", musicReleaseDate = "music:release_date", musicCreator = "music:creator", videoActor = "video:actor", videoActorRole = "video:actor:role", videoDirector = "video:director", videoWriter = "video:writer", videoDuration = "video:duration", videoReleaseDate = "video:release_date", videoTag = "video:tag", videoSeries = "video:series", profileFirstName = "profile:first_name", profileLastName = "profile:last_name", profileUsername = "profile:username", profileGender = "profile:gender", productBrand = "product:brand", productAvailability = "product:availability", productCondition = "product:condition", productPriceAmount = "product:price:amount", productPriceCurrency = "product:price:currency", productRetailerItemId = "product:retailer_item_id", productCategory = "product:category", productEan = "product:ean", productIsbn = "product:isbn", productMfrPartNo = "product:mfr_part_no", productUpc = "product:upc", productWeightValue = "product:weight:value", productWeightUnits = "product:weight:units", productColor = "product:color", productMaterial = "product:material", productPattern = "product:pattern", productAgeGroup = "product:age_group", productGender = "product:gender" }
1295
- export declare enum MetaOpenGraphType { website = "website", article = "article", video = "video.other", videoTvShow = "video.tv_show", videoEpisode = "video.episode", videoMovie = "video.movie", musicAlbum = "music.album", musicPlaylist = "music.playlist", musicSong = "music.song", musicRadioStation = "music.radio_station", app = "app", product = "product", business = "business.business", place = "place", event = "event", profile = "profile", book = "book" }
1296
- export declare enum MetaOpenGraphAvailability { inStock = "in stock", outOfStock = "out of stock", preorder = "preorder", backorder = "backorder", discontinued = "discontinued", pending = "pending" }
1297
- export declare enum MetaOpenGraphCondition { new = "new", used = "used", refurbished = "refurbished" }
1298
- export declare enum MetaOpenGraphAge { newborn = "newborn", infant = "infant", toddler = "toddler", kids = "kids", adult = "adult" }
1299
- export declare enum MetaOpenGraphGender { female = "female", male = "male", unisex = "unisex" }
1300
- export declare enum MetaTwitterTag { card = "twitter:card", site = "twitter:site", creator = "twitter:creator", url = "twitter:url", title = "twitter:title", description = "twitter:description", image = "twitter:image", imageAlt = "twitter:image:alt", imageSrc = "twitter:image:src", imageWidth = "twitter:image:width", imageHeight = "twitter:image:height", label1 = "twitter:label1", data1 = "twitter:data1", label2 = "twitter:label2", data2 = "twitter:data2", appNameIphone = "twitter:app:name:iphone", appIdIphone = "twitter:app:id:iphone", appUrlIphone = "twitter:app:url:iphone", appNameIpad = "twitter:app:name:ipad", appIdIpad = "twitter:app:id:ipad", appUrlIpad = "twitter:app:url:ipad", appNameGooglePlay = "twitter:app:name:googleplay", appIdGooglePlay = "twitter:app:id:googleplay", appUrlGooglePlay = "twitter:app:url:googleplay", player = "twitter:player", playerWidth = "twitter:player:width", playerHeight = "twitter:player:height", playerStream = "twitter:player:stream", playerStreamContentType = "twitter:player:stream:content_type" }
1301
- export declare enum MetaTwitterCard { summary = "summary", summaryLargeImage = "summary_large_image", app = "app", player = "player", product = "product", gallery = "gallery", photo = "photo", leadGeneration = "lead_generation", audio = "audio", poll = "poll" }
2142
+ export declare enum MetaTag {
2143
+ title = "title",
2144
+ description = "description",
2145
+ keywords = "keywords",
2146
+ canonical = "canonical",
2147
+ robots = "robots",
2148
+ author = "author"
2149
+ }
2150
+ export declare enum MetaRobots {
2151
+ indexFollow = "index, follow",
2152
+ noIndexFollow = "noindex, follow",
2153
+ indexNoFollow = "index, nofollow",
2154
+ noIndexNoFollow = "noindex, nofollow",
2155
+ noArchive = "noarchive",
2156
+ noSnippet = "nosnippet",
2157
+ noImageIndex = "noimageindex",
2158
+ images = "images",
2159
+ noTranslate = "notranslate",
2160
+ noPreview = "nopreview",
2161
+ textOnly = "textonly",
2162
+ noIndexSubpages = "noindex, noarchive",
2163
+ none = "none"
2164
+ }
2165
+ export declare enum MetaOpenGraphTag {
2166
+ title = "og:title",
2167
+ type = "og:type",
2168
+ url = "og:url",
2169
+ image = "og:image",
2170
+ description = "og:description",
2171
+ locale = "og:locale",
2172
+ siteName = "og:site_name",
2173
+ localeAlternate = "og:locale:alternate",
2174
+ imageUrl = "og:image:url",
2175
+ imageSecureUrl = "og:image:secure_url",
2176
+ imageType = "og:image:type",
2177
+ imageWidth = "og:image:width",
2178
+ imageHeight = "og:image:height",
2179
+ imageAlt = "og:image:alt",
2180
+ video = "og:video",
2181
+ videoUrl = "og:video:url",
2182
+ videoSecureUrl = "og:video:secure_url",
2183
+ videoType = "og:video:type",
2184
+ videoWidth = "og:video:width",
2185
+ videoHeight = "og:video:height",
2186
+ audio = "og:audio",
2187
+ audioSecureUrl = "og:audio:secure_url",
2188
+ audioType = "og:audio:type",
2189
+ articlePublishedTime = "article:published_time",
2190
+ articleModifiedTime = "article:modified_time",
2191
+ articleExpirationTime = "article:expiration_time",
2192
+ articleAuthor = "article:author",
2193
+ articleSection = "article:section",
2194
+ articleTag = "article:tag",
2195
+ bookAuthor = "book:author",
2196
+ bookIsbn = "book:isbn",
2197
+ bookReleaseDate = "book:release_date",
2198
+ bookTag = "book:tag",
2199
+ musicDuration = "music:duration",
2200
+ musicAlbum = "music:album",
2201
+ musicAlbumDisc = "music:album:disc",
2202
+ musicAlbumTrack = "music:album:track",
2203
+ musicMusician = "music:musician",
2204
+ musicSong = "music:song",
2205
+ musicSongDisc = "music:song:disc",
2206
+ musicSongTrack = "music:song:track",
2207
+ musicReleaseDate = "music:release_date",
2208
+ musicCreator = "music:creator",
2209
+ videoActor = "video:actor",
2210
+ videoActorRole = "video:actor:role",
2211
+ videoDirector = "video:director",
2212
+ videoWriter = "video:writer",
2213
+ videoDuration = "video:duration",
2214
+ videoReleaseDate = "video:release_date",
2215
+ videoTag = "video:tag",
2216
+ videoSeries = "video:series",
2217
+ profileFirstName = "profile:first_name",
2218
+ profileLastName = "profile:last_name",
2219
+ profileUsername = "profile:username",
2220
+ profileGender = "profile:gender",
2221
+ productBrand = "product:brand",
2222
+ productAvailability = "product:availability",
2223
+ productCondition = "product:condition",
2224
+ productPriceAmount = "product:price:amount",
2225
+ productPriceCurrency = "product:price:currency",
2226
+ productRetailerItemId = "product:retailer_item_id",
2227
+ productCategory = "product:category",
2228
+ productEan = "product:ean",
2229
+ productIsbn = "product:isbn",
2230
+ productMfrPartNo = "product:mfr_part_no",
2231
+ productUpc = "product:upc",
2232
+ productWeightValue = "product:weight:value",
2233
+ productWeightUnits = "product:weight:units",
2234
+ productColor = "product:color",
2235
+ productMaterial = "product:material",
2236
+ productPattern = "product:pattern",
2237
+ productAgeGroup = "product:age_group",
2238
+ productGender = "product:gender"
2239
+ }
2240
+ export declare enum MetaOpenGraphType {
2241
+ website = "website",
2242
+ article = "article",
2243
+ video = "video.other",
2244
+ videoTvShow = "video.tv_show",
2245
+ videoEpisode = "video.episode",
2246
+ videoMovie = "video.movie",
2247
+ musicAlbum = "music.album",
2248
+ musicPlaylist = "music.playlist",
2249
+ musicSong = "music.song",
2250
+ musicRadioStation = "music.radio_station",
2251
+ app = "app",
2252
+ product = "product",
2253
+ business = "business.business",
2254
+ place = "place",
2255
+ event = "event",
2256
+ profile = "profile",
2257
+ book = "book"
2258
+ }
2259
+ export declare enum MetaOpenGraphAvailability {
2260
+ inStock = "in stock",
2261
+ outOfStock = "out of stock",
2262
+ preorder = "preorder",
2263
+ backorder = "backorder",
2264
+ discontinued = "discontinued",
2265
+ pending = "pending"
2266
+ }
2267
+ export declare enum MetaOpenGraphCondition {
2268
+ new = "new",
2269
+ used = "used",
2270
+ refurbished = "refurbished"
2271
+ }
2272
+ export declare enum MetaOpenGraphAge {
2273
+ newborn = "newborn",
2274
+ infant = "infant",
2275
+ toddler = "toddler",
2276
+ kids = "kids",
2277
+ adult = "adult"
2278
+ }
2279
+ export declare enum MetaOpenGraphGender {
2280
+ female = "female",
2281
+ male = "male",
2282
+ unisex = "unisex"
2283
+ }
2284
+ export declare enum MetaTwitterTag {
2285
+ card = "twitter:card",
2286
+ site = "twitter:site",
2287
+ creator = "twitter:creator",
2288
+ url = "twitter:url",
2289
+ title = "twitter:title",
2290
+ description = "twitter:description",
2291
+ image = "twitter:image",
2292
+ imageAlt = "twitter:image:alt",
2293
+ imageSrc = "twitter:image:src",
2294
+ imageWidth = "twitter:image:width",
2295
+ imageHeight = "twitter:image:height",
2296
+ label1 = "twitter:label1",
2297
+ data1 = "twitter:data1",
2298
+ label2 = "twitter:label2",
2299
+ data2 = "twitter:data2",
2300
+ appNameIphone = "twitter:app:name:iphone",
2301
+ appIdIphone = "twitter:app:id:iphone",
2302
+ appUrlIphone = "twitter:app:url:iphone",
2303
+ appNameIpad = "twitter:app:name:ipad",
2304
+ appIdIpad = "twitter:app:id:ipad",
2305
+ appUrlIpad = "twitter:app:url:ipad",
2306
+ appNameGooglePlay = "twitter:app:name:googleplay",
2307
+ appIdGooglePlay = "twitter:app:id:googleplay",
2308
+ appUrlGooglePlay = "twitter:app:url:googleplay",
2309
+ player = "twitter:player",
2310
+ playerWidth = "twitter:player:width",
2311
+ playerHeight = "twitter:player:height",
2312
+ playerStream = "twitter:player:stream",
2313
+ playerStreamContentType = "twitter:player:stream:content_type"
2314
+ }
2315
+ export declare enum MetaTwitterCard {
2316
+ summary = "summary",
2317
+ summaryLargeImage = "summary_large_image",
2318
+ app = "app",
2319
+ player = "player",
2320
+ product = "product",
2321
+ gallery = "gallery",
2322
+ photo = "photo",
2323
+ leadGeneration = "lead_generation",
2324
+ audio = "audio",
2325
+ poll = "poll"
2326
+ }
1302
2327
  // File: src/types/searchTypes.d.ts
1303
2328
  export type SearchItem = Record<string, any>;
1304
2329
  export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
1305
- export type SearchColumn<T extends SearchItem> = any;
1306
- export type SearchColumns<T extends SearchItem> = (any)[];
1307
- export type SearchFormatCapitalize<K extends string> = any;
1308
- export type SearchFormatKey<K> = any;
1309
- export type SearchFormatItem<T extends SearchItem, KT extends string[]> = any;
1310
- export type SearchFormatList<T extends SearchItem, K extends string[]> = any;
2330
+ export type SearchColumn<T extends SearchItem> = {
2331
+ [K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K;
2332
+ }[keyof T];
2333
+ export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
2334
+ export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
2335
+ export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
2336
+ export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
2337
+ [K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
2338
+ } & {
2339
+ searchActive?: boolean;
2340
+ };
2341
+ export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
1311
2342
  export type SearchListValue<T extends SearchItem> = T[] | undefined;
1312
- export type SearchOptions = { limit?: number; returnEverything?: boolean; delay?: number; findExactMatch?: boolean; classSearchName?: string; };
1313
- export type SearchCacheItem<T extends SearchItem> = { item: T; value: string; };
2343
+ export type SearchOptions = {
2344
+ limit?: number;
2345
+ returnEverything?: boolean;
2346
+ delay?: number;
2347
+ findExactMatch?: boolean;
2348
+ classSearchName?: string;
2349
+ };
2350
+ export type SearchCacheItem<T extends SearchItem> = {
2351
+ item: T;
2352
+ value: string;
2353
+ };
1314
2354
  export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
1315
- export type HighlightMatchItem = { text: string; isMatch: boolean; };
2355
+ export type HighlightMatchItem = {
2356
+ text: string;
2357
+ isMatch: boolean;
2358
+ };
1316
2359
  // File: src/types/translateTypes.d.ts
1317
- export type TranslateConfig = { url?: string; propsName?: string; readApi?: boolean; };
2360
+ export type TranslateConfig = {
2361
+ url?: string;
2362
+ propsName?: string;
2363
+ readApi?: boolean;
2364
+ };
1318
2365
  export type TranslateCode = string | string[];
1319
- export type TranslateList<T extends TranslateCode[]> = { [K in T[number] as K extends readonly string[] ? K[0] : K]: string; };
2366
+ export type TranslateList<T extends TranslateCode[]> = {
2367
+ [K in T[number] as K extends readonly string[] ? K[0] : K]: string;
2368
+ };
1320
2369
  export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
1321
2370
  export type TranslateDataFileList = Record<string, string>;
1322
2371
  export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;