@dxtmisha/functional-basic 1.2.8 → 1.2.10

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
@@ -11,157 +11,145 @@ The following is the content of "exports" from package.json:
11
11
  }
12
12
 
13
13
  // File: src/classes/Api.d.ts
14
- /** HTTP request handler. */
14
+ import { ApiInstance } from './ApiInstance';
15
+ import { ApiConfig, ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethodItem, ApiPreparationEnd } from '../types/apiTypes';
16
+ import { ApiStatus } from './ApiStatus';
17
+ import { ApiResponse } from './ApiResponse';
18
+ import { ApiHydration } from './ApiHydration';
19
+ /**
20
+ * Class for working with HTTP requests.
21
+ */
15
22
  export declare class Api {
16
- /** Check if running on localhost. */
17
23
  static isLocalhost(): boolean;
18
- /** Get ApiInstance singleton. */
19
24
  static getItem(): ApiInstance;
20
- /** Get status of last request. */
21
25
  static getStatus(): ApiStatus;
22
- /** Get response handler. */
23
26
  static getResponse(): ApiResponse;
24
- /** Get hydration handler. */
25
27
  static getHydration(): ApiHydration;
26
- /** Get hydration data script string. */
27
28
  static getHydrationScript(): string;
28
- /** Get base URL with API path. */
29
29
  static getOrigin(): string;
30
- /** Get full script path. */
31
30
  static getUrl(path: string, api?: boolean): string;
32
- /** Get request body data. */
33
31
  static getBody(request?: ApiFetch['request'], method?: ApiMethodItem): string | FormData | undefined;
34
- /** Get GET request query string. */
35
32
  static getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethodItem): string;
36
- /** Set default headers. */
37
33
  static setHeaders(headers: ApiHeadersValue): void;
38
- /** Set default request data. */
39
34
  static setRequestDefault(request: ApiDefaultValue): void;
40
- /** Set base script path. */
41
35
  static setUrl(url: string): void;
42
- /** Set pre-request callback. */
43
36
  static setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): void;
44
- /** Set post-request callback. */
45
37
  static setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): void;
46
- /** Set request timeout (ms). */
47
38
  static setTimeout(timeout: number): void;
48
- /** Set base URL origin. */
49
39
  static setOrigin(origin: string): void;
50
- /** Set API config. */
51
40
  static setConfig(config?: ApiConfig): void;
52
- /** Execute request. */
53
41
  static request<T>(pathRequest: string | ApiFetch): Promise<T>;
54
- /** GET request. */
55
42
  static get<T>(request: ApiFetch): Promise<T>;
56
- /** POST request. */
57
43
  static post<T>(request: ApiFetch): Promise<T>;
58
- /** PUT request. */
59
44
  static put<T>(request: ApiFetch): Promise<T>;
60
- /** PATCH request. */
61
45
  static patch<T>(request: ApiFetch): Promise<T>;
62
- /** DELETE request. */
63
46
  static delete<T>(request: ApiFetch): Promise<T>;
64
47
  }
65
48
  // File: src/classes/ApiCache.d.ts
66
- /** API response caching. */
49
+ import { ApiCacheItem, ApiCacheList, ApiFetch } from '../types/apiTypes';
50
+ /**
51
+ * Class for caching API responses.
52
+ */
67
53
  export declare class ApiCache {
68
- /** Initialize storage. */
69
54
  static init(getListener: (key: string) => Promise<ApiCacheItem | undefined>, setListener: (key: string, value: ApiCacheItem) => Promise<boolean>, removeListener: (key: string) => Promise<boolean>, cacheStepAgeClearOld?: number): void;
70
- /** Clear cache and listeners. */
71
55
  static reset(): void;
72
- /** Get cached data. */
73
56
  static get<T>(key: string): Promise<T | undefined>;
74
- /** Get cached data by fetch options. */
75
57
  static getByFetch<T>(fetch: ApiFetch): Promise<T | undefined>;
76
- /** Save data to cache. */
77
58
  static set<T>(key: string, value: T, age?: number): Promise<void>;
78
- /** Save data by fetch options. */
79
59
  static setByFetch<T>(fetch: ApiFetch, value: T): Promise<void>;
80
- /** Remove cached data. */
81
60
  static remove(key: string): Promise<void>;
82
61
  }
83
62
  // File: src/classes/ApiDataReturn.d.ts
84
- /** API response data processor. */
63
+ import { ApiStatus } from './ApiStatus';
64
+ import { ApiErrorItem } from './ApiErrorItem';
65
+ import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
66
+ /**
67
+ * Class for processing API response data.
68
+ */
85
69
  export declare class ApiDataReturn<T = any> {
86
70
  constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
87
- /** Read data from response. */
88
71
  init(): Promise<this>;
89
- /** Get processed data. */
90
72
  get(): ApiData<T>;
91
- /** Get processed data and status. */
92
73
  getAndStatus(status: ApiStatus): ApiData<T>;
93
- /** Get raw API data. */
94
74
  getData(): ApiData<T> | undefined;
95
75
  }
96
76
  // File: src/classes/ApiDefault.d.ts
97
- /** Default API request data handler. */
77
+ import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
78
+ /**
79
+ * Class for working with default API request data.
80
+ */
98
81
  export declare class ApiDefault {
99
- /** Check if default data exists. */
100
82
  is(): boolean;
101
- /** Get default request data. */
102
83
  get(): Record<string, any> | undefined;
103
- /** Merge default data into request. */
104
84
  request(request: ApiFetch['request']): ApiFetch['request'];
105
- /** Set default request data. */
106
85
  set(request: ApiDefaultValue): this;
107
86
  }
108
87
  // File: src/classes/ApiError.d.ts
109
- /** API error storage and creation utility. */
88
+ import { ApiErrorItem } from './ApiErrorItem';
89
+ import { ApiErrorStorage } from './ApiErrorStorage';
90
+ import { ApiMethodItem } from '../types/apiTypes';
91
+ /**
92
+ * Utility for managing API error storage.
93
+ */
110
94
  export declare class ApiError {
111
- /** Get error storage instance. */
112
95
  static getStorage(): ApiErrorStorage;
113
- /** Add errors to storage. */
114
- static add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): void;
115
- /** Match response to error criteria. */
96
+ static add(item: any, url?: string | RegExp, method?: ApiMethodItem): void;
116
97
  static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
117
98
  }
118
99
  // File: src/classes/ApiErrorItem.d.ts
119
- /** API error response data extractor. */
100
+ import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
101
+ /**
102
+ * Class for managing and extracting data from an API error response.
103
+ */
120
104
  export declare class ApiErrorItem {
121
105
  constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
122
- /** Get request HTTP method. */
123
106
  getMethod(): ApiMethodItem;
124
- /** Get raw response. */
125
107
  getResponse(): Response;
126
- /** Get error storage item. */
127
108
  getError(): ApiErrorStorageItem;
128
- /** Get error code. */
129
109
  getCode(): string | undefined;
130
- /** Get error message. */
131
110
  getMessage(): string | undefined;
132
- /** Get HTTP status code. */
133
111
  getStatus(): number;
134
112
  }
135
113
  // File: src/classes/ApiErrorStorage.d.ts
136
- /** Manager for API error states. */
114
+ import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
115
+ /**
116
+ * Manager for handling API error states.
117
+ */
137
118
  export declare class ApiErrorStorage {
138
- /** Find matching error in storage. */
139
119
  find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
140
- /** Add error criteria. */
141
- add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): this;
120
+ add(item: any, url?: string | RegExp, method?: ApiMethodItem): this;
142
121
  }
143
122
  // File: src/classes/ApiHeaders.d.ts
144
- /** HTTP request headers manager. */
123
+ import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
124
+ /**
125
+ * Class for managing HTTP request headers.
126
+ */
145
127
  export declare class ApiHeaders {
146
- /** Get request headers. */
147
128
  get(value?: Record<string, string> | null, type?: string | undefined | null): Record<string, string> | undefined;
148
- /** Get headers by request type. */
149
129
  getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
150
- /** Set default headers. */
151
130
  set(headers: ApiHeadersValue): this;
152
131
  }
153
132
  // File: src/classes/ApiHydration.d.ts
154
- /** SSR hydration data collector. */
133
+ import { ApiResponse } from './ApiResponse';
134
+ import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
135
+ /**
136
+ * Class for collecting API data for hydration (SSR).
137
+ */
155
138
  export declare class ApiHydration {
156
- /** Initialize response with hydration. */
157
139
  initResponse(response: ApiResponse): void;
158
- /** Save response for client. */
159
140
  toClient<T>(apiFetch: ApiFetch, response: T): void;
160
- /** Get HTML script representation. */
161
141
  toString(): string;
162
142
  }
163
143
  // File: src/classes/ApiInstance.d.ts
164
- /** core API instance for options. */
144
+ import { LoadingInstance } from './LoadingInstance';
145
+ import { ErrorCenterInstance } from './ErrorCenterInstance';
146
+ import { ApiDefault } from './ApiDefault';
147
+ import { ApiHeaders } from './ApiHeaders';
148
+ import { ApiHydration } from './ApiHydration';
149
+ import { ApiPreparation } from './ApiPreparation';
150
+ import { ApiResponse } from './ApiResponse';
151
+ import { ApiStatus } from './ApiStatus';
152
+ import { ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethod, ApiPreparationEnd } from '../types/apiTypes';
165
153
  export type ApiInstanceOptions = {
166
154
  headersClass?: typeof ApiHeaders;
167
155
  requestDefaultClass?: typeof ApiDefault;
@@ -172,194 +160,157 @@ export type ApiInstanceOptions = {
172
160
  errorCenterClass?: ErrorCenterInstance;
173
161
  hydrationClass?: typeof ApiHydration;
174
162
  };
175
- /** Core HTTP request manager using Fetch API. */
163
+ /**
164
+ * Core class for managing HTTP requests.
165
+ */
176
166
  export declare class ApiInstance {
177
167
  constructor(url?: string, options?: ApiInstanceOptions);
178
- /** Check if on localhost. */
179
168
  isLocalhost(): boolean;
180
- /** Get request status. */
181
169
  getStatus(): ApiStatus;
182
- /** Get response handler. */
183
170
  getResponse(): ApiResponse;
184
- /** Get hydration handler. */
185
171
  getHydration(): ApiHydration;
186
- /** Get origin with API path. */
187
172
  getOrigin(): string;
188
- /** Get full script path. */
189
173
  getUrl(path: string, api?: boolean): string;
190
- /** Get request body. */
191
174
  getBody(request?: ApiFetch['request'], method?: ApiMethod): string | FormData | undefined;
192
- /** Get GET query string. */
193
175
  getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethod): string;
194
- /** Get script element for client hydration. */
195
176
  getHydrationScript(): string;
196
- /** Set default headers. */
197
177
  setHeaders(headers: ApiHeadersValue): this;
198
- /** Set default request data. */
199
178
  setRequestDefault(request: ApiDefaultValue): this;
200
- /** Set base path. */
201
179
  setUrl(url: string): this;
202
- /** Set pre-request callback. */
203
180
  setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): this;
204
- /** Set post-request callback. */
205
181
  setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
206
- /** Set request timeout (ms). */
207
182
  setTimeout(timeout: number): this;
208
- /** Set URL origin. */
209
183
  setOrigin(origin: string): this;
210
- /** Execute request. */
211
184
  request<T>(pathRequest: string | ApiFetch): Promise<T>;
212
- /** GET method. */
213
185
  get<T>(request: ApiFetch): Promise<T>;
214
- /** POST method. */
215
186
  post<T>(request: ApiFetch): Promise<T>;
216
- /** PUT method. */
217
187
  put<T>(request: ApiFetch): Promise<T>;
218
- /** PATCH method. */
219
188
  patch<T>(request: ApiFetch): Promise<T>;
220
- /** DELETE method. */
221
189
  delete<T>(request: ApiFetch): Promise<T>;
222
190
  }
223
191
  // File: src/classes/ApiPreparation.d.ts
224
- /** Request preparation handler. */
192
+ import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
193
+ /**
194
+ * Class for preparing requests.
195
+ */
225
196
  export declare class ApiPreparation {
226
- /** Execute pre-request preparation. */
227
197
  make(active: boolean, apiFetch: ApiFetch): Promise<void>;
228
- /** Execute post-request analysis. */
229
198
  makeEnd(active: boolean, query: Response, apiFetch: ApiFetch): Promise<ApiPreparationEnd>;
230
- /** Set pre-request callback. */
231
199
  set(callback: (apiFetch: ApiFetch) => Promise<void>): this;
232
- /** Set post-request callback. */
233
200
  setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
234
201
  }
235
202
  // File: src/classes/ApiResponse.d.ts
236
- /** API response manager and emulator. */
203
+ import { ApiDefault } from './ApiDefault';
204
+ import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
205
+ /**
206
+ * Class for working with API responses.
207
+ */
237
208
  export declare class ApiResponse {
238
209
  constructor(requestDefault: ApiDefault);
239
- /** Get cached request. */
240
210
  get(path: string | undefined, method: ApiMethod, request?: ApiFetch['request'], devMode?: boolean): ApiResponseItem | undefined;
241
- /** Get cached responses list. */
242
211
  getList(): (ApiResponseItem & Record<string, any>)[];
243
- /** Add cached requests. */
244
212
  add(response: ApiResponseItem | ApiResponseItem[]): this;
245
- /** Set dev mode. */
246
213
  setDevMode(devMode: boolean): this;
247
- /** Run emulator. */
248
214
  emulator<T>(apiFetch: ApiFetch): Promise<T | undefined>;
249
- /** Run emulator synchronously. */
250
215
  emulatorAsync<T>(apiFetch: ApiFetch): T | undefined;
251
216
  }
252
217
  // File: src/classes/ApiStatus.d.ts
253
- /** API request status manager. */
218
+ import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
219
+ /**
220
+ * Class for managing API request status.
221
+ */
254
222
  export declare class ApiStatus {
255
- /** Get last status item. */
256
223
  get(): ApiStatusItem | undefined;
257
- /** Get HTTP status code. */
258
224
  getStatus(): number | undefined;
259
- /** Get status text. */
260
225
  getStatusText(): string | undefined;
261
- /** Get status type. */
262
226
  getStatusType(): ApiStatusType | undefined;
263
- /** Get response code. */
264
227
  getCode(): string | undefined;
265
- /** Get execution error message. */
266
228
  getError(): string | undefined;
267
- /** Get last request data. */
268
229
  getResponse<T>(): T | undefined;
269
- /** Get last request message. */
270
230
  getMessage(): string;
271
- /** Set status data. */
272
231
  set(data: ApiStatusItem): this;
273
- /** Set HTTP status and text. */
274
232
  setStatus(status?: number, statusText?: string): this;
275
- /** Set error message. */
276
233
  setError(error?: string): this;
277
- /** Set last response data. */
278
234
  setLastResponse(response?: any): this;
279
- /** Set last status type. */
280
235
  setLastStatus(status?: ApiStatusType): this;
281
- /** Set last response code. */
282
236
  setLastCode(code?: string): this;
283
- /** Set last message. */
284
237
  setLastMessage(message?: string): this;
285
238
  }
286
239
  // File: src/classes/BroadcastMessage.d.ts
287
- /** BroadcastChannel message handler. */
240
+ import { ErrorCenterInstance } from './ErrorCenterInstance';
241
+ /**
242
+ * Class for working with BroadcastChannel messages.
243
+ */
288
244
  export declare class BroadcastMessage<Message = any> {
289
245
  constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
290
- /** Get BroadcastChannel instance. */
291
246
  getChannel(): BroadcastChannel | undefined;
292
- /** Send message. */
293
247
  post(message: Message): this;
294
- /** Set message callback. */
295
248
  setCallback(callback: (event: MessageEvent<Message>) => void): this;
296
- /** Set error callback. */
297
249
  setCallbackError(callbackError: (event: MessageEvent<Message>) => void): this;
298
- /** Close channel. */
299
250
  destroy(): this;
300
251
  }
301
252
  // File: src/classes/Cache.d.ts
302
- /** @deprecated In-memory cache by key. */
253
+ /**
254
+ * Simple in-memory cache class.
255
+ * @deprecated
256
+ */
303
257
  export declare class Cache {
304
- /** Get cached value or execute callback. */
305
258
  get<T>(name: string, callback: () => T, comparison?: any[]): T;
306
- /** Async get cached value. */
307
259
  getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
308
260
  }
309
261
  // File: src/classes/CacheItem.d.ts
310
- /** @deprecated Single cached value with dependency tracking. */
262
+ /**
263
+ * Class for managing a single cached value.
264
+ * @deprecated
265
+ */
311
266
  export declare class CacheItem<T> {
312
267
  constructor(callback: () => T);
313
- /** Get cached value, recompute if deps change. */
314
268
  getCache(comparison: any[]): T;
315
- /** Get previous cached value. */
316
269
  getCacheOld(): T | undefined;
317
- /** Async get cached value. */
318
270
  getCacheAsync(comparison: any[]): Promise<T>;
319
271
  }
320
272
  // File: src/classes/CacheStatic.d.ts
321
- /** @deprecated Static persistent cache using ServerStorage. */
273
+ import { Cache } from './Cache';
274
+ /**
275
+ * Static cache class.
276
+ * @deprecated
277
+ */
322
278
  export declare class CacheStatic {
323
- /** Get cached value. */
324
279
  static get<T>(name: string, callback: () => T, comparison?: any[]): T;
325
- /** Async get cached value. */
326
280
  static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
327
281
  }
328
282
  // File: src/classes/Cookie.d.ts
329
- /** Cookie management class. */
283
+ import { CookieOptions } from './CookieStorage';
284
+ /**
285
+ * Class for working with cookies.
286
+ */
330
287
  export declare class Cookie<T> {
331
- /** Get instance by cookie name. */
332
288
  static getInstance<T>(name: string): Cookie<T>;
333
289
  constructor(name: string);
334
- /** Get data or update if missing. */
335
290
  get(defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): string | T | undefined;
336
- /** Update cookie. */
337
291
  set(value?: T | string | (() => (T | string)), options?: CookieOptions): void;
338
- /** Delete cookie. */
339
292
  remove(): void;
340
293
  }
341
294
  // File: src/classes/CookieBlock.d.ts
342
- /** Global cookie access status manager. */
295
+ import { CookieBlockInstance } from './CookieBlockInstance';
296
+ /**
297
+ * Class for changing cookie access status.
298
+ */
343
299
  export declare class CookieBlock {
344
- /** Get isolated CookieBlockInstance. */
345
300
  static getItem(): CookieBlockInstance;
346
- /** Get block status. */
347
301
  static get(): boolean;
348
- /** Set block status. */
349
302
  static set(value: boolean): void;
350
303
  }
351
304
  // File: src/classes/CookieBlockInstance.d.ts
352
- /** isolated cookie access status. */
305
+ /**
306
+ * Class for changing cookie access status.
307
+ */
353
308
  export declare class CookieBlockInstance {
354
- /** Get block status. */
355
309
  get(): boolean;
356
- /** Set block status. */
357
310
  set(value: boolean): void;
358
311
  }
359
312
  // File: src/classes/CookieStorage.d.ts
360
- /** Cookie sameSite values. */
361
313
  export type CookieSameSite = 'strict' | 'lax';
362
- /** Cookie settings. */
363
314
  export type CookieOptions = {
364
315
  age?: number;
365
316
  sameSite?: CookieSameSite;
@@ -370,95 +321,66 @@ export type CookieOptions = {
370
321
  partitioned?: boolean;
371
322
  arguments?: string[] | Record<string, string | number | boolean>;
372
323
  };
373
- /** Cookie storage manager with SSR/DOM support. */
324
+ /**
325
+ * Class for managing cookie storage.
326
+ */
374
327
  export declare class CookieStorage {
375
- /** Initialize storage listeners. */
376
328
  static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
377
- /** Reset storage and listeners. */
378
329
  static reset(): void;
379
- /** Get cookie data. */
380
330
  static get<T>(name: string, defaultValue?: T | (() => T)): T | undefined;
381
- /** Save cookie data. */
382
331
  static set<T>(name: string, value: T | (() => T), options?: CookieOptions): T;
383
- /** Delete cookie. */
384
332
  static remove(name: string): void;
385
- /** Sync storage data. */
386
333
  static update(): void;
387
334
  }
388
335
  // File: src/classes/DataStorage.d.ts
389
- /** Local/session storage with SSR isolation and TTL. */
336
+ import { ErrorCenterInstance } from './ErrorCenterInstance';
337
+ /**
338
+ * Class for working with localStorage and sessionStorage.
339
+ */
390
340
  export declare class DataStorage<T> {
391
- /** Set storage key prefix globally. */
392
341
  static setPrefix(newPrefix: string): void;
393
342
  constructor(name: string, isSession?: boolean, errorCenter?: ErrorCenterInstance);
394
- /** Get data with cache TTL support. */
395
343
  get(defaultValue?: T | (() => T), cache?: number): T | undefined;
396
- /** Save data. */
397
344
  set(value?: T | (() => T)): T | undefined;
398
- /** Delete data. */
399
345
  remove(): this;
400
- /** Sync from storage. */
401
346
  update(): this;
402
347
  }
403
348
  // File: src/classes/Datetime.d.ts
404
- /** @remarks rendering in SSR without specific date may cause hydration mismatch. */
349
+ import { GeoIntl } from './GeoIntl';
350
+ import { NumberOrStringOrDate } from '../types/basicTypes';
351
+ import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
352
+ /**
353
+ * Class for working with dates.
354
+ */
405
355
  export declare class Datetime {
406
356
  constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
407
- /** Get GeoIntl object. */
408
357
  getIntl(): GeoIntl;
409
- /** Get Date object. */
410
358
  getDate(): Date;
411
- /** Get output type. */
412
359
  getType(): GeoDate;
413
- /** Get hour format (12/24). */
414
360
  getHoursType(): GeoHours;
415
- /** Check if 24-hour format. */
416
361
  getHour24(): boolean;
417
- /** Get timezone offset (min). */
418
362
  getTimeZoneOffset(): number;
419
- /** Get timezone string. */
420
363
  getTimeZone(style?: GeoTimeZoneStyle): string;
421
- /** Get first day of week code. */
422
364
  getFirstDayCode(): GeoFirstDay;
423
- /** Get year. */
424
365
  getYear(): number;
425
- /** Get month (1-12). */
426
366
  getMonth(): number;
427
- /** Get day (1-31). */
428
367
  getDay(): number;
429
- /** Get hour (0-23). */
430
368
  getHour(): number;
431
- /** Get minute (0-59). */
432
369
  getMinute(): number;
433
- /** Get second (0-59). */
434
370
  getSecond(): number;
435
- /** Get max days in month. */
436
371
  getMaxDay(): number;
437
- /** Format locale date string. */
438
372
  locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): string;
439
- /** Format year. */
440
373
  localeYear(style?: Intl.DateTimeFormatOptions['year']): string;
441
- /** Format month. */
442
374
  localeMonth(style?: Intl.DateTimeFormatOptions['month']): string;
443
- /** Format day. */
444
375
  localeDay(style?: Intl.DateTimeFormatOptions['day']): string;
445
- /** Format hour. */
446
376
  localeHour(style?: Intl.DateTimeFormatOptions['hour']): string;
447
- /** Format minute. */
448
377
  localeMinute(style?: Intl.DateTimeFormatOptions['minute']): string;
449
- /** Format second. */
450
378
  localeSecond(style?: Intl.DateTimeFormatOptions['second']): string;
451
- /** ISO-like standard format. */
452
379
  standard(timeZone?: boolean): string;
453
- /** Set date value. */
454
380
  setDate(value: NumberOrStringOrDate): this;
455
- /** Set output type. */
456
381
  setType(value: GeoDate): this;
457
- /** Set 12/24 hour format. */
458
382
  setHour24(value: boolean): this;
459
- /** Set location code. */
460
383
  setCode(code: string): this;
461
- /** Set update callback. */
462
384
  setWatch(watch: (date: Date, type: GeoDate, hour24: boolean) => void): this;
463
385
  setYear(value: number): this;
464
386
  setMonth(value: number): this;
@@ -486,9 +408,7 @@ export declare class Datetime {
486
408
  moveDayLast(): this;
487
409
  moveDayNext(): this;
488
410
  moveDayPrevious(): this;
489
- /** Clone Date object. */
490
411
  clone(): Date;
491
- /** Clone Datetime class. */
492
412
  cloneClass(): Datetime;
493
413
  cloneMonthFirst(): Datetime;
494
414
  cloneMonthLast(): Datetime;
@@ -506,42 +426,40 @@ export declare class Datetime {
506
426
  cloneDayPrevious(): Datetime;
507
427
  }
508
428
  // File: src/classes/ErrorCenter.d.ts
509
- /** Global error management. */
429
+ import { ErrorCenterInstance } from './ErrorCenterInstance';
430
+ import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
431
+ /**
432
+ * Class for managing error storage and handling.
433
+ */
510
434
  export declare class ErrorCenter {
511
- /** Get isolated ErrorCenterInstance. */
512
435
  static getItem(): ErrorCenterInstance;
513
- /** Check if error code exists. */
514
436
  static has(code: string, group?: string): boolean;
515
- /** Get error cause. */
516
437
  static get(code: string, group?: string): ErrorCenterCauseItem | undefined;
517
- /** Add error cause. */
518
438
  static add(cause: ErrorCenterCauseItem): void;
519
- /** Add list of error causes. */
520
439
  static addList(causes: ErrorCenterCauseList): void;
521
- /** Register error handler. */
522
440
  static addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): void;
523
- /** Register handlers list. */
524
441
  static addHandlerList(handlers: ErrorCenterHandlerList): void;
525
- /** Trigger error handling. */
526
442
  static on(cause: ErrorCenterCauseItem): void;
527
443
  }
528
444
  // File: src/classes/ErrorCenterHandler.d.ts
529
- /** Error handler manager. */
445
+ import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerItem, ErrorCenterHandlerList } from '../types/errorCenter';
446
+ /**
447
+ * Class for managing and triggering error handlers.
448
+ */
530
449
  export declare class ErrorCenterHandler {
531
450
  constructor(handlers?: ErrorCenterHandlerList);
532
- /** Check handlers for group. */
533
451
  has(group: ErrorCenterGroup): boolean;
534
- /** Get handler item. */
535
452
  get(group: ErrorCenterGroup): ErrorCenterHandlerItem | undefined;
536
- /** Add handler. */
537
453
  add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
538
- /** Add handlers list. */
539
454
  addList(handlers: ErrorCenterHandlerList): this;
540
- /** Trigger handlers. */
541
455
  on(cause: ErrorCenterCauseItem): this;
542
456
  }
543
457
  // File: src/classes/ErrorCenterInstance.d.ts
544
- /** Error storage and handling instance. */
458
+ import { ErrorCenterHandler } from './ErrorCenterHandler';
459
+ import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
460
+ /**
461
+ * Class for managing error storage and handling.
462
+ */
545
463
  export declare class ErrorCenterInstance {
546
464
  constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
547
465
  has(code: string, group?: string): boolean;
@@ -553,258 +471,189 @@ export declare class ErrorCenterInstance {
553
471
  on(cause: ErrorCenterCauseItem): this;
554
472
  }
555
473
  // File: src/classes/EventItem.d.ts
556
- /** Advanced DOM event lifecycle manager. */
474
+ import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
475
+ /**
476
+ * Advanced wrapper for managing event listeners.
477
+ */
557
478
  export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
558
479
  constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
559
- /** Check if active. */
560
480
  isActive(): boolean;
561
- /** Get target element. */
562
481
  getElement(): E | undefined;
563
- /** Change element. */
564
482
  setElement(elementSelector?: ElementOrString<E>): this;
565
- /** Set DOM safety control element. */
566
483
  setElementControl<EC extends HTMLElement>(elementSelector?: ElementOrString<EC>): this;
567
- /** Change event type(s). */
568
484
  setType(type: string | string[]): this;
569
- /** Change listener function. */
570
485
  setListener(listener: EventListenerDetail<O, D>): this;
571
- /** Set listener options. */
572
486
  setOptions(options?: EventOptions): this;
573
- /** Set custom data. */
574
487
  setDetail(detail?: D): this;
575
- /** Manually trigger events. */
576
488
  dispatch(detail?: D | undefined): this;
577
- /** Enable listener. */
578
489
  start(): this;
579
- /** Disable listener. */
580
490
  stop(): this;
581
- /** Set activation state. */
582
491
  toggle(activity: boolean): this;
583
- /** Restart listener. */
584
492
  reset(): this;
585
493
  }
586
494
  // File: src/classes/Formatters.d.ts
587
- /** List data formatter. */
495
+ import { FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersReturn } from '../types/formattersTypes';
496
+ /**
497
+ * Class for formatting data based on options.
498
+ */
588
499
  export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
589
500
  constructor(options: Options, list?: List | undefined);
590
- /** Check if list is set. */
591
501
  is(): boolean;
592
- /** Check if array list. */
593
502
  isArray(): this is this & {
594
- list: FormattersList<Item>;
503
+ list: any[];
595
504
  };
596
- /** Get list length. */
597
505
  length(): number;
598
- /** Get internal list. */
599
- getList(): FormattersList<Item>;
600
- /** Get formatting options. */
506
+ getList(): any[];
601
507
  getOptions(): Options;
602
- /** Set data list. */
603
508
  setList(list?: List): this;
604
- /** Execute formatting. */
605
509
  to(): FormattersReturn<List, Options>;
606
510
  }
607
511
  // File: src/classes/Geo.d.ts
608
- /** static Geographic manager. */
512
+ import { GeoInstance } from './GeoInstance';
513
+ import { GeoItem, GeoItemFull } from '../types/geoTypes';
514
+ /**
515
+ * Static class for working with geographical data.
516
+ */
609
517
  export declare class Geo {
610
- /** Get isolated GeoInstance. */
611
518
  static getObject(): GeoInstance;
612
- /** Get current geo data. */
613
519
  static get(): GeoItemFull;
614
- /** Get country code. */
615
520
  static getCountry(): string;
616
- /** Get language code. */
617
521
  static getLanguage(): string;
618
- /** Get standard locale (en-US). */
619
522
  static getStandard(): string;
620
- /** Get first day of week. */
621
523
  static getFirstDay(): string;
622
- /** Get location string. */
623
524
  static getLocation(): string;
624
- /** Get full geo item. */
625
525
  static getItem(): GeoItemFull;
626
- /** Get all available geo items. */
627
526
  static getList(): GeoItem[];
628
- /** Find geo data by code. */
629
527
  static getByCode(code?: string): GeoItemFull;
630
- /** Find exact geo item by locale. */
631
528
  static getByCodeFull(code: string): GeoItem | undefined;
632
- /** Find geo item by country. */
633
529
  static getByCountry(country: string): GeoItem | undefined;
634
- /** Find geo item by language. */
635
530
  static getByLanguage(language: string): GeoItem | undefined;
636
- /** Get timezone offset (min). */
637
531
  static getTimezone(): number;
638
- /** Get formatted timezone (+00:00). */
639
532
  static getTimezoneFormat(): string;
640
- /** Find geo data by code. */
641
533
  static find(code: string): GeoItemFull;
642
- /** Convert item to standard locale string. */
643
534
  static toStandard(item: GeoItem): string;
644
- /** Set current location. */
645
535
  static set(code: string, save?: boolean): void;
646
- /** Set custom timezone offset. */
647
536
  static setTimezone(timezone: number): void;
648
537
  }
649
538
  // File: src/classes/GeoFlag.d.ts
539
+ import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
650
540
  export declare const GEO_FLAG_ICON_NAME = "f";
651
- /** Flag and geographic info handler. */
541
+ /**
542
+ * Class for working with flags.
543
+ */
652
544
  export declare class GeoFlag {
653
545
  static flags: Record<string, string>;
654
546
  constructor(code?: string);
655
- /** Get country and flag info. */
656
547
  get(code?: string): GeoFlagItem | undefined;
657
- /** Get flag icon ID. */
658
548
  getFlag(code?: string): string | undefined;
659
- /** Get countries list by codes. */
660
549
  getList(codes?: string[]): GeoFlagItem[];
661
- /** Get list in national languages. */
662
550
  getNational(codes?: string[]): GeoFlagNational[];
663
- /** Set locale. */
664
551
  setCode(code: string): this;
665
552
  }
666
553
  // File: src/classes/GeoInstance.d.ts
667
- /** Geographic data logic. */
554
+ import { GeoItem, GeoItemFull } from '../types/geoTypes';
555
+ /**
556
+ * Base class for working with geographic data.
557
+ */
668
558
  export declare class GeoInstance {
669
559
  constructor();
670
- /** Get current country info. */
671
560
  get(): GeoItemFull;
672
- /** Get country code. */
673
561
  getCountry(): string;
674
- /** Get language code. */
675
562
  getLanguage(): string;
676
- /** Get standard format (lang-country). */
677
563
  getStandard(): string;
678
- /** Get first day of week. */
679
564
  getFirstDay(): string;
680
- /** Get location string. */
681
565
  getLocation(): string;
682
- /** Get processed geo data. */
683
566
  getItem(): GeoItemFull;
684
- /** Get all countries. */
685
567
  getList(): GeoItem[];
686
- /** Get geo data by code. */
687
568
  getByCode(code?: string): GeoItemFull;
688
- /** Find exact match (lang-country). */
689
569
  getByCodeFull(code: string): GeoItem | undefined;
690
- /** Find by country code. */
691
570
  getByCountry(country: string): GeoItem | undefined;
692
- /** Find by language code. */
693
571
  getByLanguage(language: string): GeoItem | undefined;
694
- /** Get timezone offset (min). */
695
572
  getTimezone(): number;
696
- /** Get formatted timezone string. */
697
573
  getTimezoneFormat(): string;
698
- /** Find country by code/name. */
699
574
  find(code: string): GeoItemFull;
700
- /** Convert item to standard string. */
701
575
  toStandard(item: GeoItem): string;
702
- /** Update location. */
703
576
  set(code: string, save?: boolean): void;
704
- /** Update timezone offset. */
705
577
  setTimezone(timezone: number): void;
706
578
  }
707
579
  // File: src/classes/GeoIntl.d.ts
708
- /** Internationalization API wrapper. */
580
+ import { ErrorCenterInstance } from './ErrorCenterInstance';
581
+ import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
582
+ import { GeoDate } from '../types/geoTypes';
583
+ /**
584
+ * Class for Intl internationalization.
585
+ */
709
586
  export declare class GeoIntl {
710
- /** Check instance existence by code. */
711
587
  static isItem(code?: string): boolean;
712
- /** Get standard location code. */
713
588
  static getLocation(code?: string): string;
714
- /** Get instance by code. */
715
589
  static getInstance(code?: string): GeoIntl;
716
590
  constructor(code?: string, errorCenter?: ErrorCenterInstance);
717
- /** Get location string. */
718
591
  getLocation(): string;
719
- /** Get first day of week. */
720
592
  getFirstDay(): string;
721
- /** Localized names for language/region. */
722
593
  display(value?: string, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): string;
723
594
  languageName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
724
595
  countryName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
725
- /** Format full name. */
726
596
  fullName(last: string, first: string, surname?: string, short?: boolean): string;
727
- /** Number formatting. */
728
597
  number(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
729
- /** Get decimal symbol. */
730
598
  decimal(): string;
731
- /** Currency formatting. */
732
599
  currency(value: NumberOrString, currencyOptions?: string | Intl.NumberFormatOptions, numberOnly?: boolean): string;
733
- /** Get currency symbol. */
734
600
  currencySymbol(currency: string, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): string;
735
- /** Unit formatting. */
736
601
  unit(value: NumberOrString, unitOptions?: string | Intl.NumberFormatOptions): string;
737
- /** Format file size. */
738
602
  sizeFile(value: NumberOrString, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): string;
739
- /** Percentage formatting. */
740
603
  percent(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
741
604
  percentBy100(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
742
- /** Pluralization. */
743
605
  plural(value: NumberOrString, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): string;
744
- /** Date/time formatting. */
745
606
  date(value: NumberOrStringOrDate, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): string;
746
- /** Relative time formatting. */
747
607
  relative(value: NumberOrStringOrDate, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): string;
748
- /** Relative time with limit fallback. */
749
608
  relativeLimit(value: NumberOrStringOrDate, limit: number, todayValue?: Date, relativeOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, dateOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, type?: GeoDate, hour24?: boolean): string;
750
609
  relativeByValue(value: NumberOrString, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): string;
751
- /** Month name(s). */
752
610
  month(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['month']): string;
753
611
  months(style?: Intl.DateTimeFormatOptions['month']): ItemValue<number | undefined>[];
754
- /** Weekday name(s). */
755
612
  weekday(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['weekday']): string;
756
613
  weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ItemValue<number | undefined>[];
757
- /** Time formatting. */
758
614
  time(value: NumberOrStringOrDate): string;
759
- /** Localized sort. */
760
615
  sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
761
616
  }
762
617
  // File: src/classes/GeoPhone.d.ts
763
- /** Phone mask processing. */
618
+ import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
619
+ /**
620
+ * Class for phone masks.
621
+ */
764
622
  export declare class GeoPhone {
765
- /** Get phone info by country code. */
766
623
  static get(code: string): GeoPhoneValue | undefined;
767
- /** Get info by phone number. */
768
624
  static getByPhone(phone: string): GeoPhoneMapInfo;
769
- /** Get mask data by country code. */
770
625
  static getByCode(code: string): GeoPhoneMap | undefined;
771
- /** Get all phone codes. */
772
626
  static getList(): GeoPhoneValue[];
773
- /** Get search map. */
774
627
  static getMap(): Record<string, GeoPhoneMap>;
775
- /** Apply phone mask. */
776
628
  static toMask(phone: string, masks?: string[]): string | undefined;
777
- /** Remove country code from number. */
778
629
  static removeZero(phone: string): string;
779
630
  }
780
631
  // File: src/classes/Global.d.ts
781
- /** Global application data storage. */
632
+ /**
633
+ * Static utility for application-wide data.
634
+ */
782
635
  export declare class Global {
783
- /** Get storage instance. */
784
636
  static getItem(): Record<string, any>;
785
- /** Get value by name. */
786
637
  static get<R = any>(name: string): R;
787
- /** Add global data (one-time). */
788
638
  static add(data: Record<string, any>): void;
789
639
  }
790
640
  // File: src/classes/Hash.d.ts
791
- /** URL hash data manager. */
641
+ import { HashInstance } from './HashInstance';
642
+ /**
643
+ * Static class for URL hash management.
644
+ */
792
645
  export declare class Hash {
793
- /** Get isolated HashInstance. */
794
646
  static getItem(): HashInstance;
795
- /** Get value from hash. */
796
647
  static get<T>(name: string, defaultValue?: T | (() => T)): T;
797
- /** Set value in hash. */
798
648
  static set<T>(name: string, callback: T | (() => T)): void;
799
- /** Watch hash changes. */
800
649
  static addWatch<T>(name: string, callback: (value: T) => void): void;
801
- /** Stop watching hash. */
802
650
  static removeWatch<T>(name: string, callback: (value: T) => void): void;
803
- /** Reload from URL. */
804
651
  static reload(): void;
805
652
  }
806
653
  // File: src/classes/HashInstance.d.ts
807
- /** isolated URL hash logic. */
654
+ /**
655
+ * Class for URL hash management.
656
+ */
808
657
  export declare class HashInstance {
809
658
  get<T>(name: string, defaultValue?: T | (() => T)): T;
810
659
  set<T>(name: string, callback: T | (() => T)): this;
@@ -818,61 +667,46 @@ export type IconsConfig = {
818
667
  url?: string;
819
668
  list?: Record<string, IconsItem>;
820
669
  };
821
- /** Icon management and loading. */
670
+ /**
671
+ * Class for icon management.
672
+ */
822
673
  export declare class Icons {
823
- /** Check if icon exists. */
824
674
  static is(index: string): boolean;
825
- /** Get icon async. */
826
675
  static get(index: string, url?: string, wait?: number): Promise<string>;
827
- /** Get loaded icon. */
828
676
  static getAsync(index: string, url?: string): string;
829
- /** Get all icon names. */
830
677
  static getNameList(): string[];
831
- /** Get global icons URL. */
832
678
  static getUrlGlobal(): string;
833
- /** Add custom icon. */
834
679
  static add(index: string, file: IconsItem): void;
835
- /** Mark icon for loading. */
836
680
  static addLoad(index: string): void;
837
- /** Add global icon. */
838
681
  static addGlobal(index: string, file: string): void;
839
- /** Add icons list. */
840
682
  static addByList(list: Record<string, IconsItem>): void;
841
- /** Set icons path. */
842
683
  static setUrl(url: string): void;
843
- /** Set icons config. */
844
684
  static setConfig(config: IconsConfig): void;
845
685
  }
846
686
  // File: src/classes/Loading.d.ts
847
- /** Global loading state manager. */
687
+ import { LoadingInstance } from './LoadingInstance';
688
+ import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
689
+ import { LoadingDetail } from './LoadingInstance';
690
+ /**
691
+ * Class for global loading management.
692
+ */
848
693
  export declare class Loading {
849
- /** Check if active. */
850
694
  static is(): boolean;
851
- /** Get loading count. */
852
695
  static get(): number;
853
- /** Get isolated LoadingInstance. */
854
696
  static getItem(): LoadingInstance;
855
- /** Show loader. */
856
697
  static show(): void;
857
- /** Hide loader. */
858
698
  static hide(): void;
859
- /** Register change listener. */
860
699
  static registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
861
- /** Unregister change listener. */
862
700
  static unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
863
701
  }
864
702
  // File: src/classes/LoadingInstance.d.ts
865
- /** Loading event detail. */
703
+ import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
866
704
  export type LoadingDetail = {
867
705
  loading: boolean;
868
706
  };
869
- /** Loading registration record. */
870
- export type LoadingRegistrationItem = {
871
- item: EventItem<Window, CustomEvent, LoadingDetail>;
872
- listener: EventListenerDetail<CustomEvent, LoadingDetail>;
873
- element?: ElementOrString<HTMLElement>;
874
- };
875
- /** isolated loading state. */
707
+ /**
708
+ * Class for global loading management.
709
+ */
876
710
  export declare class LoadingInstance {
877
711
  constructor(eventName?: string);
878
712
  is(): boolean;
@@ -883,7 +717,13 @@ export declare class LoadingInstance {
883
717
  unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
884
718
  }
885
719
  // File: src/classes/Meta.d.ts
886
- /** HTML/OG/Twitter meta tags manager. */
720
+ import { MetaManager } from './MetaManager';
721
+ import { MetaOg } from './MetaOg';
722
+ import { MetaTwitter } from './MetaTwitter';
723
+ import { MetaRobots, MetaTag } from '../types/metaTypes';
724
+ /**
725
+ * Class for managing meta tags.
726
+ */
887
727
  export declare class Meta extends MetaManager<MetaTag[]> {
888
728
  constructor();
889
729
  getOg(): MetaOg;
@@ -907,27 +747,28 @@ export declare class Meta extends MetaManager<MetaTag[]> {
907
747
  setSiteName(siteName: string): this;
908
748
  setLocale(locale: string): this;
909
749
  setSuffix(suffix?: string): void;
910
- /** Generate full HTML meta block. */
911
750
  html(): string;
912
- /** Get HTML-safe title. */
913
751
  htmlTitle(): string;
914
752
  }
915
753
  // File: src/classes/MetaManager.d.ts
916
- type MetaList<T extends readonly string[]> = {
917
- [K in T[number]]?: string;
918
- };
919
- /** Meta tag logic base. */
920
- export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
754
+ /**
755
+ * Class for working with meta tags.
756
+ */
757
+ export declare class MetaManager<T extends readonly string[], Key extends keyof any = any> {
921
758
  constructor(listMeta: T, isProperty?: boolean);
922
759
  getListMeta(): T;
923
760
  get(name: Key): string;
924
- getItems(): MetaList<T>;
761
+ getItems(): Record<string, string>;
925
762
  html(): string;
926
763
  set(name: Key, content: string): this;
927
- setByList(metaList: MetaList<T>): this;
764
+ setByList(metaList: Record<string, string>): this;
928
765
  }
929
766
  // File: src/classes/MetaOg.d.ts
930
- /** Open Graph tags manager. */
767
+ import { MetaManager } from './MetaManager';
768
+ import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
769
+ /**
770
+ * Class for Open Graph tags.
771
+ */
931
772
  export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
932
773
  constructor();
933
774
  getTitle(): string;
@@ -946,7 +787,13 @@ export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
946
787
  setSiteName(siteName: string): this;
947
788
  }
948
789
  // File: src/classes/MetaStatic.d.ts
949
- /** static meta tags manager. */
790
+ import { Meta } from './Meta';
791
+ import { MetaOg } from './MetaOg';
792
+ import { MetaTwitter } from './MetaTwitter';
793
+ import { MetaRobots } from '../types/metaTypes';
794
+ /**
795
+ * Static class for meta tag management.
796
+ */
950
797
  export declare class MetaStatic {
951
798
  static getItem(): Meta;
952
799
  static getOg(): MetaOg;
@@ -974,7 +821,11 @@ export declare class MetaStatic {
974
821
  static htmlTitle(): string;
975
822
  }
976
823
  // File: src/classes/MetaTwitter.d.ts
977
- /** Twitter Card tags manager. */
824
+ import { MetaManager } from './MetaManager';
825
+ import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
826
+ /**
827
+ * Class for Twitter Card tags.
828
+ */
978
829
  export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
979
830
  constructor();
980
831
  getCard(): MetaTwitterCard;
@@ -993,32 +844,36 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
993
844
  setImage(image: string): this;
994
845
  }
995
846
  // File: src/classes/ResumableTimer.d.ts
996
- /** Pauseable timeout timer. */
847
+ import { FunctionVoid } from '../types/basicTypes';
848
+ /**
849
+ * Class for pausable timers.
850
+ */
997
851
  export declare class ResumableTimer {
998
852
  constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
999
- /** Start or resume. */
1000
853
  resume(): this;
1001
- /** Pause and track remaining time. */
1002
854
  pause(): this;
1003
- /** Restart from zero. */
1004
855
  reset(): this;
1005
- /** Stop and clear. */
1006
856
  clear(): this;
1007
857
  }
1008
858
  // File: src/classes/ScrollbarWidth.d.ts
1009
- /** Scrollbar width detector. */
859
+ import { DataStorage } from './DataStorage';
860
+ /**
861
+ * Class for scroll width.
862
+ */
1010
863
  export declare class ScrollbarWidth {
1011
- /** Check if scroll hiding enabled. */
1012
864
  static is(): Promise<boolean>;
1013
- /** Get scroll width (px). */
1014
865
  static get(): Promise<number>;
1015
- /** Get internal storage. */
1016
866
  static getStorage(): DataStorage<number>;
1017
- /** Check calculation status. */
1018
867
  static getCalculate(): boolean;
1019
868
  }
1020
869
  // File: src/classes/SearchList.d.ts
1021
- /** Searchable list coordinator. */
870
+ import { SearchListData } from './SearchListData';
871
+ import { SearchListItem } from './SearchListItem';
872
+ import { SearchListOptions } from './SearchListOptions';
873
+ import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
874
+ /**
875
+ * Main class for searchable lists.
876
+ */
1022
877
  export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
1023
878
  constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
1024
879
  getData(): SearchListData<T, K>;
@@ -1031,20 +886,19 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
1031
886
  setColumns(columns?: K): this;
1032
887
  setValue(value?: string): this;
1033
888
  setOptions(options: SearchOptions): this;
1034
- /** Get formatted searchable list. */
1035
889
  to(): SearchFormatList<T, K>;
1036
890
  }
1037
891
  // File: src/classes/SearchListData.d.ts
1038
- /** Search data and cache manager. */
892
+ import { SearchListItem } from './SearchListItem';
893
+ import { SearchListOptions } from './SearchListOptions';
894
+ import { SearchCache, SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
895
+ /**
896
+ * Class for search data management.
897
+ */
1039
898
  export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
1040
899
  constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
1041
- is(): this is this & {
1042
- list: T[];
1043
- columns: string[];
1044
- };
1045
- isList(): this is this & {
1046
- list: T[];
1047
- };
900
+ is(): boolean;
901
+ isList(): boolean;
1048
902
  getList(): SearchListValue<T>;
1049
903
  getColumns(): K | undefined;
1050
904
  setList(list: SearchListValue<T>): this;
@@ -1054,18 +908,24 @@ export declare class SearchListData<T extends SearchItem, K extends SearchColumn
1054
908
  toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
1055
909
  }
1056
910
  // File: src/classes/SearchListItem.d.ts
1057
- /** Single search query state. */
911
+ import { SearchListOptions } from './SearchListOptions';
912
+ /**
913
+ * State of a search item.
914
+ */
1058
915
  export declare class SearchListItem {
1059
916
  constructor(value: string | undefined, options: SearchListOptions);
1060
- is(): this is this & {
1061
- value: string;
1062
- };
917
+ is(): boolean;
1063
918
  isSearch(): boolean;
1064
919
  get(): string;
1065
920
  set(value?: string): this;
1066
921
  }
1067
922
  // File: src/classes/SearchListMatcher.d.ts
1068
- /** Regex-based search matcher. */
923
+ import { SearchListItem } from './SearchListItem';
924
+ import { SearchListOptions } from './SearchListOptions';
925
+ import { SearchCacheItem } from '../types/searchTypes';
926
+ /**
927
+ * Class for regex matching.
928
+ */
1069
929
  export declare class SearchListMatcher {
1070
930
  constructor(item: SearchListItem, options: SearchListOptions);
1071
931
  is(): boolean;
@@ -1074,7 +934,10 @@ export declare class SearchListMatcher {
1074
934
  update(): void;
1075
935
  }
1076
936
  // File: src/classes/SearchListOptions.d.ts
1077
- /** Search list settings. */
937
+ import { SearchOptions } from '../types/searchTypes';
938
+ /**
939
+ * Search options manager.
940
+ */
1078
941
  export declare class SearchListOptions {
1079
942
  constructor(options?: SearchOptions | undefined);
1080
943
  getOptions(): SearchOptions;
@@ -1086,23 +949,23 @@ export declare class SearchListOptions {
1086
949
  setOptions(options: SearchOptions): this;
1087
950
  }
1088
951
  // File: src/classes/ServerStorage.d.ts
1089
- /** context storage for SSR isolation. */
952
+ /**
953
+ * Class for SSR data storage.
954
+ */
1090
955
  export declare class ServerStorage {
1091
- /** Init context listener. */
1092
956
  static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
1093
957
  static reset(): void;
1094
958
  static has(key: string): boolean;
1095
- /** Get value with SSR/Hydration support. */
1096
959
  static get<T = any>(key: string, defaultValue?: () => T, hydration?: boolean): T;
1097
- /** Save value. */
1098
960
  static set<T = any>(key: string, value: () => T, hydration?: boolean): T;
1099
961
  static setErrorStatus(hide: boolean): void;
1100
962
  static remove(key: string): void;
1101
- /** Get script for hydration. */
1102
963
  static toString(): string;
1103
964
  }
1104
965
  // File: src/classes/StorageCallback.d.ts
1105
- /** Callback list manager for storage. */
966
+ /**
967
+ * Callback lists manager for storage.
968
+ */
1106
969
  export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
1107
970
  static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
1108
971
  constructor(name: string, group?: string);
@@ -1115,7 +978,11 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
1115
978
  run(value: T): Promise<this>;
1116
979
  }
1117
980
  // File: src/classes/Translate.d.ts
1118
- /** Translation text manager. */
981
+ import { TranslateInstance } from './TranslateInstance';
982
+ import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
983
+ /**
984
+ * Static class for translation text retrieval.
985
+ */
1119
986
  export declare class Translate {
1120
987
  static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
1121
988
  static getItem(): TranslateInstance;
@@ -1133,7 +1000,10 @@ export declare class Translate {
1133
1000
  static setConfig(config: TranslateConfig): void;
1134
1001
  }
1135
1002
  // File: src/classes/TranslateFile.d.ts
1136
- /** Translation files handler. */
1003
+ import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
1004
+ /**
1005
+ * Class for translation files.
1006
+ */
1137
1007
  export declare class TranslateFile {
1138
1008
  constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
1139
1009
  isFile(): boolean;
@@ -1143,7 +1013,11 @@ export declare class TranslateFile {
1143
1013
  add(data: TranslateDataFile): void;
1144
1014
  }
1145
1015
  // File: src/classes/TranslateInstance.d.ts
1146
- /** isolated translation logic. */
1016
+ import { TranslateFile } from './TranslateFile';
1017
+ import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
1018
+ /**
1019
+ * Class for translation management.
1020
+ */
1147
1021
  export declare class TranslateInstance {
1148
1022
  constructor(url?: string, propsName?: string, files?: TranslateFile);
1149
1023
  get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
@@ -1160,32 +1034,23 @@ export declare class TranslateInstance {
1160
1034
  setReadApi(value: boolean): this;
1161
1035
  }
1162
1036
  // File: src/functions/addTagHighlightMatch.d.ts
1163
- /** Highlight match with HTML tag. */
1164
1037
  export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
1165
1038
  // File: src/functions/anyToString.d.ts
1166
- /** Convert value to string. */
1167
1039
  export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
1168
1040
  // File: src/functions/applyTemplate.d.ts
1169
- /** Replace template keys with values. */
1170
1041
  export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
1171
1042
  // File: src/functions/arrFill.d.ts
1172
- /** Create array filled with value. */
1173
1043
  export declare function arrFill<T>(value: T, count: number): T[];
1174
1044
  // File: src/functions/blobToBase64.d.ts
1175
- /** Blob to Base64 string. */
1176
1045
  export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
1177
1046
  // File: src/functions/capitalize.d.ts
1178
- /** Capitalize first letter. */
1179
1047
  export declare function capitalize(value: string, isLocale?: boolean): string;
1180
1048
  // File: src/functions/copyObject.d.ts
1181
- /** Deep copy object. */
1182
1049
  export declare function copyObject<T>(value: T): T;
1183
1050
  // File: src/functions/copyObjectLite.d.ts
1184
- /** Shallow copy object. */
1185
1051
  export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
1186
1052
  // File: src/functions/createElement.d.ts
1187
- /** @remarks call only in client-side hooks. */
1188
- export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: Partial<T> | Record<keyof T, T[keyof T]> | ((element: T) => void), referenceElement?: HTMLElement): T | undefined;
1053
+ export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: any, referenceElement?: HTMLElement): T | undefined;
1189
1054
  // File: src/functions/domQuerySelector.d.ts
1190
1055
  export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
1191
1056
  // File: src/functions/domQuerySelectorAll.d.ts
@@ -1195,55 +1060,52 @@ export declare function encodeAttribute(text: string): string;
1195
1060
  // File: src/functions/encodeLiteAttribute.d.ts
1196
1061
  export declare function encodeLiteAttribute(text: string): string;
1197
1062
  // File: src/functions/ensureMaxSize.d.ts
1198
- /** Resize image if too large. */
1199
1063
  export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
1200
1064
  // File: src/functions/escapeExp.d.ts
1201
- /** Escape regex special chars. */
1202
1065
  export declare function escapeExp(value: string): string;
1203
1066
  // File: src/functions/eventStopPropagation.d.ts
1204
1067
  export declare function eventStopPropagation(event: Event): void;
1205
1068
  // File: src/functions/executeFunction.d.ts
1206
- /** Execute if function, else return. */
1069
+ import { FunctionArgs } from '../types/basicTypes';
1207
1070
  export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
1208
1071
  // File: src/functions/executePromise.d.ts
1209
- /** Execute and await result. */
1210
1072
  export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
1211
1073
  // File: src/functions/forEach.d.ts
1212
- /** Object/Array/Map/Set iteration with results. */
1213
- export declare function forEach<T, R, D extends T[] | Record<string, T> | Map<string, T> | Set<T> = T[] | Record<string, T> | Map<string, T> | Set<T>, K = D extends T[] ? number : string>(data: D & (T[] | Record<string, T> | Map<string, T> | Set<T>), callback: (item: T, key: K, dataMain: typeof data) => R, saveUndefined?: boolean): R[];
1074
+ export declare function forEach<T, R>(data: any, callback: (item: T, key: any, dataMain: any) => R, saveUndefined?: boolean): R[];
1214
1075
  // File: src/functions/frame.d.ts
1215
- /** Cyclic requestAnimationFrame. */
1216
1076
  export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
1217
1077
  // File: src/functions/getArrayHighlightMatch.d.ts
1218
- /** Split string into segments for highlighting. */
1078
+ import { HighlightMatchItem } from '../types/searchTypes';
1219
1079
  export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
1220
1080
  // File: src/functions/getAttributes.d.ts
1081
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1221
1082
  export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
1222
1083
  // File: src/functions/getClipboardData.d.ts
1223
1084
  export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
1224
1085
  // File: src/functions/getColumn.d.ts
1225
- /** Get values from specific key across array. */
1086
+ import { ObjectOrArray } from '../types/basicTypes';
1226
1087
  export declare function getColumn<T, K extends keyof T>(array: ObjectOrArray<T>, column: K): (T[K] | undefined)[];
1227
1088
  // File: src/functions/getCurrentDate.d.ts
1228
- /** @remarks SSR usage causes hydration mismatch. */
1089
+ import { GeoDate } from '../types/geoTypes';
1229
1090
  export declare function getCurrentDate(format?: GeoDate): string;
1230
1091
  // File: src/functions/getCurrentTime.d.ts
1231
- /** @remarks SSR usage causes hydration mismatch. */
1232
1092
  export declare function getCurrentTime(): number;
1233
1093
  // File: src/functions/getElement.d.ts
1094
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1234
1095
  export declare function getElement<E extends ElementOrWindow, R extends Exclude<E, Window>>(element?: ElementOrString<E>): R | undefined;
1235
1096
  // File: src/functions/getElementId.d.ts
1236
- /** @warning SSR initialization required. */
1097
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1237
1098
  export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
1238
1099
  export declare function initGetElementId(newListener: () => string | number): void;
1239
1100
  // File: src/functions/getElementImage.d.ts
1240
1101
  export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
1241
1102
  // File: src/functions/getElementItem.d.ts
1103
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1242
1104
  export declare function getElementItem<T extends ElementOrWindow, K extends keyof T, D>(element: ElementOrString<T>, index: K | string, defaultValue?: D): T[K] | D | undefined;
1243
1105
  // File: src/functions/getElementOrWindow.d.ts
1106
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1244
1107
  export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
1245
1108
  // File: src/functions/getElementSafeScript.d.ts
1246
- /** Safe script for hydration. */
1247
1109
  export declare function getElementSafeScript(id: string, data: any): string;
1248
1110
  // File: src/functions/getExactSearchExp.d.ts
1249
1111
  export declare function getExactSearchExp(search: string): RegExp;
@@ -1256,14 +1118,18 @@ export declare function getHydrationData<T>(id: string, defaultValue: T, remove?
1256
1118
  // File: src/functions/getItemByPath.d.ts
1257
1119
  export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
1258
1120
  // File: src/functions/getKey.d.ts
1259
- export declare function getKey(event: KeyboardEvent): string;
1121
+ export declare function getKey(event: KeyboardEvent): string | number | undefined;
1260
1122
  // File: src/functions/getLengthOfAllArray.d.ts
1123
+ import { ObjectOrArray } from '../types/basicTypes';
1261
1124
  export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
1262
1125
  // File: src/functions/getMaxLengthAllArray.d.ts
1126
+ import { ObjectOrArray } from '../types/basicTypes';
1263
1127
  export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
1264
1128
  // File: src/functions/getMinLengthAllArray.d.ts
1129
+ import { ObjectOrArray } from '../types/basicTypes';
1265
1130
  export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
1266
1131
  // File: src/functions/getMouseClient.d.ts
1132
+ import { ImageCoordinator } from '../types/basicTypes';
1267
1133
  export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
1268
1134
  // File: src/functions/getMouseClientX.d.ts
1269
1135
  export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
@@ -1280,10 +1146,8 @@ export declare function getOnlyText(text: any): string;
1280
1146
  // File: src/functions/getRandomText.d.ts
1281
1147
  export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
1282
1148
  // File: src/functions/getRequestString.d.ts
1283
- /** Formatted key-value string for requests. */
1284
1149
  export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
1285
1150
  // File: src/functions/getSearchExp.d.ts
1286
- /** Case-insensitive global multi-word match RegExp. */
1287
1151
  export declare function getSearchExp(search: string, limit?: number): RegExp;
1288
1152
  // File: src/functions/getSeparatingSearchExp.d.ts
1289
1153
  export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
@@ -1298,48 +1162,52 @@ export declare function goScrollSmooth<E extends HTMLElement>(element: E, option
1298
1162
  // File: src/functions/goScrollTo.d.ts
1299
1163
  export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
1300
1164
  // File: src/functions/handleShare.d.ts
1301
- /** Web Share API wrapper. */
1302
1165
  export declare function handleShare(data: ShareData): Promise<boolean>;
1303
1166
  // File: src/functions/inArray.d.ts
1304
1167
  export declare function inArray<T>(array: T[], value: T): boolean;
1305
1168
  // File: src/functions/initScrollbarOffset.d.ts
1306
1169
  export declare function initScrollbarOffset(): Promise<void>;
1307
1170
  // File: src/functions/intersectKey.d.ts
1308
- export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
1171
+ export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<any, any>;
1309
1172
  // File: src/functions/isApiSuccess.d.ts
1173
+ import { ApiData } from '../types/apiTypes';
1310
1174
  export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
1311
1175
  // File: src/functions/isArray.d.ts
1312
1176
  export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
1313
1177
  // File: src/functions/isDifferent.d.ts
1178
+ import { ObjectItem } from '../types/basicTypes';
1314
1179
  export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
1315
1180
  // File: src/functions/isDomData.d.ts
1316
1181
  export declare function isDomData(): boolean;
1317
1182
  // File: src/functions/isDomRuntime.d.ts
1318
1183
  export declare function isDomRuntime(): boolean;
1319
1184
  // File: src/functions/isElementVisible.d.ts
1185
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1320
1186
  export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
1321
1187
  // File: src/functions/isEnter.d.ts
1322
1188
  export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
1323
1189
  // File: src/functions/isFilled.d.ts
1324
- export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
1190
+ export declare function isFilled<T>(value: T, zeroTrue?: boolean): boolean;
1325
1191
  // File: src/functions/isFloat.d.ts
1326
1192
  export declare function isFloat(value: any): boolean;
1327
1193
  // File: src/functions/isFunction.d.ts
1194
+ import { FunctionArgs } from '../types/basicTypes';
1328
1195
  export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
1329
1196
  // File: src/functions/isInDom.d.ts
1197
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1330
1198
  export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
1331
1199
  // File: src/functions/isInput.d.ts
1332
1200
  export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
1333
1201
  // File: src/functions/isIntegerBetween.d.ts
1334
1202
  export declare function isIntegerBetween(value: number, between: number): boolean;
1335
1203
  // File: src/functions/isNull.d.ts
1336
- export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
1204
+ export declare function isNull<T>(value: T): boolean;
1337
1205
  // File: src/functions/isNumber.d.ts
1338
1206
  export declare function isNumber(value: any): boolean;
1339
1207
  // File: src/functions/isObject.d.ts
1340
- export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
1208
+ export declare function isObject<T>(value: T): boolean;
1341
1209
  // File: src/functions/isObjectNotArray.d.ts
1342
- export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
1210
+ export declare function isObjectNotArray<T>(value: T): boolean;
1343
1211
  // File: src/functions/isOnLine.d.ts
1344
1212
  export declare function isOnLine(): boolean;
1345
1213
  // File: src/functions/isSelected.d.ts
@@ -1350,6 +1218,8 @@ export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]):
1350
1218
  export declare function isShare(): boolean;
1351
1219
  // File: src/functions/isString.d.ts
1352
1220
  export declare function isString<T>(value: T): value is Extract<T, string>;
1221
+ // File: src/functions/isTab.d.ts
1222
+ export declare const isTab: (event: KeyboardEvent) => boolean;
1353
1223
  // File: src/functions/isWindow.d.ts
1354
1224
  export declare function isWindow<E>(element: E): element is Extract<E, Window>;
1355
1225
  // File: src/functions/random.d.ts
@@ -1359,43 +1229,41 @@ export declare function removeCommonPrefix(mainStr: string, prefix: string): str
1359
1229
  // File: src/functions/replaceComponentName.d.ts
1360
1230
  export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
1361
1231
  // File: src/functions/replaceRecursive.d.ts
1232
+ import { ObjectItem, ObjectOrArray } from '../types/basicTypes';
1362
1233
  export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
1363
1234
  // File: src/functions/replaceTemplate.d.ts
1235
+ import { FunctionReturn } from '../types/basicTypes';
1364
1236
  export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
1365
1237
  // File: src/functions/resizeImageByMax.d.ts
1366
- type ResizeImageByMaxType = 'auto' | 'width' | 'height';
1367
- export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: ResizeImageByMaxType, typeData?: string): string | undefined;
1238
+ export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: 'auto' | 'width' | 'height', typeData?: string): string | undefined;
1368
1239
  // File: src/functions/secondToTime.d.ts
1369
1240
  export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
1370
1241
  // File: src/functions/setElementItem.d.ts
1242
+ import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
1371
1243
  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;
1372
1244
  // File: src/functions/setValues.d.ts
1373
- export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: {
1374
- multiple?: boolean | undefined;
1375
- maxlength?: number | undefined;
1376
- alwaysChange?: boolean | undefined;
1377
- notEmpty?: boolean | undefined;
1378
- }): T | T[] | undefined;
1245
+ export declare function setValues<T>(selected: T | T[] | undefined, value: any, { multiple, maxlength, alwaysChange, notEmpty }: any): T | T[] | undefined;
1379
1246
  // File: src/functions/sleep.d.ts
1380
1247
  export declare function sleep(ms: number): Promise<void>;
1381
1248
  // File: src/functions/splice.d.ts
1249
+ import { ObjectItem } from '../types/basicTypes';
1382
1250
  export declare function splice<I>(array: ObjectItem<I>, replacement?: ObjectItem<I> | I, indexStart?: string): ObjectItem<I>;
1383
1251
  // File: src/functions/strFill.d.ts
1384
1252
  export declare function strFill(value: string, count: number): string;
1385
1253
  // File: src/functions/strSplit.d.ts
1386
1254
  export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
1387
1255
  // File: src/functions/toArray.d.ts
1388
- export declare function toArray<T>(value: T): T extends any[] ? T : [T];
1256
+ export declare function toArray<T>(value: T): any;
1389
1257
  // File: src/functions/toCamelCase.d.ts
1390
1258
  export declare function toCamelCase(value: string): string;
1391
1259
  // File: src/functions/toCamelCaseFirst.d.ts
1392
1260
  export declare function toCamelCaseFirst(value: string): string;
1393
1261
  // File: src/functions/toDate.d.ts
1394
- export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
1262
+ export declare function toDate<T extends Date | number | string>(value?: T): Date;
1395
1263
  // File: src/functions/toKebabCase.d.ts
1396
1264
  export declare function toKebabCase(value: string): string;
1397
1265
  // File: src/functions/toNumber.d.ts
1398
- /** @example toNumber("1 234,56") // 1234.56 */
1266
+ import { NumberOrString } from '../types/basicTypes';
1399
1267
  export declare function toNumber(value?: NumberOrString): number;
1400
1268
  // File: src/functions/toNumberByMax.d.ts
1401
1269
  export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
@@ -1553,6 +1421,7 @@ export * from './functions/isSelected';
1553
1421
  export * from './functions/isSelectedByList';
1554
1422
  export * from './functions/isShare';
1555
1423
  export * from './functions/isString';
1424
+ export * from './functions/isTab';
1556
1425
  export * from './functions/isWindow';
1557
1426
  export * from './functions/random';
1558
1427
  export * from './functions/removeCommonPrefix';
@@ -1590,9 +1459,9 @@ export * from './types/metaTypes';
1590
1459
  export * from './types/searchTypes';
1591
1460
  export * from './types/translateTypes';
1592
1461
  // File: src/media/errorCauseList.d.ts
1462
+ import { ErrorCenterCauseList } from '../types/errorCenter';
1593
1463
  export declare const errorCauseList: ErrorCenterCauseList;
1594
1464
  // File: src/types/apiTypes.d.ts
1595
- /** HTTP methods for API requests. */
1596
1465
  export declare enum ApiMethodItem {
1597
1466
  delete = "DELETE",
1598
1467
  get = "GET",
@@ -1669,7 +1538,7 @@ export type ApiHydrationItem = {
1669
1538
  response: any;
1670
1539
  };
1671
1540
  export type ApiHydrationList = ApiHydrationItem[];
1672
- export type ApiErrorStorageItem = {
1541
+ export type ApiErrorStorageItem = Record<string, any> & {
1673
1542
  url: string | RegExp;
1674
1543
  method: ApiMethodItem;
1675
1544
  code?: string;
@@ -1746,13 +1615,13 @@ export type ImageCoordinator = {
1746
1615
  };
1747
1616
  // File: src/types/errorCenter.d.ts
1748
1617
  export type ErrorCenterGroup = string | undefined;
1749
- export type ErrorCenterCauseItem = {
1618
+ export type ErrorCenterCauseItem<D = any> = {
1750
1619
  group?: ErrorCenterGroup;
1751
1620
  code: string;
1752
1621
  priority?: number;
1753
1622
  label?: string;
1754
1623
  message?: string;
1755
- details?: any;
1624
+ details?: D;
1756
1625
  };
1757
1626
  export type ErrorCenterCauseList = ErrorCenterCauseItem[];
1758
1627
  export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
@@ -1762,6 +1631,8 @@ export type ErrorCenterHandlerItem = {
1762
1631
  };
1763
1632
  export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
1764
1633
  // File: src/types/formattersTypes.d.ts
1634
+ import { ArrayToItem } from './basicTypes';
1635
+ import { GeoDate } from './geoTypes';
1765
1636
  export declare enum FormattersType {
1766
1637
  currency = "currency",
1767
1638
  date = "date",
@@ -1797,7 +1668,7 @@ export type FormattersOptionsPlural = {
1797
1668
  export type FormattersOptionsUnit = {
1798
1669
  unit: string | Intl.NumberFormatOptions;
1799
1670
  };
1800
- 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>;
1671
+ export type FormattersOptionsInformation<Type extends FormattersType> = any;
1801
1672
  export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
1802
1673
  type?: Type;
1803
1674
  transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
@@ -1809,15 +1680,13 @@ export type FormattersList<Item extends FormattersListItem> = Item[];
1809
1680
  export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
1810
1681
  export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
1811
1682
  export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
1812
- export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = {
1813
- [K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string;
1814
- };
1683
+ export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = any;
1815
1684
  export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
1816
1685
  export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
1817
1686
  export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
1818
1687
  export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
1819
1688
  export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
1820
- export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = List extends any[] ? FormattersListColumns<Item, Options> : (FormattersListColumnItem<Item, Options> | undefined);
1689
+ export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = any;
1821
1690
  // File: src/types/geoTypes.d.ts
1822
1691
  export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
1823
1692
  export type GeoFirstDay = 1 | 6 | 0;
@@ -1871,7 +1740,6 @@ export interface GeoPhoneMapInfo {
1871
1740
  phone?: string;
1872
1741
  }
1873
1742
  // File: src/types/metaTypes.d.ts
1874
- /** Standard HTML meta tags. */
1875
1743
  export declare enum MetaTag {
1876
1744
  title = "title",
1877
1745
  description = "description",
@@ -1886,16 +1754,15 @@ export declare enum MetaRobots {
1886
1754
  indexNoFollow = "index, nofollow",
1887
1755
  noIndexNoFollow = "noindex, nofollow",
1888
1756
  noArchive = "noarchive",
1889
- nosnippet = "nosnippet",
1890
- noimageindex = "noimageindex",
1757
+ noSnippet = "nosnippet",
1758
+ noImageIndex = "noimageindex",
1891
1759
  images = "images",
1892
- notranslate = "notranslate",
1893
- nopreview = "nopreview",
1760
+ noTranslate = "notranslate",
1761
+ noPreview = "nopreview",
1894
1762
  textOnly = "textonly",
1895
1763
  noIndexSubpages = "noindex, noarchive",
1896
1764
  none = "none"
1897
1765
  }
1898
- /** Open Graph tags. */
1899
1766
  export declare enum MetaOpenGraphTag {
1900
1767
  title = "og:title",
1901
1768
  type = "og:type",
@@ -1971,7 +1838,6 @@ export declare enum MetaOpenGraphTag {
1971
1838
  productAgeGroup = "product:age_group",
1972
1839
  productGender = "product:gender"
1973
1840
  }
1974
- /** Open Graph content types. */
1975
1841
  export declare enum MetaOpenGraphType {
1976
1842
  website = "website",
1977
1843
  article = "article",
@@ -2016,7 +1882,6 @@ export declare enum MetaOpenGraphGender {
2016
1882
  male = "male",
2017
1883
  unisex = "unisex"
2018
1884
  }
2019
- /** Twitter Card tags. */
2020
1885
  export declare enum MetaTwitterTag {
2021
1886
  card = "twitter:card",
2022
1887
  site = "twitter:site",
@@ -2048,7 +1913,6 @@ export declare enum MetaTwitterTag {
2048
1913
  playerStream = "twitter:player:stream",
2049
1914
  playerStreamContentType = "twitter:player:stream:content_type"
2050
1915
  }
2051
- /** Twitter Card types. */
2052
1916
  export declare enum MetaTwitterCard {
2053
1917
  summary = "summary",
2054
1918
  summaryLargeImage = "summary_large_image",
@@ -2064,17 +1928,11 @@ export declare enum MetaTwitterCard {
2064
1928
  // File: src/types/searchTypes.d.ts
2065
1929
  export type SearchItem = Record<string, any>;
2066
1930
  export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
2067
- export type SearchColumn<T extends SearchItem> = {
2068
- [K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K;
2069
- }[keyof T];
2070
- export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
1931
+ export type SearchColumn<T extends SearchItem> = any;
1932
+ export type SearchColumns<T extends SearchItem> = (any)[];
2071
1933
  export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
2072
1934
  export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
2073
- export type SearchFormatItem<T extends SearchItem, KT extends string[]> = {
2074
- [K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string;
2075
- } & {
2076
- searchActive?: boolean;
2077
- };
1935
+ export type SearchFormatItem<T extends SearchItem, KT extends string[]> = any;
2078
1936
  export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
2079
1937
  export type SearchListValue<T extends SearchItem> = T[] | undefined;
2080
1938
  export type SearchOptions = {
@@ -2100,9 +1958,7 @@ export type TranslateConfig = {
2100
1958
  readApi?: boolean;
2101
1959
  };
2102
1960
  export type TranslateCode = string | string[];
2103
- export type TranslateList<T extends TranslateCode[]> = {
2104
- [K in T[number] as K extends readonly string[] ? K[0] : K]: string;
2105
- };
1961
+ export type TranslateList<T extends TranslateCode[]> = any;
2106
1962
  export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
2107
1963
  export type TranslateDataFileList = Record<string, string>;
2108
1964
  export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;