@inceptionbg/main 2.0.147 → 2.0.149

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.
@@ -1,672 +1,674 @@
1
1
  import { NavigateFunction, Location, LinkProps } from 'react-router-dom';
2
2
 
3
- declare const ModuleIds = [
4
- 'DASHBOARD',
5
- 'ADMIN',
6
- 'EARCHIVE',
7
- 'ERDS',
8
- 'EINVOICE',
9
- 'EFORMS',
10
- 'EDMS',
11
- 'ESIGN',
12
- 'EVALIDATION',
13
- 'EPROCUREMENT',
14
- 'EREGISTER',
15
- 'PAM',
16
- 'ERP_CASH_REGISTER',
17
- 'ERP_RIF',
18
- 'ERP_MAT_ACC',
19
- 'ERP_SMALL_INVENTORY',
20
- 'ERP_WMS',
3
+ declare const ModuleIds = [
4
+ 'DASHBOARD',
5
+ 'ADMIN',
6
+ 'EARCHIVE',
7
+ 'ERDS',
8
+ 'EINVOICE',
9
+ 'EFORMS',
10
+ 'EDMS',
11
+ 'ESIGN',
12
+ 'EVALIDATION',
13
+ 'EPROCUREMENT',
14
+ 'EREGISTER',
15
+ 'PAM',
16
+ 'ERP_CASH_REGISTER',
17
+ 'ERP_RIF',
18
+ 'ERP_MAT_ACC',
19
+ 'ERP_SMALL_INVENTORY',
20
+ 'ERP_WMS',
21
21
  ] as const;
22
22
 
23
23
  type IModuleId = (typeof ModuleIds)[number];
24
24
 
25
- type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG';
26
- type IServiceApi =
27
- | 'auth'
28
- | 'idm'
29
- | 'codebook'
30
- | 'auditLog'
31
- | 'notifications'
32
- | 'indexData'
33
- | 'registration'
34
- | 'reportTemplates'
35
- | 'procurement'
36
- | 'archive'
37
- | 'invoice'
38
- | 'rif'
39
- | 'cashRegister'
40
- | 'jisuszProxy'
25
+ type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG';
26
+ type IServiceApi =
27
+ | 'auth'
28
+ | 'idm'
29
+ | 'codebook'
30
+ | 'auditLog'
31
+ | 'notifications'
32
+ | 'indexData'
33
+ | 'registration'
34
+ | 'reportTemplates'
35
+ | 'procurement'
36
+ | 'archive'
37
+ | 'invoice'
38
+ | 'edms'
39
+ | 'rif'
40
+ | 'cashRegister'
41
+ | 'jisuszProxy'
42
+ | 'fosterCare'
41
43
  | 'article';
42
44
 
43
- // TypeScript Version: 4.7
44
- type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
45
-
46
- type CustomHeader = {
47
- public?: boolean;
48
- baseUrl?: string;
49
- service?: IServiceApi;
50
- token?: string;
51
- noToast?: boolean;
52
- noErrors?: boolean;
53
- };
54
-
55
- interface RawAxiosHeaders {
56
- [key: string]: AxiosHeaderValue;
57
- }
58
-
59
- type MethodsHeaders = Partial<
60
- {
61
- [Key in Method as Lowercase<Key>]: AxiosHeaders;
62
- } & { common: AxiosHeaders }
63
- >;
64
-
65
- type AxiosHeaderMatcher =
66
- | string
67
- | RegExp
68
- | ((this: AxiosHeaders, value: string, name: string) => boolean);
69
-
70
- type AxiosHeaderParser = (
71
- this: AxiosHeaders,
72
- value: AxiosHeaderValue,
73
- header: string
74
- ) => any;
75
-
76
- declare class AxiosHeaders {
77
- constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
78
-
79
- [key: string]: any;
80
-
81
- set(
82
- headerName?: string,
83
- value?: AxiosHeaderValue,
84
- rewrite?: boolean | AxiosHeaderMatcher
85
- ): AxiosHeaders;
86
- set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
87
-
88
- get(headerName: string, parser: RegExp): RegExpExecArray | null;
89
- get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
90
-
91
- has(header: string, matcher?: AxiosHeaderMatcher): boolean;
92
-
93
- delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
94
-
95
- clear(matcher?: AxiosHeaderMatcher): boolean;
96
-
97
- normalize(format: boolean): AxiosHeaders;
98
-
99
- concat(
100
- ...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
101
- ): AxiosHeaders;
102
-
103
- toJSON(asStrings?: boolean): RawAxiosHeaders;
104
-
105
- static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
106
-
107
- static accessor(header: string | string[]): AxiosHeaders;
108
-
109
- static concat(
110
- ...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
111
- ): AxiosHeaders;
112
-
113
- setContentType(
114
- value: ContentType,
115
- rewrite?: boolean | AxiosHeaderMatcher
116
- ): AxiosHeaders;
117
- getContentType(parser?: RegExp): RegExpExecArray | null;
118
- getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
119
- hasContentType(matcher?: AxiosHeaderMatcher): boolean;
120
-
121
- setContentLength(
122
- value: AxiosHeaderValue,
123
- rewrite?: boolean | AxiosHeaderMatcher
124
- ): AxiosHeaders;
125
- getContentLength(parser?: RegExp): RegExpExecArray | null;
126
- getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
127
- hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
128
-
129
- setAccept(
130
- value: AxiosHeaderValue,
131
- rewrite?: boolean | AxiosHeaderMatcher
132
- ): AxiosHeaders;
133
- getAccept(parser?: RegExp): RegExpExecArray | null;
134
- getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
135
- hasAccept(matcher?: AxiosHeaderMatcher): boolean;
136
-
137
- setUserAgent(
138
- value: AxiosHeaderValue,
139
- rewrite?: boolean | AxiosHeaderMatcher
140
- ): AxiosHeaders;
141
- getUserAgent(parser?: RegExp): RegExpExecArray | null;
142
- getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
143
- hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
144
-
145
- setContentEncoding(
146
- value: AxiosHeaderValue,
147
- rewrite?: boolean | AxiosHeaderMatcher
148
- ): AxiosHeaders;
149
- getContentEncoding(parser?: RegExp): RegExpExecArray | null;
150
- getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
151
- hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
152
-
153
- setAuthorization(
154
- value: AxiosHeaderValue,
155
- rewrite?: boolean | AxiosHeaderMatcher
156
- ): AxiosHeaders;
157
- getAuthorization(parser?: RegExp): RegExpExecArray | null;
158
- getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
159
- hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
160
-
161
- [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
162
- }
163
-
164
- type CommonRequestHeadersList =
165
- | 'Accept'
166
- | 'Content-Length'
167
- | 'User-Agent'
168
- | 'Content-Encoding'
169
- | 'Authorization';
170
-
171
- type ContentType =
172
- | AxiosHeaderValue
173
- | 'text/html'
174
- | 'text/plain'
175
- | 'multipart/form-data'
176
- | 'application/json'
177
- | 'application/x-www-form-urlencoded'
178
- | 'application/octet-stream';
179
-
180
- type RawAxiosRequestHeaders = Partial<
181
- RawAxiosHeaders & {
182
- [Key in CommonRequestHeadersList]: AxiosHeaderValue;
183
- } & {
184
- 'Content-Type': ContentType;
185
- }
186
- >;
187
-
188
- type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
189
-
190
- type CommonResponseHeadersList =
191
- | 'Server'
192
- | 'Content-Type'
193
- | 'Content-Length'
194
- | 'Cache-Control'
195
- | 'Content-Encoding';
196
-
197
- type RawCommonResponseHeaders = {
198
- [Key in CommonResponseHeadersList]: AxiosHeaderValue;
199
- } & {
200
- 'set-cookie': string[];
201
- };
202
-
203
- type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
204
-
205
- type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
206
-
207
- interface AxiosRequestTransformer {
208
- (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
209
- }
210
-
211
- interface AxiosResponseTransformer {
212
- (
213
- this: InternalAxiosRequestConfig,
214
- data: any,
215
- headers: AxiosResponseHeaders,
216
- status?: number
217
- ): any;
218
- }
219
-
220
- interface AxiosAdapter {
221
- (config: InternalAxiosRequestConfig): AxiosPromise;
222
- }
223
-
224
- interface AxiosBasicCredentials {
225
- username: string;
226
- password: string;
227
- }
228
-
229
- interface AxiosProxyConfig {
230
- host: string;
231
- port: number;
232
- auth?: AxiosBasicCredentials;
233
- protocol?: string;
234
- }
235
-
236
- declare enum HttpStatusCode {
237
- Continue = 100,
238
- SwitchingProtocols = 101,
239
- Processing = 102,
240
- EarlyHints = 103,
241
- Ok = 200,
242
- Created = 201,
243
- Accepted = 202,
244
- NonAuthoritativeInformation = 203,
245
- NoContent = 204,
246
- ResetContent = 205,
247
- PartialContent = 206,
248
- MultiStatus = 207,
249
- AlreadyReported = 208,
250
- ImUsed = 226,
251
- MultipleChoices = 300,
252
- MovedPermanently = 301,
253
- Found = 302,
254
- SeeOther = 303,
255
- NotModified = 304,
256
- UseProxy = 305,
257
- Unused = 306,
258
- TemporaryRedirect = 307,
259
- PermanentRedirect = 308,
260
- BadRequest = 400,
261
- Unauthorized = 401,
262
- PaymentRequired = 402,
263
- Forbidden = 403,
264
- NotFound = 404,
265
- MethodNotAllowed = 405,
266
- NotAcceptable = 406,
267
- ProxyAuthenticationRequired = 407,
268
- RequestTimeout = 408,
269
- Conflict = 409,
270
- Gone = 410,
271
- LengthRequired = 411,
272
- PreconditionFailed = 412,
273
- PayloadTooLarge = 413,
274
- UriTooLong = 414,
275
- UnsupportedMediaType = 415,
276
- RangeNotSatisfiable = 416,
277
- ExpectationFailed = 417,
278
- ImATeapot = 418,
279
- MisdirectedRequest = 421,
280
- UnprocessableEntity = 422,
281
- Locked = 423,
282
- FailedDependency = 424,
283
- TooEarly = 425,
284
- UpgradeRequired = 426,
285
- PreconditionRequired = 428,
286
- TooManyRequests = 429,
287
- RequestHeaderFieldsTooLarge = 431,
288
- UnavailableForLegalReasons = 451,
289
- InternalServerError = 500,
290
- NotImplemented = 501,
291
- BadGateway = 502,
292
- ServiceUnavailable = 503,
293
- GatewayTimeout = 504,
294
- HttpVersionNotSupported = 505,
295
- VariantAlsoNegotiates = 506,
296
- InsufficientStorage = 507,
297
- LoopDetected = 508,
298
- NotExtended = 510,
299
- NetworkAuthenticationRequired = 511,
300
- }
301
-
302
- type Method =
303
- | 'get'
304
- | 'GET'
305
- | 'delete'
306
- | 'DELETE'
307
- | 'head'
308
- | 'HEAD'
309
- | 'options'
310
- | 'OPTIONS'
311
- | 'post'
312
- | 'POST'
313
- | 'put'
314
- | 'PUT'
315
- | 'patch'
316
- | 'PATCH'
317
- | 'purge'
318
- | 'PURGE'
319
- | 'link'
320
- | 'LINK'
321
- | 'unlink'
322
- | 'UNLINK';
323
-
324
- type ResponseType =
325
- | 'arraybuffer'
326
- | 'blob'
327
- | 'document'
328
- | 'json'
329
- | 'text'
330
- | 'stream'
331
- | 'formdata';
332
-
333
- type responseEncoding =
334
- | 'ascii'
335
- | 'ASCII'
336
- | 'ansi'
337
- | 'ANSI'
338
- | 'binary'
339
- | 'BINARY'
340
- | 'base64'
341
- | 'BASE64'
342
- | 'base64url'
343
- | 'BASE64URL'
344
- | 'hex'
345
- | 'HEX'
346
- | 'latin1'
347
- | 'LATIN1'
348
- | 'ucs-2'
349
- | 'UCS-2'
350
- | 'ucs2'
351
- | 'UCS2'
352
- | 'utf-8'
353
- | 'UTF-8'
354
- | 'utf8'
355
- | 'UTF8'
356
- | 'utf16le'
357
- | 'UTF16LE';
358
-
359
- interface TransitionalOptions {
360
- silentJSONParsing?: boolean;
361
- forcedJSONParsing?: boolean;
362
- clarifyTimeoutError?: boolean;
363
- }
364
-
365
- interface GenericAbortSignal {
366
- readonly aborted: boolean;
367
- onabort?: ((...args: any) => any) | null;
368
- addEventListener?: (...args: any) => any;
369
- removeEventListener?: (...args: any) => any;
370
- }
371
-
372
- interface FormDataVisitorHelpers {
373
- defaultVisitor: SerializerVisitor;
374
- convertValue: (value: any) => any;
375
- isVisitable: (value: any) => boolean;
376
- }
377
-
378
- interface SerializerVisitor {
379
- (
380
- this: GenericFormData,
381
- value: any,
382
- key: string | number,
383
- path: null | Array<string | number>,
384
- helpers: FormDataVisitorHelpers
385
- ): boolean;
386
- }
387
-
388
- interface SerializerOptions {
389
- visitor?: SerializerVisitor;
390
- dots?: boolean;
391
- metaTokens?: boolean;
392
- indexes?: boolean | null;
393
- }
394
-
395
- // tslint:disable-next-line
396
- interface FormSerializerOptions extends SerializerOptions {}
397
-
398
- interface ParamEncoder {
399
- (value: any, defaultEncoder: (value: any) => any): any;
400
- }
401
-
402
- interface CustomParamsSerializer {
403
- (params: Record<string, any>, options?: ParamsSerializerOptions): string;
404
- }
405
-
406
- interface ParamsSerializerOptions extends SerializerOptions {
407
- encode?: ParamEncoder;
408
- serialize?: CustomParamsSerializer;
409
- }
410
-
411
- type MaxUploadRate = number;
412
-
413
- type MaxDownloadRate = number;
414
-
415
- type BrowserProgressEvent = any;
416
-
417
- interface AxiosProgressEvent {
418
- loaded: number;
419
- total?: number;
420
- progress?: number;
421
- bytes: number;
422
- rate?: number;
423
- estimated?: number;
424
- upload?: boolean;
425
- download?: boolean;
426
- event?: BrowserProgressEvent;
427
- lengthComputable: boolean;
428
- }
429
-
430
- type Milliseconds = number;
431
-
432
- type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | string;
433
-
434
- type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
435
-
436
- type AddressFamily = 4 | 6 | undefined;
437
-
438
- interface LookupAddressEntry {
439
- address: string;
440
- family?: AddressFamily;
441
- }
442
-
443
- type LookupAddress = string | LookupAddressEntry;
444
-
445
- interface AxiosRequestConfig<D = any> {
446
- url?: string;
447
- method?: Method | string;
448
- baseURL?: string;
449
- transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
450
- transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
451
- headers?: ((RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders) & CustomHeader;
452
- params?: any;
453
- paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
454
- data?: D;
455
- timeout?: Milliseconds;
456
- timeoutErrorMessage?: string;
457
- withCredentials?: boolean;
458
- adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
459
- auth?: AxiosBasicCredentials;
460
- responseType?: ResponseType;
461
- responseEncoding?: responseEncoding | string;
462
- xsrfCookieName?: string;
463
- xsrfHeaderName?: string;
464
- onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
465
- onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
466
- maxContentLength?: number;
467
- validateStatus?: ((status: number) => boolean) | null;
468
- maxBodyLength?: number;
469
- maxRedirects?: number;
470
- maxRate?: number | [MaxUploadRate, MaxDownloadRate];
471
- beforeRedirect?: (
472
- options: Record<string, any>,
473
- responseDetails: { headers: Record<string, string>; statusCode: HttpStatusCode }
474
- ) => void;
475
- socketPath?: string | null;
476
- transport?: any;
477
- httpAgent?: any;
478
- httpsAgent?: any;
479
- proxy?: AxiosProxyConfig | false;
480
- cancelToken?: CancelToken;
481
- decompress?: boolean;
482
- transitional?: TransitionalOptions;
483
- signal?: GenericAbortSignal;
484
- insecureHTTPParser?: boolean;
485
- env?: {
486
- FormData?: new (...args: any[]) => object;
487
- };
488
- formSerializer?: FormSerializerOptions;
489
- family?: AddressFamily;
490
- lookup?:
491
- | ((
492
- hostname: string,
493
- options: object,
494
- cb: (
495
- err: Error | null,
496
- address: LookupAddress | LookupAddress[],
497
- family?: AddressFamily
498
- ) => void
499
- ) => void)
500
- | ((
501
- hostname: string,
502
- options: object
503
- ) => Promise<
504
- | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]
505
- | LookupAddress
506
- >);
507
- withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
508
- fetchOptions?: Record<string, any>;
509
- }
510
-
511
- interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
512
- headers: AxiosRequestHeaders;
513
- }
514
-
515
- interface HeadersDefaults {
516
- common: RawAxiosRequestHeaders;
517
- delete: RawAxiosRequestHeaders;
518
- get: RawAxiosRequestHeaders;
519
- head: RawAxiosRequestHeaders;
520
- post: RawAxiosRequestHeaders;
521
- put: RawAxiosRequestHeaders;
522
- patch: RawAxiosRequestHeaders;
523
- options?: RawAxiosRequestHeaders;
524
- purge?: RawAxiosRequestHeaders;
525
- link?: RawAxiosRequestHeaders;
526
- unlink?: RawAxiosRequestHeaders;
527
- }
528
-
529
- interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
530
- headers: HeadersDefaults;
531
- }
532
-
533
- interface AxiosResponse<T = any, D = any> {
534
- data: T;
535
- status: number;
536
- statusText: string;
537
- headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
538
- config: InternalAxiosRequestConfig<D>;
539
- request?: any;
540
- }
541
-
542
- type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;
543
-
544
- interface Cancel {
545
- message: string | undefined;
546
- }
547
-
548
- interface CancelToken {
549
- promise: Promise<Cancel>;
550
- reason?: Cancel;
551
- throwIfRequested(): void;
552
- }
553
-
554
- interface AxiosInterceptorOptions {
555
- synchronous?: boolean;
556
- runWhen?: (config: InternalAxiosRequestConfig) => boolean;
557
- }
558
-
559
- interface AxiosInterceptorManager<V> {
560
- use(
561
- onFulfilled?: ((value: V) => V | Promise<V>) | null,
562
- onRejected?: ((error: any) => any) | null,
563
- options?: AxiosInterceptorOptions
564
- ): number;
565
- eject(id: number): void;
566
- clear(): void;
567
- }
568
-
569
- declare class Axios {
570
- constructor(config?: AxiosRequestConfig);
571
- defaults: AxiosDefaults;
572
- interceptors: {
573
- request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
574
- response: AxiosInterceptorManager<AxiosResponse>;
575
- };
576
- getUri(config?: AxiosRequestConfig): string;
577
- request<T = any, R = AxiosResponse<T>, D = any>(
578
- config: AxiosRequestConfig<D>
579
- ): Promise<R>;
580
- get<T = any, R = AxiosResponse<T>, D = any>(
581
- url: string,
582
- config?: AxiosRequestConfig<D>
583
- ): Promise<R>;
584
- delete<T = any, R = AxiosResponse<T>, D = any>(
585
- url: string,
586
- config?: AxiosRequestConfig<D>
587
- ): Promise<R>;
588
- head<T = any, R = AxiosResponse<T>, D = any>(
589
- url: string,
590
- config?: AxiosRequestConfig<D>
591
- ): Promise<R>;
592
- options<T = any, R = AxiosResponse<T>, D = any>(
593
- url: string,
594
- config?: AxiosRequestConfig<D>
595
- ): Promise<R>;
596
- post<T = any, R = AxiosResponse<T>, D = any>(
597
- url: string,
598
- data?: D,
599
- config?: AxiosRequestConfig<D>
600
- ): Promise<R>;
601
- put<T = any, R = AxiosResponse<T>, D = any>(
602
- url: string,
603
- data?: D,
604
- config?: AxiosRequestConfig<D>
605
- ): Promise<R>;
606
- patch<T = any, R = AxiosResponse<T>, D = any>(
607
- url: string,
608
- data?: D,
609
- config?: AxiosRequestConfig<D>
610
- ): Promise<R>;
611
- postForm<T = any, R = AxiosResponse<T>, D = any>(
612
- url: string,
613
- data?: D,
614
- config?: AxiosRequestConfig<D>
615
- ): Promise<R>;
616
- putForm<T = any, R = AxiosResponse<T>, D = any>(
617
- url: string,
618
- data?: D,
619
- config?: AxiosRequestConfig<D>
620
- ): Promise<R>;
621
- patchForm<T = any, R = AxiosResponse<T>, D = any>(
622
- url: string,
623
- data?: D,
624
- config?: AxiosRequestConfig<D>
625
- ): Promise<R>;
626
- }
627
-
628
- interface AxiosInstance extends Axios {
629
- <T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
630
- <T = any, R = AxiosResponse<T>, D = any>(
631
- url: string,
632
- config?: AxiosRequestConfig<D>
633
- ): Promise<R>;
634
-
635
- defaults: Omit<AxiosDefaults, 'headers'> & {
636
- headers: HeadersDefaults & {
637
- [key: string]: AxiosHeaderValue;
638
- };
639
- };
640
- }
641
-
642
- interface GenericFormData {
643
- append(name: string, value: any, options?: any): any;
45
+ // TypeScript Version: 4.7
46
+ type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
47
+
48
+ type CustomHeader = {
49
+ public?: boolean;
50
+ baseUrl?: string;
51
+ service?: IServiceApi;
52
+ token?: string;
53
+ noToast?: boolean;
54
+ noErrors?: boolean;
55
+ };
56
+
57
+ interface RawAxiosHeaders {
58
+ [key: string]: AxiosHeaderValue;
59
+ }
60
+
61
+ type MethodsHeaders = Partial<
62
+ {
63
+ [Key in Method as Lowercase<Key>]: AxiosHeaders;
64
+ } & { common: AxiosHeaders }
65
+ >;
66
+
67
+ type AxiosHeaderMatcher =
68
+ | string
69
+ | RegExp
70
+ | ((this: AxiosHeaders, value: string, name: string) => boolean);
71
+
72
+ type AxiosHeaderParser = (
73
+ this: AxiosHeaders,
74
+ value: AxiosHeaderValue,
75
+ header: string
76
+ ) => any;
77
+
78
+ declare class AxiosHeaders {
79
+ constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
80
+
81
+ [key: string]: any;
82
+
83
+ set(
84
+ headerName?: string,
85
+ value?: AxiosHeaderValue,
86
+ rewrite?: boolean | AxiosHeaderMatcher
87
+ ): AxiosHeaders;
88
+ set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
89
+
90
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
91
+ get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
92
+
93
+ has(header: string, matcher?: AxiosHeaderMatcher): boolean;
94
+
95
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
96
+
97
+ clear(matcher?: AxiosHeaderMatcher): boolean;
98
+
99
+ normalize(format: boolean): AxiosHeaders;
100
+
101
+ concat(
102
+ ...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
103
+ ): AxiosHeaders;
104
+
105
+ toJSON(asStrings?: boolean): RawAxiosHeaders;
106
+
107
+ static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
108
+
109
+ static accessor(header: string | string[]): AxiosHeaders;
110
+
111
+ static concat(
112
+ ...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
113
+ ): AxiosHeaders;
114
+
115
+ setContentType(
116
+ value: ContentType,
117
+ rewrite?: boolean | AxiosHeaderMatcher
118
+ ): AxiosHeaders;
119
+ getContentType(parser?: RegExp): RegExpExecArray | null;
120
+ getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
121
+ hasContentType(matcher?: AxiosHeaderMatcher): boolean;
122
+
123
+ setContentLength(
124
+ value: AxiosHeaderValue,
125
+ rewrite?: boolean | AxiosHeaderMatcher
126
+ ): AxiosHeaders;
127
+ getContentLength(parser?: RegExp): RegExpExecArray | null;
128
+ getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
129
+ hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
130
+
131
+ setAccept(
132
+ value: AxiosHeaderValue,
133
+ rewrite?: boolean | AxiosHeaderMatcher
134
+ ): AxiosHeaders;
135
+ getAccept(parser?: RegExp): RegExpExecArray | null;
136
+ getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
137
+ hasAccept(matcher?: AxiosHeaderMatcher): boolean;
138
+
139
+ setUserAgent(
140
+ value: AxiosHeaderValue,
141
+ rewrite?: boolean | AxiosHeaderMatcher
142
+ ): AxiosHeaders;
143
+ getUserAgent(parser?: RegExp): RegExpExecArray | null;
144
+ getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
145
+ hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
146
+
147
+ setContentEncoding(
148
+ value: AxiosHeaderValue,
149
+ rewrite?: boolean | AxiosHeaderMatcher
150
+ ): AxiosHeaders;
151
+ getContentEncoding(parser?: RegExp): RegExpExecArray | null;
152
+ getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
153
+ hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
154
+
155
+ setAuthorization(
156
+ value: AxiosHeaderValue,
157
+ rewrite?: boolean | AxiosHeaderMatcher
158
+ ): AxiosHeaders;
159
+ getAuthorization(parser?: RegExp): RegExpExecArray | null;
160
+ getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
161
+ hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
162
+
163
+ [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
164
+ }
165
+
166
+ type CommonRequestHeadersList =
167
+ | 'Accept'
168
+ | 'Content-Length'
169
+ | 'User-Agent'
170
+ | 'Content-Encoding'
171
+ | 'Authorization';
172
+
173
+ type ContentType =
174
+ | AxiosHeaderValue
175
+ | 'text/html'
176
+ | 'text/plain'
177
+ | 'multipart/form-data'
178
+ | 'application/json'
179
+ | 'application/x-www-form-urlencoded'
180
+ | 'application/octet-stream';
181
+
182
+ type RawAxiosRequestHeaders = Partial<
183
+ RawAxiosHeaders & {
184
+ [Key in CommonRequestHeadersList]: AxiosHeaderValue;
185
+ } & {
186
+ 'Content-Type': ContentType;
187
+ }
188
+ >;
189
+
190
+ type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
191
+
192
+ type CommonResponseHeadersList =
193
+ | 'Server'
194
+ | 'Content-Type'
195
+ | 'Content-Length'
196
+ | 'Cache-Control'
197
+ | 'Content-Encoding';
198
+
199
+ type RawCommonResponseHeaders = {
200
+ [Key in CommonResponseHeadersList]: AxiosHeaderValue;
201
+ } & {
202
+ 'set-cookie': string[];
203
+ };
204
+
205
+ type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
206
+
207
+ type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
208
+
209
+ interface AxiosRequestTransformer {
210
+ (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
211
+ }
212
+
213
+ interface AxiosResponseTransformer {
214
+ (
215
+ this: InternalAxiosRequestConfig,
216
+ data: any,
217
+ headers: AxiosResponseHeaders,
218
+ status?: number
219
+ ): any;
220
+ }
221
+
222
+ interface AxiosAdapter {
223
+ (config: InternalAxiosRequestConfig): AxiosPromise;
224
+ }
225
+
226
+ interface AxiosBasicCredentials {
227
+ username: string;
228
+ password: string;
229
+ }
230
+
231
+ interface AxiosProxyConfig {
232
+ host: string;
233
+ port: number;
234
+ auth?: AxiosBasicCredentials;
235
+ protocol?: string;
236
+ }
237
+
238
+ declare enum HttpStatusCode {
239
+ Continue = 100,
240
+ SwitchingProtocols = 101,
241
+ Processing = 102,
242
+ EarlyHints = 103,
243
+ Ok = 200,
244
+ Created = 201,
245
+ Accepted = 202,
246
+ NonAuthoritativeInformation = 203,
247
+ NoContent = 204,
248
+ ResetContent = 205,
249
+ PartialContent = 206,
250
+ MultiStatus = 207,
251
+ AlreadyReported = 208,
252
+ ImUsed = 226,
253
+ MultipleChoices = 300,
254
+ MovedPermanently = 301,
255
+ Found = 302,
256
+ SeeOther = 303,
257
+ NotModified = 304,
258
+ UseProxy = 305,
259
+ Unused = 306,
260
+ TemporaryRedirect = 307,
261
+ PermanentRedirect = 308,
262
+ BadRequest = 400,
263
+ Unauthorized = 401,
264
+ PaymentRequired = 402,
265
+ Forbidden = 403,
266
+ NotFound = 404,
267
+ MethodNotAllowed = 405,
268
+ NotAcceptable = 406,
269
+ ProxyAuthenticationRequired = 407,
270
+ RequestTimeout = 408,
271
+ Conflict = 409,
272
+ Gone = 410,
273
+ LengthRequired = 411,
274
+ PreconditionFailed = 412,
275
+ PayloadTooLarge = 413,
276
+ UriTooLong = 414,
277
+ UnsupportedMediaType = 415,
278
+ RangeNotSatisfiable = 416,
279
+ ExpectationFailed = 417,
280
+ ImATeapot = 418,
281
+ MisdirectedRequest = 421,
282
+ UnprocessableEntity = 422,
283
+ Locked = 423,
284
+ FailedDependency = 424,
285
+ TooEarly = 425,
286
+ UpgradeRequired = 426,
287
+ PreconditionRequired = 428,
288
+ TooManyRequests = 429,
289
+ RequestHeaderFieldsTooLarge = 431,
290
+ UnavailableForLegalReasons = 451,
291
+ InternalServerError = 500,
292
+ NotImplemented = 501,
293
+ BadGateway = 502,
294
+ ServiceUnavailable = 503,
295
+ GatewayTimeout = 504,
296
+ HttpVersionNotSupported = 505,
297
+ VariantAlsoNegotiates = 506,
298
+ InsufficientStorage = 507,
299
+ LoopDetected = 508,
300
+ NotExtended = 510,
301
+ NetworkAuthenticationRequired = 511,
302
+ }
303
+
304
+ type Method =
305
+ | 'get'
306
+ | 'GET'
307
+ | 'delete'
308
+ | 'DELETE'
309
+ | 'head'
310
+ | 'HEAD'
311
+ | 'options'
312
+ | 'OPTIONS'
313
+ | 'post'
314
+ | 'POST'
315
+ | 'put'
316
+ | 'PUT'
317
+ | 'patch'
318
+ | 'PATCH'
319
+ | 'purge'
320
+ | 'PURGE'
321
+ | 'link'
322
+ | 'LINK'
323
+ | 'unlink'
324
+ | 'UNLINK';
325
+
326
+ type ResponseType =
327
+ | 'arraybuffer'
328
+ | 'blob'
329
+ | 'document'
330
+ | 'json'
331
+ | 'text'
332
+ | 'stream'
333
+ | 'formdata';
334
+
335
+ type responseEncoding =
336
+ | 'ascii'
337
+ | 'ASCII'
338
+ | 'ansi'
339
+ | 'ANSI'
340
+ | 'binary'
341
+ | 'BINARY'
342
+ | 'base64'
343
+ | 'BASE64'
344
+ | 'base64url'
345
+ | 'BASE64URL'
346
+ | 'hex'
347
+ | 'HEX'
348
+ | 'latin1'
349
+ | 'LATIN1'
350
+ | 'ucs-2'
351
+ | 'UCS-2'
352
+ | 'ucs2'
353
+ | 'UCS2'
354
+ | 'utf-8'
355
+ | 'UTF-8'
356
+ | 'utf8'
357
+ | 'UTF8'
358
+ | 'utf16le'
359
+ | 'UTF16LE';
360
+
361
+ interface TransitionalOptions {
362
+ silentJSONParsing?: boolean;
363
+ forcedJSONParsing?: boolean;
364
+ clarifyTimeoutError?: boolean;
365
+ }
366
+
367
+ interface GenericAbortSignal {
368
+ readonly aborted: boolean;
369
+ onabort?: ((...args: any) => any) | null;
370
+ addEventListener?: (...args: any) => any;
371
+ removeEventListener?: (...args: any) => any;
372
+ }
373
+
374
+ interface FormDataVisitorHelpers {
375
+ defaultVisitor: SerializerVisitor;
376
+ convertValue: (value: any) => any;
377
+ isVisitable: (value: any) => boolean;
378
+ }
379
+
380
+ interface SerializerVisitor {
381
+ (
382
+ this: GenericFormData,
383
+ value: any,
384
+ key: string | number,
385
+ path: null | Array<string | number>,
386
+ helpers: FormDataVisitorHelpers
387
+ ): boolean;
388
+ }
389
+
390
+ interface SerializerOptions {
391
+ visitor?: SerializerVisitor;
392
+ dots?: boolean;
393
+ metaTokens?: boolean;
394
+ indexes?: boolean | null;
395
+ }
396
+
397
+ // tslint:disable-next-line
398
+ interface FormSerializerOptions extends SerializerOptions {}
399
+
400
+ interface ParamEncoder {
401
+ (value: any, defaultEncoder: (value: any) => any): any;
402
+ }
403
+
404
+ interface CustomParamsSerializer {
405
+ (params: Record<string, any>, options?: ParamsSerializerOptions): string;
406
+ }
407
+
408
+ interface ParamsSerializerOptions extends SerializerOptions {
409
+ encode?: ParamEncoder;
410
+ serialize?: CustomParamsSerializer;
411
+ }
412
+
413
+ type MaxUploadRate = number;
414
+
415
+ type MaxDownloadRate = number;
416
+
417
+ type BrowserProgressEvent = any;
418
+
419
+ interface AxiosProgressEvent {
420
+ loaded: number;
421
+ total?: number;
422
+ progress?: number;
423
+ bytes: number;
424
+ rate?: number;
425
+ estimated?: number;
426
+ upload?: boolean;
427
+ download?: boolean;
428
+ event?: BrowserProgressEvent;
429
+ lengthComputable: boolean;
430
+ }
431
+
432
+ type Milliseconds = number;
433
+
434
+ type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | string;
435
+
436
+ type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
437
+
438
+ type AddressFamily = 4 | 6 | undefined;
439
+
440
+ interface LookupAddressEntry {
441
+ address: string;
442
+ family?: AddressFamily;
443
+ }
444
+
445
+ type LookupAddress = string | LookupAddressEntry;
446
+
447
+ interface AxiosRequestConfig<D = any> {
448
+ url?: string;
449
+ method?: Method | string;
450
+ baseURL?: string;
451
+ transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
452
+ transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
453
+ headers?: ((RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders) & CustomHeader;
454
+ params?: any;
455
+ paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
456
+ data?: D;
457
+ timeout?: Milliseconds;
458
+ timeoutErrorMessage?: string;
459
+ withCredentials?: boolean;
460
+ adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
461
+ auth?: AxiosBasicCredentials;
462
+ responseType?: ResponseType;
463
+ responseEncoding?: responseEncoding | string;
464
+ xsrfCookieName?: string;
465
+ xsrfHeaderName?: string;
466
+ onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
467
+ onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
468
+ maxContentLength?: number;
469
+ validateStatus?: ((status: number) => boolean) | null;
470
+ maxBodyLength?: number;
471
+ maxRedirects?: number;
472
+ maxRate?: number | [MaxUploadRate, MaxDownloadRate];
473
+ beforeRedirect?: (
474
+ options: Record<string, any>,
475
+ responseDetails: { headers: Record<string, string>; statusCode: HttpStatusCode }
476
+ ) => void;
477
+ socketPath?: string | null;
478
+ transport?: any;
479
+ httpAgent?: any;
480
+ httpsAgent?: any;
481
+ proxy?: AxiosProxyConfig | false;
482
+ cancelToken?: CancelToken;
483
+ decompress?: boolean;
484
+ transitional?: TransitionalOptions;
485
+ signal?: GenericAbortSignal;
486
+ insecureHTTPParser?: boolean;
487
+ env?: {
488
+ FormData?: new (...args: any[]) => object;
489
+ };
490
+ formSerializer?: FormSerializerOptions;
491
+ family?: AddressFamily;
492
+ lookup?:
493
+ | ((
494
+ hostname: string,
495
+ options: object,
496
+ cb: (
497
+ err: Error | null,
498
+ address: LookupAddress | LookupAddress[],
499
+ family?: AddressFamily
500
+ ) => void
501
+ ) => void)
502
+ | ((
503
+ hostname: string,
504
+ options: object
505
+ ) => Promise<
506
+ | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]
507
+ | LookupAddress
508
+ >);
509
+ withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
510
+ fetchOptions?: Record<string, any>;
511
+ }
512
+
513
+ interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
514
+ headers: AxiosRequestHeaders;
515
+ }
516
+
517
+ interface HeadersDefaults {
518
+ common: RawAxiosRequestHeaders;
519
+ delete: RawAxiosRequestHeaders;
520
+ get: RawAxiosRequestHeaders;
521
+ head: RawAxiosRequestHeaders;
522
+ post: RawAxiosRequestHeaders;
523
+ put: RawAxiosRequestHeaders;
524
+ patch: RawAxiosRequestHeaders;
525
+ options?: RawAxiosRequestHeaders;
526
+ purge?: RawAxiosRequestHeaders;
527
+ link?: RawAxiosRequestHeaders;
528
+ unlink?: RawAxiosRequestHeaders;
529
+ }
530
+
531
+ interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
532
+ headers: HeadersDefaults;
533
+ }
534
+
535
+ interface AxiosResponse<T = any, D = any> {
536
+ data: T;
537
+ status: number;
538
+ statusText: string;
539
+ headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
540
+ config: InternalAxiosRequestConfig<D>;
541
+ request?: any;
542
+ }
543
+
544
+ type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;
545
+
546
+ interface Cancel {
547
+ message: string | undefined;
548
+ }
549
+
550
+ interface CancelToken {
551
+ promise: Promise<Cancel>;
552
+ reason?: Cancel;
553
+ throwIfRequested(): void;
554
+ }
555
+
556
+ interface AxiosInterceptorOptions {
557
+ synchronous?: boolean;
558
+ runWhen?: (config: InternalAxiosRequestConfig) => boolean;
559
+ }
560
+
561
+ interface AxiosInterceptorManager<V> {
562
+ use(
563
+ onFulfilled?: ((value: V) => V | Promise<V>) | null,
564
+ onRejected?: ((error: any) => any) | null,
565
+ options?: AxiosInterceptorOptions
566
+ ): number;
567
+ eject(id: number): void;
568
+ clear(): void;
569
+ }
570
+
571
+ declare class Axios {
572
+ constructor(config?: AxiosRequestConfig);
573
+ defaults: AxiosDefaults;
574
+ interceptors: {
575
+ request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
576
+ response: AxiosInterceptorManager<AxiosResponse>;
577
+ };
578
+ getUri(config?: AxiosRequestConfig): string;
579
+ request<T = any, R = AxiosResponse<T>, D = any>(
580
+ config: AxiosRequestConfig<D>
581
+ ): Promise<R>;
582
+ get<T = any, R = AxiosResponse<T>, D = any>(
583
+ url: string,
584
+ config?: AxiosRequestConfig<D>
585
+ ): Promise<R>;
586
+ delete<T = any, R = AxiosResponse<T>, D = any>(
587
+ url: string,
588
+ config?: AxiosRequestConfig<D>
589
+ ): Promise<R>;
590
+ head<T = any, R = AxiosResponse<T>, D = any>(
591
+ url: string,
592
+ config?: AxiosRequestConfig<D>
593
+ ): Promise<R>;
594
+ options<T = any, R = AxiosResponse<T>, D = any>(
595
+ url: string,
596
+ config?: AxiosRequestConfig<D>
597
+ ): Promise<R>;
598
+ post<T = any, R = AxiosResponse<T>, D = any>(
599
+ url: string,
600
+ data?: D,
601
+ config?: AxiosRequestConfig<D>
602
+ ): Promise<R>;
603
+ put<T = any, R = AxiosResponse<T>, D = any>(
604
+ url: string,
605
+ data?: D,
606
+ config?: AxiosRequestConfig<D>
607
+ ): Promise<R>;
608
+ patch<T = any, R = AxiosResponse<T>, D = any>(
609
+ url: string,
610
+ data?: D,
611
+ config?: AxiosRequestConfig<D>
612
+ ): Promise<R>;
613
+ postForm<T = any, R = AxiosResponse<T>, D = any>(
614
+ url: string,
615
+ data?: D,
616
+ config?: AxiosRequestConfig<D>
617
+ ): Promise<R>;
618
+ putForm<T = any, R = AxiosResponse<T>, D = any>(
619
+ url: string,
620
+ data?: D,
621
+ config?: AxiosRequestConfig<D>
622
+ ): Promise<R>;
623
+ patchForm<T = any, R = AxiosResponse<T>, D = any>(
624
+ url: string,
625
+ data?: D,
626
+ config?: AxiosRequestConfig<D>
627
+ ): Promise<R>;
628
+ }
629
+
630
+ interface AxiosInstance extends Axios {
631
+ <T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
632
+ <T = any, R = AxiosResponse<T>, D = any>(
633
+ url: string,
634
+ config?: AxiosRequestConfig<D>
635
+ ): Promise<R>;
636
+
637
+ defaults: Omit<AxiosDefaults, 'headers'> & {
638
+ headers: HeadersDefaults & {
639
+ [key: string]: AxiosHeaderValue;
640
+ };
641
+ };
642
+ }
643
+
644
+ interface GenericFormData {
645
+ append(name: string, value: any, options?: any): any;
644
646
  }
645
647
 
646
- declare global {
647
- var environment: IEnv;
648
- var moduleId: IModuleId | null;
649
- var moduleUrls: {
650
- [id in IModuleId]?: string;
651
- };
652
- var axiosInstance: AxiosInstance;
653
- var useNavigate: () => NavigateFunction;
654
- var useLocation: () => Location;
655
- var Link: React.ForwardRefExoticComponent<
656
- LinkProps & React.RefAttributes<HTMLAnchorElement>
657
- >;
658
- var appVersion: string | undefined;
659
- var api: {
660
- apiUrl: string;
661
- clientId: string;
662
- authScope?: string;
663
- additionalScopes?: string[];
664
- redirectUrl?: string;
665
- };
666
- var zE: {
667
- show: () => void;
668
- hide: () => void;
669
- activate: () => void;
670
- setLocale: (locale: string) => void;
671
- };
648
+ declare global {
649
+ var environment: IEnv;
650
+ var moduleId: IModuleId | null;
651
+ var moduleUrls: {
652
+ [id in IModuleId]?: string;
653
+ };
654
+ var axiosInstance: AxiosInstance;
655
+ var useNavigate: () => NavigateFunction;
656
+ var useLocation: () => Location;
657
+ var Link: React.ForwardRefExoticComponent<
658
+ LinkProps & React.RefAttributes<HTMLAnchorElement>
659
+ >;
660
+ var appVersion: string | undefined;
661
+ var api: {
662
+ apiUrl: string;
663
+ clientId: string;
664
+ authScope?: string;
665
+ additionalScopes?: string[];
666
+ redirectUrl?: string;
667
+ };
668
+ var zE: {
669
+ show: () => void;
670
+ hide: () => void;
671
+ activate: () => void;
672
+ setLocale: (locale: string) => void;
673
+ };
672
674
  }