@angular/common 19.2.0-next.3 → 19.2.0

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/http/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.0-next.3
2
+ * @license Angular v19.2.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -9,9 +9,14 @@ import { EnvironmentInjector } from '@angular/core';
9
9
  import { EnvironmentProviders } from '@angular/core';
10
10
  import * as i0 from '@angular/core';
11
11
  import { InjectionToken } from '@angular/core';
12
+ import type { Injector } from '@angular/core';
12
13
  import { ModuleWithProviders } from '@angular/core';
13
14
  import { Observable } from 'rxjs';
14
15
  import { Provider } from '@angular/core';
16
+ import type { ResourceRef } from '@angular/core';
17
+ import type { Signal } from '@angular/core';
18
+ import type { ValueEqualityFn } from '@angular/core';
19
+ import type { WritableResource } from '@angular/core';
15
20
  import { XhrFactory } from '@angular/common';
16
21
 
17
22
  /**
@@ -97,8 +102,7 @@ export declare abstract class HttpBackend implements HttpHandler {
97
102
  * single data type of the response.
98
103
  * A single overload version of the method handles each response type.
99
104
  * The value of `responseType` cannot be a union, as the combined signature could imply.
100
-
101
- * TODO(adev): review
105
+ *
102
106
  * @usageNotes
103
107
  *
104
108
  * ### HTTP Request Example
@@ -163,14 +167,10 @@ export declare class HttpClient {
163
167
  */
164
168
  request(method: string, url: string, options: {
165
169
  body?: any;
166
- headers?: HttpHeaders | {
167
- [header: string]: string | string[];
168
- };
170
+ headers?: HttpHeaders | Record<string, string | string[]>;
169
171
  context?: HttpContext;
170
172
  observe?: 'body';
171
- params?: HttpParams | {
172
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
173
- };
173
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
174
174
  reportProgress?: boolean;
175
175
  responseType: 'arraybuffer';
176
176
  withCredentials?: boolean;
@@ -190,14 +190,10 @@ export declare class HttpClient {
190
190
  */
191
191
  request(method: string, url: string, options: {
192
192
  body?: any;
193
- headers?: HttpHeaders | {
194
- [header: string]: string | string[];
195
- };
193
+ headers?: HttpHeaders | Record<string, string | string[]>;
196
194
  context?: HttpContext;
197
195
  observe?: 'body';
198
- params?: HttpParams | {
199
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
200
- };
196
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
201
197
  reportProgress?: boolean;
202
198
  responseType: 'blob';
203
199
  withCredentials?: boolean;
@@ -217,14 +213,10 @@ export declare class HttpClient {
217
213
  */
218
214
  request(method: string, url: string, options: {
219
215
  body?: any;
220
- headers?: HttpHeaders | {
221
- [header: string]: string | string[];
222
- };
216
+ headers?: HttpHeaders | Record<string, string | string[]>;
223
217
  context?: HttpContext;
224
218
  observe?: 'body';
225
- params?: HttpParams | {
226
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
227
- };
219
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
228
220
  reportProgress?: boolean;
229
221
  responseType: 'text';
230
222
  withCredentials?: boolean;
@@ -245,13 +237,9 @@ export declare class HttpClient {
245
237
  */
246
238
  request(method: string, url: string, options: {
247
239
  body?: any;
248
- headers?: HttpHeaders | {
249
- [header: string]: string | string[];
250
- };
240
+ headers?: HttpHeaders | Record<string, string | string[]>;
251
241
  context?: HttpContext;
252
- params?: HttpParams | {
253
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
254
- };
242
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
255
243
  observe: 'events';
256
244
  reportProgress?: boolean;
257
245
  responseType: 'arraybuffer';
@@ -273,14 +261,10 @@ export declare class HttpClient {
273
261
  */
274
262
  request(method: string, url: string, options: {
275
263
  body?: any;
276
- headers?: HttpHeaders | {
277
- [header: string]: string | string[];
278
- };
264
+ headers?: HttpHeaders | Record<string, string | string[]>;
279
265
  observe: 'events';
280
266
  context?: HttpContext;
281
- params?: HttpParams | {
282
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
283
- };
267
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
284
268
  reportProgress?: boolean;
285
269
  responseType: 'blob';
286
270
  withCredentials?: boolean;
@@ -301,14 +285,10 @@ export declare class HttpClient {
301
285
  */
302
286
  request(method: string, url: string, options: {
303
287
  body?: any;
304
- headers?: HttpHeaders | {
305
- [header: string]: string | string[];
306
- };
288
+ headers?: HttpHeaders | Record<string, string | string[]>;
307
289
  observe: 'events';
308
290
  context?: HttpContext;
309
- params?: HttpParams | {
310
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
311
- };
291
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
312
292
  reportProgress?: boolean;
313
293
  responseType: 'text';
314
294
  withCredentials?: boolean;
@@ -329,15 +309,11 @@ export declare class HttpClient {
329
309
  */
330
310
  request(method: string, url: string, options: {
331
311
  body?: any;
332
- headers?: HttpHeaders | {
333
- [header: string]: string | string[];
334
- };
312
+ headers?: HttpHeaders | Record<string, string | string[]>;
335
313
  context?: HttpContext;
336
314
  reportProgress?: boolean;
337
315
  observe: 'events';
338
- params?: HttpParams | {
339
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
340
- };
316
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
341
317
  responseType?: 'json';
342
318
  withCredentials?: boolean;
343
319
  transferCache?: {
@@ -357,15 +333,11 @@ export declare class HttpClient {
357
333
  */
358
334
  request<R>(method: string, url: string, options: {
359
335
  body?: any;
360
- headers?: HttpHeaders | {
361
- [header: string]: string | string[];
362
- };
336
+ headers?: HttpHeaders | Record<string, string | string[]>;
363
337
  context?: HttpContext;
364
338
  reportProgress?: boolean;
365
339
  observe: 'events';
366
- params?: HttpParams | {
367
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
368
- };
340
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
369
341
  responseType?: 'json';
370
342
  withCredentials?: boolean;
371
343
  transferCache?: {
@@ -384,14 +356,10 @@ export declare class HttpClient {
384
356
  */
385
357
  request(method: string, url: string, options: {
386
358
  body?: any;
387
- headers?: HttpHeaders | {
388
- [header: string]: string | string[];
389
- };
359
+ headers?: HttpHeaders | Record<string, string | string[]>;
390
360
  observe: 'response';
391
361
  context?: HttpContext;
392
- params?: HttpParams | {
393
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
394
- };
362
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
395
363
  reportProgress?: boolean;
396
364
  responseType: 'arraybuffer';
397
365
  withCredentials?: boolean;
@@ -410,14 +378,10 @@ export declare class HttpClient {
410
378
  */
411
379
  request(method: string, url: string, options: {
412
380
  body?: any;
413
- headers?: HttpHeaders | {
414
- [header: string]: string | string[];
415
- };
381
+ headers?: HttpHeaders | Record<string, string | string[]>;
416
382
  observe: 'response';
417
383
  context?: HttpContext;
418
- params?: HttpParams | {
419
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
420
- };
384
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
421
385
  reportProgress?: boolean;
422
386
  responseType: 'blob';
423
387
  withCredentials?: boolean;
@@ -437,14 +401,10 @@ export declare class HttpClient {
437
401
  */
438
402
  request(method: string, url: string, options: {
439
403
  body?: any;
440
- headers?: HttpHeaders | {
441
- [header: string]: string | string[];
442
- };
404
+ headers?: HttpHeaders | Record<string, string | string[]>;
443
405
  observe: 'response';
444
406
  context?: HttpContext;
445
- params?: HttpParams | {
446
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
447
- };
407
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
448
408
  reportProgress?: boolean;
449
409
  responseType: 'text';
450
410
  withCredentials?: boolean;
@@ -465,15 +425,11 @@ export declare class HttpClient {
465
425
  */
466
426
  request(method: string, url: string, options: {
467
427
  body?: any;
468
- headers?: HttpHeaders | {
469
- [header: string]: string | string[];
470
- };
428
+ headers?: HttpHeaders | Record<string, string | string[]>;
471
429
  context?: HttpContext;
472
430
  reportProgress?: boolean;
473
431
  observe: 'response';
474
- params?: HttpParams | {
475
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
476
- };
432
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
477
433
  responseType?: 'json';
478
434
  withCredentials?: boolean;
479
435
  }): Observable<HttpResponse<Object>>;
@@ -489,15 +445,11 @@ export declare class HttpClient {
489
445
  */
490
446
  request<R>(method: string, url: string, options: {
491
447
  body?: any;
492
- headers?: HttpHeaders | {
493
- [header: string]: string | string[];
494
- };
448
+ headers?: HttpHeaders | Record<string, string | string[]>;
495
449
  context?: HttpContext;
496
450
  reportProgress?: boolean;
497
451
  observe: 'response';
498
- params?: HttpParams | {
499
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
500
- };
452
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
501
453
  responseType?: 'json';
502
454
  withCredentials?: boolean;
503
455
  transferCache?: {
@@ -516,14 +468,10 @@ export declare class HttpClient {
516
468
  */
517
469
  request(method: string, url: string, options?: {
518
470
  body?: any;
519
- headers?: HttpHeaders | {
520
- [header: string]: string | string[];
521
- };
471
+ headers?: HttpHeaders | Record<string, string | string[]>;
522
472
  context?: HttpContext;
523
473
  observe?: 'body';
524
- params?: HttpParams | {
525
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
526
- };
474
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
527
475
  responseType?: 'json';
528
476
  reportProgress?: boolean;
529
477
  withCredentials?: boolean;
@@ -543,14 +491,10 @@ export declare class HttpClient {
543
491
  */
544
492
  request<R>(method: string, url: string, options?: {
545
493
  body?: any;
546
- headers?: HttpHeaders | {
547
- [header: string]: string | string[];
548
- };
494
+ headers?: HttpHeaders | Record<string, string | string[]>;
549
495
  context?: HttpContext;
550
496
  observe?: 'body';
551
- params?: HttpParams | {
552
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
553
- };
497
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
554
498
  responseType?: 'json';
555
499
  reportProgress?: boolean;
556
500
  withCredentials?: boolean;
@@ -569,13 +513,9 @@ export declare class HttpClient {
569
513
  */
570
514
  request(method: string, url: string, options?: {
571
515
  body?: any;
572
- headers?: HttpHeaders | {
573
- [header: string]: string | string[];
574
- };
516
+ headers?: HttpHeaders | Record<string, string | string[]>;
575
517
  context?: HttpContext;
576
- params?: HttpParams | {
577
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
578
- };
518
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
579
519
  observe?: 'body' | 'events' | 'response';
580
520
  reportProgress?: boolean;
581
521
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
@@ -594,14 +534,10 @@ export declare class HttpClient {
594
534
  * @return An `Observable` of the response body as an `ArrayBuffer`.
595
535
  */
596
536
  delete(url: string, options: {
597
- headers?: HttpHeaders | {
598
- [header: string]: string | string[];
599
- };
537
+ headers?: HttpHeaders | Record<string, string | string[]>;
600
538
  context?: HttpContext;
601
539
  observe?: 'body';
602
- params?: HttpParams | {
603
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
604
- };
540
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
605
541
  reportProgress?: boolean;
606
542
  responseType: 'arraybuffer';
607
543
  withCredentials?: boolean;
@@ -617,14 +553,10 @@ export declare class HttpClient {
617
553
  * @return An `Observable` of the response body as a `Blob`.
618
554
  */
619
555
  delete(url: string, options: {
620
- headers?: HttpHeaders | {
621
- [header: string]: string | string[];
622
- };
556
+ headers?: HttpHeaders | Record<string, string | string[]>;
623
557
  context?: HttpContext;
624
558
  observe?: 'body';
625
- params?: HttpParams | {
626
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
627
- };
559
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
628
560
  reportProgress?: boolean;
629
561
  responseType: 'blob';
630
562
  withCredentials?: boolean;
@@ -640,14 +572,10 @@ export declare class HttpClient {
640
572
  * @return An `Observable` of the response, with the response body of type string.
641
573
  */
642
574
  delete(url: string, options: {
643
- headers?: HttpHeaders | {
644
- [header: string]: string | string[];
645
- };
575
+ headers?: HttpHeaders | Record<string, string | string[]>;
646
576
  context?: HttpContext;
647
577
  observe?: 'body';
648
- params?: HttpParams | {
649
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
650
- };
578
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
651
579
  reportProgress?: boolean;
652
580
  responseType: 'text';
653
581
  withCredentials?: boolean;
@@ -664,14 +592,10 @@ export declare class HttpClient {
664
592
  * with response body as an `ArrayBuffer`.
665
593
  */
666
594
  delete(url: string, options: {
667
- headers?: HttpHeaders | {
668
- [header: string]: string | string[];
669
- };
595
+ headers?: HttpHeaders | Record<string, string | string[]>;
670
596
  observe: 'events';
671
597
  context?: HttpContext;
672
- params?: HttpParams | {
673
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
674
- };
598
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
675
599
  reportProgress?: boolean;
676
600
  responseType: 'arraybuffer';
677
601
  withCredentials?: boolean;
@@ -688,14 +612,10 @@ export declare class HttpClient {
688
612
  * `Blob`.
689
613
  */
690
614
  delete(url: string, options: {
691
- headers?: HttpHeaders | {
692
- [header: string]: string | string[];
693
- };
615
+ headers?: HttpHeaders | Record<string, string | string[]>;
694
616
  observe: 'events';
695
617
  context?: HttpContext;
696
- params?: HttpParams | {
697
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
698
- };
618
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
699
619
  reportProgress?: boolean;
700
620
  responseType: 'blob';
701
621
  withCredentials?: boolean;
@@ -712,14 +632,10 @@ export declare class HttpClient {
712
632
  * body of type string.
713
633
  */
714
634
  delete(url: string, options: {
715
- headers?: HttpHeaders | {
716
- [header: string]: string | string[];
717
- };
635
+ headers?: HttpHeaders | Record<string, string | string[]>;
718
636
  observe: 'events';
719
637
  context?: HttpContext;
720
- params?: HttpParams | {
721
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
722
- };
638
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
723
639
  reportProgress?: boolean;
724
640
  responseType: 'text';
725
641
  withCredentials?: boolean;
@@ -736,14 +652,10 @@ export declare class HttpClient {
736
652
  * type `Object`.
737
653
  */
738
654
  delete(url: string, options: {
739
- headers?: HttpHeaders | {
740
- [header: string]: string | string[];
741
- };
655
+ headers?: HttpHeaders | Record<string, string | string[]>;
742
656
  observe: 'events';
743
657
  context?: HttpContext;
744
- params?: HttpParams | {
745
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
746
- };
658
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
747
659
  reportProgress?: boolean;
748
660
  responseType?: 'json';
749
661
  withCredentials?: boolean;
@@ -760,14 +672,10 @@ export declare class HttpClient {
760
672
  * body in the requested type.
761
673
  */
762
674
  delete<T>(url: string, options: {
763
- headers?: HttpHeaders | {
764
- [header: string]: string | string[];
765
- };
675
+ headers?: HttpHeaders | Record<string, string | string[]>;
766
676
  observe: 'events';
767
677
  context?: HttpContext;
768
- params?: HttpParams | {
769
- [param: string]: string | number | boolean | (string | number | boolean)[];
770
- };
678
+ params?: HttpParams | Record<string, string | number | boolean | (string | number | boolean)[]>;
771
679
  reportProgress?: boolean;
772
680
  responseType?: 'json';
773
681
  withCredentials?: boolean;
@@ -783,14 +691,10 @@ export declare class HttpClient {
783
691
  * @return An `Observable` of the full `HttpResponse`, with the response body as an `ArrayBuffer`.
784
692
  */
785
693
  delete(url: string, options: {
786
- headers?: HttpHeaders | {
787
- [header: string]: string | string[];
788
- };
694
+ headers?: HttpHeaders | Record<string, string | string[]>;
789
695
  observe: 'response';
790
696
  context?: HttpContext;
791
- params?: HttpParams | {
792
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
793
- };
697
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
794
698
  reportProgress?: boolean;
795
699
  responseType: 'arraybuffer';
796
700
  withCredentials?: boolean;
@@ -806,14 +710,10 @@ export declare class HttpClient {
806
710
  * @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.
807
711
  */
808
712
  delete(url: string, options: {
809
- headers?: HttpHeaders | {
810
- [header: string]: string | string[];
811
- };
713
+ headers?: HttpHeaders | Record<string, string | string[]>;
812
714
  observe: 'response';
813
715
  context?: HttpContext;
814
- params?: HttpParams | {
815
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
816
- };
716
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
817
717
  reportProgress?: boolean;
818
718
  responseType: 'blob';
819
719
  withCredentials?: boolean;
@@ -829,14 +729,10 @@ export declare class HttpClient {
829
729
  * @return An `Observable` of the full `HttpResponse`, with the response body of type string.
830
730
  */
831
731
  delete(url: string, options: {
832
- headers?: HttpHeaders | {
833
- [header: string]: string | string[];
834
- };
732
+ headers?: HttpHeaders | Record<string, string | string[]>;
835
733
  observe: 'response';
836
734
  context?: HttpContext;
837
- params?: HttpParams | {
838
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
839
- };
735
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
840
736
  reportProgress?: boolean;
841
737
  responseType: 'text';
842
738
  withCredentials?: boolean;
@@ -853,14 +749,10 @@ export declare class HttpClient {
853
749
  *
854
750
  */
855
751
  delete(url: string, options: {
856
- headers?: HttpHeaders | {
857
- [header: string]: string | string[];
858
- };
752
+ headers?: HttpHeaders | Record<string, string | string[]>;
859
753
  observe: 'response';
860
754
  context?: HttpContext;
861
- params?: HttpParams | {
862
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
863
- };
755
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
864
756
  reportProgress?: boolean;
865
757
  responseType?: 'json';
866
758
  withCredentials?: boolean;
@@ -876,14 +768,10 @@ export declare class HttpClient {
876
768
  * @return An `Observable` of the `HttpResponse`, with the response body of the requested type.
877
769
  */
878
770
  delete<T>(url: string, options: {
879
- headers?: HttpHeaders | {
880
- [header: string]: string | string[];
881
- };
771
+ headers?: HttpHeaders | Record<string, string | string[]>;
882
772
  observe: 'response';
883
773
  context?: HttpContext;
884
- params?: HttpParams | {
885
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
886
- };
774
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
887
775
  reportProgress?: boolean;
888
776
  responseType?: 'json';
889
777
  withCredentials?: boolean;
@@ -899,14 +787,10 @@ export declare class HttpClient {
899
787
  * @return An `Observable` of the response, with the response body of type `Object`.
900
788
  */
901
789
  delete(url: string, options?: {
902
- headers?: HttpHeaders | {
903
- [header: string]: string | string[];
904
- };
790
+ headers?: HttpHeaders | Record<string, string | string[]>;
905
791
  context?: HttpContext;
906
792
  observe?: 'body';
907
- params?: HttpParams | {
908
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
909
- };
793
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
910
794
  reportProgress?: boolean;
911
795
  responseType?: 'json';
912
796
  withCredentials?: boolean;
@@ -922,14 +806,10 @@ export declare class HttpClient {
922
806
  * @return An `Observable` of the `HttpResponse`, with response body in the requested type.
923
807
  */
924
808
  delete<T>(url: string, options?: {
925
- headers?: HttpHeaders | {
926
- [header: string]: string | string[];
927
- };
809
+ headers?: HttpHeaders | Record<string, string | string[]>;
928
810
  context?: HttpContext;
929
811
  observe?: 'body';
930
- params?: HttpParams | {
931
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
932
- };
812
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
933
813
  reportProgress?: boolean;
934
814
  responseType?: 'json';
935
815
  withCredentials?: boolean;
@@ -945,14 +825,10 @@ export declare class HttpClient {
945
825
  * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
946
826
  */
947
827
  get(url: string, options: {
948
- headers?: HttpHeaders | {
949
- [header: string]: string | string[];
950
- };
828
+ headers?: HttpHeaders | Record<string, string | string[]>;
951
829
  context?: HttpContext;
952
830
  observe?: 'body';
953
- params?: HttpParams | {
954
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
955
- };
831
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
956
832
  reportProgress?: boolean;
957
833
  responseType: 'arraybuffer';
958
834
  withCredentials?: boolean;
@@ -970,14 +846,10 @@ export declare class HttpClient {
970
846
  * @return An `Observable` of the response, with the response body as a `Blob`.
971
847
  */
972
848
  get(url: string, options: {
973
- headers?: HttpHeaders | {
974
- [header: string]: string | string[];
975
- };
849
+ headers?: HttpHeaders | Record<string, string | string[]>;
976
850
  context?: HttpContext;
977
851
  observe?: 'body';
978
- params?: HttpParams | {
979
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
980
- };
852
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
981
853
  reportProgress?: boolean;
982
854
  responseType: 'blob';
983
855
  withCredentials?: boolean;
@@ -995,14 +867,10 @@ export declare class HttpClient {
995
867
  * @return An `Observable` of the response, with the response body of type string.
996
868
  */
997
869
  get(url: string, options: {
998
- headers?: HttpHeaders | {
999
- [header: string]: string | string[];
1000
- };
870
+ headers?: HttpHeaders | Record<string, string | string[]>;
1001
871
  context?: HttpContext;
1002
872
  observe?: 'body';
1003
- params?: HttpParams | {
1004
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1005
- };
873
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1006
874
  reportProgress?: boolean;
1007
875
  responseType: 'text';
1008
876
  withCredentials?: boolean;
@@ -1021,14 +889,10 @@ export declare class HttpClient {
1021
889
  * body as an `ArrayBuffer`.
1022
890
  */
1023
891
  get(url: string, options: {
1024
- headers?: HttpHeaders | {
1025
- [header: string]: string | string[];
1026
- };
892
+ headers?: HttpHeaders | Record<string, string | string[]>;
1027
893
  observe: 'events';
1028
894
  context?: HttpContext;
1029
- params?: HttpParams | {
1030
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1031
- };
895
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1032
896
  reportProgress?: boolean;
1033
897
  responseType: 'arraybuffer';
1034
898
  withCredentials?: boolean;
@@ -1046,14 +910,10 @@ export declare class HttpClient {
1046
910
  * @return An `Observable` of the response, with the response body as a `Blob`.
1047
911
  */
1048
912
  get(url: string, options: {
1049
- headers?: HttpHeaders | {
1050
- [header: string]: string | string[];
1051
- };
913
+ headers?: HttpHeaders | Record<string, string | string[]>;
1052
914
  observe: 'events';
1053
915
  context?: HttpContext;
1054
- params?: HttpParams | {
1055
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1056
- };
916
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1057
917
  reportProgress?: boolean;
1058
918
  responseType: 'blob';
1059
919
  withCredentials?: boolean;
@@ -1071,14 +931,10 @@ export declare class HttpClient {
1071
931
  * @return An `Observable` of the response, with the response body of type string.
1072
932
  */
1073
933
  get(url: string, options: {
1074
- headers?: HttpHeaders | {
1075
- [header: string]: string | string[];
1076
- };
934
+ headers?: HttpHeaders | Record<string, string | string[]>;
1077
935
  observe: 'events';
1078
936
  context?: HttpContext;
1079
- params?: HttpParams | {
1080
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1081
- };
937
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1082
938
  reportProgress?: boolean;
1083
939
  responseType: 'text';
1084
940
  withCredentials?: boolean;
@@ -1096,14 +952,10 @@ export declare class HttpClient {
1096
952
  * @return An `Observable` of the response, with the response body of type `Object`.
1097
953
  */
1098
954
  get(url: string, options: {
1099
- headers?: HttpHeaders | {
1100
- [header: string]: string | string[];
1101
- };
955
+ headers?: HttpHeaders | Record<string, string | string[]>;
1102
956
  observe: 'events';
1103
957
  context?: HttpContext;
1104
- params?: HttpParams | {
1105
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1106
- };
958
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1107
959
  reportProgress?: boolean;
1108
960
  responseType?: 'json';
1109
961
  withCredentials?: boolean;
@@ -1121,14 +973,10 @@ export declare class HttpClient {
1121
973
  * @return An `Observable` of the response, with a response body in the requested type.
1122
974
  */
1123
975
  get<T>(url: string, options: {
1124
- headers?: HttpHeaders | {
1125
- [header: string]: string | string[];
1126
- };
976
+ headers?: HttpHeaders | Record<string, string | string[]>;
1127
977
  observe: 'events';
1128
978
  context?: HttpContext;
1129
- params?: HttpParams | {
1130
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1131
- };
979
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1132
980
  reportProgress?: boolean;
1133
981
  responseType?: 'json';
1134
982
  withCredentials?: boolean;
@@ -1147,14 +995,10 @@ export declare class HttpClient {
1147
995
  * with the response body as an `ArrayBuffer`.
1148
996
  */
1149
997
  get(url: string, options: {
1150
- headers?: HttpHeaders | {
1151
- [header: string]: string | string[];
1152
- };
998
+ headers?: HttpHeaders | Record<string, string | string[]>;
1153
999
  observe: 'response';
1154
1000
  context?: HttpContext;
1155
- params?: HttpParams | {
1156
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1157
- };
1001
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1158
1002
  reportProgress?: boolean;
1159
1003
  responseType: 'arraybuffer';
1160
1004
  withCredentials?: boolean;
@@ -1173,14 +1017,10 @@ export declare class HttpClient {
1173
1017
  * with the response body as a `Blob`.
1174
1018
  */
1175
1019
  get(url: string, options: {
1176
- headers?: HttpHeaders | {
1177
- [header: string]: string | string[];
1178
- };
1020
+ headers?: HttpHeaders | Record<string, string | string[]>;
1179
1021
  observe: 'response';
1180
1022
  context?: HttpContext;
1181
- params?: HttpParams | {
1182
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1183
- };
1023
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1184
1024
  reportProgress?: boolean;
1185
1025
  responseType: 'blob';
1186
1026
  withCredentials?: boolean;
@@ -1199,14 +1039,10 @@ export declare class HttpClient {
1199
1039
  * with the response body of type string.
1200
1040
  */
1201
1041
  get(url: string, options: {
1202
- headers?: HttpHeaders | {
1203
- [header: string]: string | string[];
1204
- };
1042
+ headers?: HttpHeaders | Record<string, string | string[]>;
1205
1043
  observe: 'response';
1206
1044
  context?: HttpContext;
1207
- params?: HttpParams | {
1208
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1209
- };
1045
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1210
1046
  reportProgress?: boolean;
1211
1047
  responseType: 'text';
1212
1048
  withCredentials?: boolean;
@@ -1225,14 +1061,10 @@ export declare class HttpClient {
1225
1061
  * with the response body of type `Object`.
1226
1062
  */
1227
1063
  get(url: string, options: {
1228
- headers?: HttpHeaders | {
1229
- [header: string]: string | string[];
1230
- };
1064
+ headers?: HttpHeaders | Record<string, string | string[]>;
1231
1065
  observe: 'response';
1232
1066
  context?: HttpContext;
1233
- params?: HttpParams | {
1234
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1235
- };
1067
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1236
1068
  reportProgress?: boolean;
1237
1069
  responseType?: 'json';
1238
1070
  withCredentials?: boolean;
@@ -1251,14 +1083,10 @@ export declare class HttpClient {
1251
1083
  * with a response body in the requested type.
1252
1084
  */
1253
1085
  get<T>(url: string, options: {
1254
- headers?: HttpHeaders | {
1255
- [header: string]: string | string[];
1256
- };
1086
+ headers?: HttpHeaders | Record<string, string | string[]>;
1257
1087
  observe: 'response';
1258
1088
  context?: HttpContext;
1259
- params?: HttpParams | {
1260
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1261
- };
1089
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1262
1090
  reportProgress?: boolean;
1263
1091
  responseType?: 'json';
1264
1092
  withCredentials?: boolean;
@@ -1277,14 +1105,10 @@ export declare class HttpClient {
1277
1105
  * @return An `Observable` of the response body as a JavaScript object.
1278
1106
  */
1279
1107
  get(url: string, options?: {
1280
- headers?: HttpHeaders | {
1281
- [header: string]: string | string[];
1282
- };
1108
+ headers?: HttpHeaders | Record<string, string | string[]>;
1283
1109
  context?: HttpContext;
1284
1110
  observe?: 'body';
1285
- params?: HttpParams | {
1286
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1287
- };
1111
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1288
1112
  reportProgress?: boolean;
1289
1113
  responseType?: 'json';
1290
1114
  withCredentials?: boolean;
@@ -1302,14 +1126,10 @@ export declare class HttpClient {
1302
1126
  * @return An `Observable` of the `HttpResponse`, with a response body in the requested type.
1303
1127
  */
1304
1128
  get<T>(url: string, options?: {
1305
- headers?: HttpHeaders | {
1306
- [header: string]: string | string[];
1307
- };
1129
+ headers?: HttpHeaders | Record<string, string | string[]>;
1308
1130
  context?: HttpContext;
1309
1131
  observe?: 'body';
1310
- params?: HttpParams | {
1311
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1312
- };
1132
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1313
1133
  reportProgress?: boolean;
1314
1134
  responseType?: 'json';
1315
1135
  withCredentials?: boolean;
@@ -1327,14 +1147,10 @@ export declare class HttpClient {
1327
1147
  * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
1328
1148
  */
1329
1149
  head(url: string, options: {
1330
- headers?: HttpHeaders | {
1331
- [header: string]: string | string[];
1332
- };
1150
+ headers?: HttpHeaders | Record<string, string | string[]>;
1333
1151
  context?: HttpContext;
1334
1152
  observe?: 'body';
1335
- params?: HttpParams | {
1336
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1337
- };
1153
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1338
1154
  reportProgress?: boolean;
1339
1155
  responseType: 'arraybuffer';
1340
1156
  withCredentials?: boolean;
@@ -1352,14 +1168,10 @@ export declare class HttpClient {
1352
1168
  * @return An `Observable` of the response, with the response body as a `Blob`.
1353
1169
  */
1354
1170
  head(url: string, options: {
1355
- headers?: HttpHeaders | {
1356
- [header: string]: string | string[];
1357
- };
1171
+ headers?: HttpHeaders | Record<string, string | string[]>;
1358
1172
  context?: HttpContext;
1359
1173
  observe?: 'body';
1360
- params?: HttpParams | {
1361
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1362
- };
1174
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1363
1175
  reportProgress?: boolean;
1364
1176
  responseType: 'blob';
1365
1177
  withCredentials?: boolean;
@@ -1377,14 +1189,10 @@ export declare class HttpClient {
1377
1189
  * @return An `Observable` of the response, with the response body of type string.
1378
1190
  */
1379
1191
  head(url: string, options: {
1380
- headers?: HttpHeaders | {
1381
- [header: string]: string | string[];
1382
- };
1192
+ headers?: HttpHeaders | Record<string, string | string[]>;
1383
1193
  context?: HttpContext;
1384
1194
  observe?: 'body';
1385
- params?: HttpParams | {
1386
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1387
- };
1195
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1388
1196
  reportProgress?: boolean;
1389
1197
  responseType: 'text';
1390
1198
  withCredentials?: boolean;
@@ -1403,14 +1211,10 @@ export declare class HttpClient {
1403
1211
  * with the response body as an `ArrayBuffer`.
1404
1212
  */
1405
1213
  head(url: string, options: {
1406
- headers?: HttpHeaders | {
1407
- [header: string]: string | string[];
1408
- };
1214
+ headers?: HttpHeaders | Record<string, string | string[]>;
1409
1215
  observe: 'events';
1410
1216
  context?: HttpContext;
1411
- params?: HttpParams | {
1412
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1413
- };
1217
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1414
1218
  reportProgress?: boolean;
1415
1219
  responseType: 'arraybuffer';
1416
1220
  withCredentials?: boolean;
@@ -1429,14 +1233,10 @@ export declare class HttpClient {
1429
1233
  * with the response body as a `Blob`.
1430
1234
  */
1431
1235
  head(url: string, options: {
1432
- headers?: HttpHeaders | {
1433
- [header: string]: string | string[];
1434
- };
1236
+ headers?: HttpHeaders | Record<string, string | string[]>;
1435
1237
  observe: 'events';
1436
1238
  context?: HttpContext;
1437
- params?: HttpParams | {
1438
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1439
- };
1239
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1440
1240
  reportProgress?: boolean;
1441
1241
  responseType: 'blob';
1442
1242
  withCredentials?: boolean;
@@ -1455,14 +1255,10 @@ export declare class HttpClient {
1455
1255
  * string.
1456
1256
  */
1457
1257
  head(url: string, options: {
1458
- headers?: HttpHeaders | {
1459
- [header: string]: string | string[];
1460
- };
1258
+ headers?: HttpHeaders | Record<string, string | string[]>;
1461
1259
  observe: 'events';
1462
1260
  context?: HttpContext;
1463
- params?: HttpParams | {
1464
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1465
- };
1261
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1466
1262
  reportProgress?: boolean;
1467
1263
  responseType: 'text';
1468
1264
  withCredentials?: boolean;
@@ -1481,14 +1277,10 @@ export declare class HttpClient {
1481
1277
  * type `Object`.
1482
1278
  */
1483
1279
  head(url: string, options: {
1484
- headers?: HttpHeaders | {
1485
- [header: string]: string | string[];
1486
- };
1280
+ headers?: HttpHeaders | Record<string, string | string[]>;
1487
1281
  observe: 'events';
1488
1282
  context?: HttpContext;
1489
- params?: HttpParams | {
1490
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1491
- };
1283
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1492
1284
  reportProgress?: boolean;
1493
1285
  responseType?: 'json';
1494
1286
  withCredentials?: boolean;
@@ -1507,14 +1299,10 @@ export declare class HttpClient {
1507
1299
  * @param options The HTTP options to send with the request.
1508
1300
  */
1509
1301
  head<T>(url: string, options: {
1510
- headers?: HttpHeaders | {
1511
- [header: string]: string | string[];
1512
- };
1302
+ headers?: HttpHeaders | Record<string, string | string[]>;
1513
1303
  observe: 'events';
1514
1304
  context?: HttpContext;
1515
- params?: HttpParams | {
1516
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1517
- };
1305
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1518
1306
  reportProgress?: boolean;
1519
1307
  responseType?: 'json';
1520
1308
  withCredentials?: boolean;
@@ -1533,14 +1321,10 @@ export declare class HttpClient {
1533
1321
  * with the response body as an `ArrayBuffer`.
1534
1322
  */
1535
1323
  head(url: string, options: {
1536
- headers?: HttpHeaders | {
1537
- [header: string]: string | string[];
1538
- };
1324
+ headers?: HttpHeaders | Record<string, string | string[]>;
1539
1325
  observe: 'response';
1540
1326
  context?: HttpContext;
1541
- params?: HttpParams | {
1542
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1543
- };
1327
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1544
1328
  reportProgress?: boolean;
1545
1329
  responseType: 'arraybuffer';
1546
1330
  withCredentials?: boolean;
@@ -1559,14 +1343,10 @@ export declare class HttpClient {
1559
1343
  * with the response body as a blob.
1560
1344
  */
1561
1345
  head(url: string, options: {
1562
- headers?: HttpHeaders | {
1563
- [header: string]: string | string[];
1564
- };
1346
+ headers?: HttpHeaders | Record<string, string | string[]>;
1565
1347
  observe: 'response';
1566
1348
  context?: HttpContext;
1567
- params?: HttpParams | {
1568
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1569
- };
1349
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1570
1350
  reportProgress?: boolean;
1571
1351
  responseType: 'blob';
1572
1352
  withCredentials?: boolean;
@@ -1585,14 +1365,10 @@ export declare class HttpClient {
1585
1365
  * with the response body of type string.
1586
1366
  */
1587
1367
  head(url: string, options: {
1588
- headers?: HttpHeaders | {
1589
- [header: string]: string | string[];
1590
- };
1368
+ headers?: HttpHeaders | Record<string, string | string[]>;
1591
1369
  observe: 'response';
1592
1370
  context?: HttpContext;
1593
- params?: HttpParams | {
1594
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1595
- };
1371
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1596
1372
  reportProgress?: boolean;
1597
1373
  responseType: 'text';
1598
1374
  withCredentials?: boolean;
@@ -1611,14 +1387,10 @@ export declare class HttpClient {
1611
1387
  * with the response body of type `Object`.
1612
1388
  */
1613
1389
  head(url: string, options: {
1614
- headers?: HttpHeaders | {
1615
- [header: string]: string | string[];
1616
- };
1390
+ headers?: HttpHeaders | Record<string, string | string[]>;
1617
1391
  observe: 'response';
1618
1392
  context?: HttpContext;
1619
- params?: HttpParams | {
1620
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1621
- };
1393
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1622
1394
  reportProgress?: boolean;
1623
1395
  responseType?: 'json';
1624
1396
  withCredentials?: boolean;
@@ -1637,14 +1409,10 @@ export declare class HttpClient {
1637
1409
  * with a response body of the requested type.
1638
1410
  */
1639
1411
  head<T>(url: string, options: {
1640
- headers?: HttpHeaders | {
1641
- [header: string]: string | string[];
1642
- };
1412
+ headers?: HttpHeaders | Record<string, string | string[]>;
1643
1413
  observe: 'response';
1644
1414
  context?: HttpContext;
1645
- params?: HttpParams | {
1646
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1647
- };
1415
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1648
1416
  reportProgress?: boolean;
1649
1417
  responseType?: 'json';
1650
1418
  withCredentials?: boolean;
@@ -1663,14 +1431,10 @@ export declare class HttpClient {
1663
1431
  * @return An `Observable` of the response, with the response body as an object parsed from JSON.
1664
1432
  */
1665
1433
  head(url: string, options?: {
1666
- headers?: HttpHeaders | {
1667
- [header: string]: string | string[];
1668
- };
1434
+ headers?: HttpHeaders | Record<string, string | string[]>;
1669
1435
  context?: HttpContext;
1670
1436
  observe?: 'body';
1671
- params?: HttpParams | {
1672
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1673
- };
1437
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1674
1438
  reportProgress?: boolean;
1675
1439
  responseType?: 'json';
1676
1440
  withCredentials?: boolean;
@@ -1689,14 +1453,10 @@ export declare class HttpClient {
1689
1453
  * with a response body of the given type.
1690
1454
  */
1691
1455
  head<T>(url: string, options?: {
1692
- headers?: HttpHeaders | {
1693
- [header: string]: string | string[];
1694
- };
1456
+ headers?: HttpHeaders | Record<string, string | string[]>;
1695
1457
  context?: HttpContext;
1696
1458
  observe?: 'body';
1697
- params?: HttpParams | {
1698
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1699
- };
1459
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1700
1460
  reportProgress?: boolean;
1701
1461
  responseType?: 'json';
1702
1462
  withCredentials?: boolean;
@@ -1736,14 +1496,10 @@ export declare class HttpClient {
1736
1496
  * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
1737
1497
  */
1738
1498
  options(url: string, options: {
1739
- headers?: HttpHeaders | {
1740
- [header: string]: string | string[];
1741
- };
1499
+ headers?: HttpHeaders | Record<string, string | string[]>;
1742
1500
  context?: HttpContext;
1743
1501
  observe?: 'body';
1744
- params?: HttpParams | {
1745
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1746
- };
1502
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1747
1503
  reportProgress?: boolean;
1748
1504
  responseType: 'arraybuffer';
1749
1505
  withCredentials?: boolean;
@@ -1758,14 +1514,10 @@ export declare class HttpClient {
1758
1514
  * @return An `Observable` of the response, with the response body as a `Blob`.
1759
1515
  */
1760
1516
  options(url: string, options: {
1761
- headers?: HttpHeaders | {
1762
- [header: string]: string | string[];
1763
- };
1517
+ headers?: HttpHeaders | Record<string, string | string[]>;
1764
1518
  context?: HttpContext;
1765
1519
  observe?: 'body';
1766
- params?: HttpParams | {
1767
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1768
- };
1520
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1769
1521
  reportProgress?: boolean;
1770
1522
  responseType: 'blob';
1771
1523
  withCredentials?: boolean;
@@ -1780,14 +1532,10 @@ export declare class HttpClient {
1780
1532
  * @return An `Observable` of the response, with the response body of type string.
1781
1533
  */
1782
1534
  options(url: string, options: {
1783
- headers?: HttpHeaders | {
1784
- [header: string]: string | string[];
1785
- };
1535
+ headers?: HttpHeaders | Record<string, string | string[]>;
1786
1536
  context?: HttpContext;
1787
1537
  observe?: 'body';
1788
- params?: HttpParams | {
1789
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1790
- };
1538
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1791
1539
  reportProgress?: boolean;
1792
1540
  responseType: 'text';
1793
1541
  withCredentials?: boolean;
@@ -1803,14 +1551,10 @@ export declare class HttpClient {
1803
1551
  * with the response body as an `ArrayBuffer`.
1804
1552
  */
1805
1553
  options(url: string, options: {
1806
- headers?: HttpHeaders | {
1807
- [header: string]: string | string[];
1808
- };
1554
+ headers?: HttpHeaders | Record<string, string | string[]>;
1809
1555
  observe: 'events';
1810
1556
  context?: HttpContext;
1811
- params?: HttpParams | {
1812
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1813
- };
1557
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1814
1558
  reportProgress?: boolean;
1815
1559
  responseType: 'arraybuffer';
1816
1560
  withCredentials?: boolean;
@@ -1826,14 +1570,10 @@ export declare class HttpClient {
1826
1570
  * with the response body as a `Blob`.
1827
1571
  */
1828
1572
  options(url: string, options: {
1829
- headers?: HttpHeaders | {
1830
- [header: string]: string | string[];
1831
- };
1573
+ headers?: HttpHeaders | Record<string, string | string[]>;
1832
1574
  observe: 'events';
1833
1575
  context?: HttpContext;
1834
- params?: HttpParams | {
1835
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1836
- };
1576
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1837
1577
  reportProgress?: boolean;
1838
1578
  responseType: 'blob';
1839
1579
  withCredentials?: boolean;
@@ -1849,14 +1589,10 @@ export declare class HttpClient {
1849
1589
  * with the response body of type string.
1850
1590
  */
1851
1591
  options(url: string, options: {
1852
- headers?: HttpHeaders | {
1853
- [header: string]: string | string[];
1854
- };
1592
+ headers?: HttpHeaders | Record<string, string | string[]>;
1855
1593
  observe: 'events';
1856
1594
  context?: HttpContext;
1857
- params?: HttpParams | {
1858
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1859
- };
1595
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1860
1596
  reportProgress?: boolean;
1861
1597
  responseType: 'text';
1862
1598
  withCredentials?: boolean;
@@ -1872,14 +1608,10 @@ export declare class HttpClient {
1872
1608
  * body of type `Object`.
1873
1609
  */
1874
1610
  options(url: string, options: {
1875
- headers?: HttpHeaders | {
1876
- [header: string]: string | string[];
1877
- };
1611
+ headers?: HttpHeaders | Record<string, string | string[]>;
1878
1612
  observe: 'events';
1879
1613
  context?: HttpContext;
1880
- params?: HttpParams | {
1881
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1882
- };
1614
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1883
1615
  reportProgress?: boolean;
1884
1616
  responseType?: 'json';
1885
1617
  withCredentials?: boolean;
@@ -1895,14 +1627,10 @@ export declare class HttpClient {
1895
1627
  * with a response body in the requested type.
1896
1628
  */
1897
1629
  options<T>(url: string, options: {
1898
- headers?: HttpHeaders | {
1899
- [header: string]: string | string[];
1900
- };
1630
+ headers?: HttpHeaders | Record<string, string | string[]>;
1901
1631
  observe: 'events';
1902
1632
  context?: HttpContext;
1903
- params?: HttpParams | {
1904
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1905
- };
1633
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1906
1634
  reportProgress?: boolean;
1907
1635
  responseType?: 'json';
1908
1636
  withCredentials?: boolean;
@@ -1918,14 +1646,10 @@ export declare class HttpClient {
1918
1646
  * with the response body as an `ArrayBuffer`.
1919
1647
  */
1920
1648
  options(url: string, options: {
1921
- headers?: HttpHeaders | {
1922
- [header: string]: string | string[];
1923
- };
1649
+ headers?: HttpHeaders | Record<string, string | string[]>;
1924
1650
  observe: 'response';
1925
1651
  context?: HttpContext;
1926
- params?: HttpParams | {
1927
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1928
- };
1652
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1929
1653
  reportProgress?: boolean;
1930
1654
  responseType: 'arraybuffer';
1931
1655
  withCredentials?: boolean;
@@ -1941,14 +1665,10 @@ export declare class HttpClient {
1941
1665
  * with the response body as a `Blob`.
1942
1666
  */
1943
1667
  options(url: string, options: {
1944
- headers?: HttpHeaders | {
1945
- [header: string]: string | string[];
1946
- };
1668
+ headers?: HttpHeaders | Record<string, string | string[]>;
1947
1669
  observe: 'response';
1948
1670
  context?: HttpContext;
1949
- params?: HttpParams | {
1950
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1951
- };
1671
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1952
1672
  reportProgress?: boolean;
1953
1673
  responseType: 'blob';
1954
1674
  withCredentials?: boolean;
@@ -1964,14 +1684,10 @@ export declare class HttpClient {
1964
1684
  * with the response body of type string.
1965
1685
  */
1966
1686
  options(url: string, options: {
1967
- headers?: HttpHeaders | {
1968
- [header: string]: string | string[];
1969
- };
1687
+ headers?: HttpHeaders | Record<string, string | string[]>;
1970
1688
  observe: 'response';
1971
1689
  context?: HttpContext;
1972
- params?: HttpParams | {
1973
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1974
- };
1690
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1975
1691
  reportProgress?: boolean;
1976
1692
  responseType: 'text';
1977
1693
  withCredentials?: boolean;
@@ -1987,14 +1703,10 @@ export declare class HttpClient {
1987
1703
  * with the response body of type `Object`.
1988
1704
  */
1989
1705
  options(url: string, options: {
1990
- headers?: HttpHeaders | {
1991
- [header: string]: string | string[];
1992
- };
1706
+ headers?: HttpHeaders | Record<string, string | string[]>;
1993
1707
  observe: 'response';
1994
1708
  context?: HttpContext;
1995
- params?: HttpParams | {
1996
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
1997
- };
1709
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1998
1710
  reportProgress?: boolean;
1999
1711
  responseType?: 'json';
2000
1712
  withCredentials?: boolean;
@@ -2010,14 +1722,10 @@ export declare class HttpClient {
2010
1722
  * with a response body in the requested type.
2011
1723
  */
2012
1724
  options<T>(url: string, options: {
2013
- headers?: HttpHeaders | {
2014
- [header: string]: string | string[];
2015
- };
1725
+ headers?: HttpHeaders | Record<string, string | string[]>;
2016
1726
  observe: 'response';
2017
1727
  context?: HttpContext;
2018
- params?: HttpParams | {
2019
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2020
- };
1728
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2021
1729
  reportProgress?: boolean;
2022
1730
  responseType?: 'json';
2023
1731
  withCredentials?: boolean;
@@ -2033,14 +1741,10 @@ export declare class HttpClient {
2033
1741
  * @return An `Observable` of the response, with the response body as an object parsed from JSON.
2034
1742
  */
2035
1743
  options(url: string, options?: {
2036
- headers?: HttpHeaders | {
2037
- [header: string]: string | string[];
2038
- };
1744
+ headers?: HttpHeaders | Record<string, string | string[]>;
2039
1745
  context?: HttpContext;
2040
1746
  observe?: 'body';
2041
- params?: HttpParams | {
2042
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2043
- };
1747
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2044
1748
  reportProgress?: boolean;
2045
1749
  responseType?: 'json';
2046
1750
  withCredentials?: boolean;
@@ -2055,14 +1759,10 @@ export declare class HttpClient {
2055
1759
  * @return An `Observable` of the `HttpResponse`, with a response body of the given type.
2056
1760
  */
2057
1761
  options<T>(url: string, options?: {
2058
- headers?: HttpHeaders | {
2059
- [header: string]: string | string[];
2060
- };
1762
+ headers?: HttpHeaders | Record<string, string | string[]>;
2061
1763
  context?: HttpContext;
2062
1764
  observe?: 'body';
2063
- params?: HttpParams | {
2064
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2065
- };
1765
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2066
1766
  reportProgress?: boolean;
2067
1767
  responseType?: 'json';
2068
1768
  withCredentials?: boolean;
@@ -2078,14 +1778,10 @@ export declare class HttpClient {
2078
1778
  * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
2079
1779
  */
2080
1780
  patch(url: string, body: any | null, options: {
2081
- headers?: HttpHeaders | {
2082
- [header: string]: string | string[];
2083
- };
1781
+ headers?: HttpHeaders | Record<string, string | string[]>;
2084
1782
  context?: HttpContext;
2085
1783
  observe?: 'body';
2086
- params?: HttpParams | {
2087
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2088
- };
1784
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2089
1785
  reportProgress?: boolean;
2090
1786
  responseType: 'arraybuffer';
2091
1787
  withCredentials?: boolean;
@@ -2101,14 +1797,10 @@ export declare class HttpClient {
2101
1797
  * @return An `Observable` of the response, with the response body as a `Blob`.
2102
1798
  */
2103
1799
  patch(url: string, body: any | null, options: {
2104
- headers?: HttpHeaders | {
2105
- [header: string]: string | string[];
2106
- };
1800
+ headers?: HttpHeaders | Record<string, string | string[]>;
2107
1801
  context?: HttpContext;
2108
1802
  observe?: 'body';
2109
- params?: HttpParams | {
2110
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2111
- };
1803
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2112
1804
  reportProgress?: boolean;
2113
1805
  responseType: 'blob';
2114
1806
  withCredentials?: boolean;
@@ -2124,14 +1816,10 @@ export declare class HttpClient {
2124
1816
  * @return An `Observable` of the response, with a response body of type string.
2125
1817
  */
2126
1818
  patch(url: string, body: any | null, options: {
2127
- headers?: HttpHeaders | {
2128
- [header: string]: string | string[];
2129
- };
1819
+ headers?: HttpHeaders | Record<string, string | string[]>;
2130
1820
  context?: HttpContext;
2131
1821
  observe?: 'body';
2132
- params?: HttpParams | {
2133
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2134
- };
1822
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2135
1823
  reportProgress?: boolean;
2136
1824
  responseType: 'text';
2137
1825
  withCredentials?: boolean;
@@ -2148,14 +1836,10 @@ export declare class HttpClient {
2148
1836
  * with the response body as an `ArrayBuffer`.
2149
1837
  */
2150
1838
  patch(url: string, body: any | null, options: {
2151
- headers?: HttpHeaders | {
2152
- [header: string]: string | string[];
2153
- };
1839
+ headers?: HttpHeaders | Record<string, string | string[]>;
2154
1840
  observe: 'events';
2155
1841
  context?: HttpContext;
2156
- params?: HttpParams | {
2157
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2158
- };
1842
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2159
1843
  reportProgress?: boolean;
2160
1844
  responseType: 'arraybuffer';
2161
1845
  withCredentials?: boolean;
@@ -2172,14 +1856,10 @@ export declare class HttpClient {
2172
1856
  * response body as `Blob`.
2173
1857
  */
2174
1858
  patch(url: string, body: any | null, options: {
2175
- headers?: HttpHeaders | {
2176
- [header: string]: string | string[];
2177
- };
1859
+ headers?: HttpHeaders | Record<string, string | string[]>;
2178
1860
  observe: 'events';
2179
1861
  context?: HttpContext;
2180
- params?: HttpParams | {
2181
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2182
- };
1862
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2183
1863
  reportProgress?: boolean;
2184
1864
  responseType: 'blob';
2185
1865
  withCredentials?: boolean;
@@ -2196,14 +1876,10 @@ export declare class HttpClient {
2196
1876
  * response body of type string.
2197
1877
  */
2198
1878
  patch(url: string, body: any | null, options: {
2199
- headers?: HttpHeaders | {
2200
- [header: string]: string | string[];
2201
- };
1879
+ headers?: HttpHeaders | Record<string, string | string[]>;
2202
1880
  observe: 'events';
2203
1881
  context?: HttpContext;
2204
- params?: HttpParams | {
2205
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2206
- };
1882
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2207
1883
  reportProgress?: boolean;
2208
1884
  responseType: 'text';
2209
1885
  withCredentials?: boolean;
@@ -2220,14 +1896,10 @@ export declare class HttpClient {
2220
1896
  * with a response body of type `Object`.
2221
1897
  */
2222
1898
  patch(url: string, body: any | null, options: {
2223
- headers?: HttpHeaders | {
2224
- [header: string]: string | string[];
2225
- };
1899
+ headers?: HttpHeaders | Record<string, string | string[]>;
2226
1900
  observe: 'events';
2227
1901
  context?: HttpContext;
2228
- params?: HttpParams | {
2229
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2230
- };
1902
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2231
1903
  reportProgress?: boolean;
2232
1904
  responseType?: 'json';
2233
1905
  withCredentials?: boolean;
@@ -2244,14 +1916,10 @@ export declare class HttpClient {
2244
1916
  * with a response body in the requested type.
2245
1917
  */
2246
1918
  patch<T>(url: string, body: any | null, options: {
2247
- headers?: HttpHeaders | {
2248
- [header: string]: string | string[];
2249
- };
1919
+ headers?: HttpHeaders | Record<string, string | string[]>;
2250
1920
  observe: 'events';
2251
1921
  context?: HttpContext;
2252
- params?: HttpParams | {
2253
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2254
- };
1922
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2255
1923
  reportProgress?: boolean;
2256
1924
  responseType?: 'json';
2257
1925
  withCredentials?: boolean;
@@ -2268,14 +1936,10 @@ export declare class HttpClient {
2268
1936
  * with the response body as an `ArrayBuffer`.
2269
1937
  */
2270
1938
  patch(url: string, body: any | null, options: {
2271
- headers?: HttpHeaders | {
2272
- [header: string]: string | string[];
2273
- };
1939
+ headers?: HttpHeaders | Record<string, string | string[]>;
2274
1940
  observe: 'response';
2275
1941
  context?: HttpContext;
2276
- params?: HttpParams | {
2277
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2278
- };
1942
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2279
1943
  reportProgress?: boolean;
2280
1944
  responseType: 'arraybuffer';
2281
1945
  withCredentials?: boolean;
@@ -2292,14 +1956,10 @@ export declare class HttpClient {
2292
1956
  * with the response body as a `Blob`.
2293
1957
  */
2294
1958
  patch(url: string, body: any | null, options: {
2295
- headers?: HttpHeaders | {
2296
- [header: string]: string | string[];
2297
- };
1959
+ headers?: HttpHeaders | Record<string, string | string[]>;
2298
1960
  observe: 'response';
2299
1961
  context?: HttpContext;
2300
- params?: HttpParams | {
2301
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2302
- };
1962
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2303
1963
  reportProgress?: boolean;
2304
1964
  responseType: 'blob';
2305
1965
  withCredentials?: boolean;
@@ -2316,14 +1976,10 @@ export declare class HttpClient {
2316
1976
  * with a response body of type string.
2317
1977
  */
2318
1978
  patch(url: string, body: any | null, options: {
2319
- headers?: HttpHeaders | {
2320
- [header: string]: string | string[];
2321
- };
1979
+ headers?: HttpHeaders | Record<string, string | string[]>;
2322
1980
  observe: 'response';
2323
1981
  context?: HttpContext;
2324
- params?: HttpParams | {
2325
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2326
- };
1982
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2327
1983
  reportProgress?: boolean;
2328
1984
  responseType: 'text';
2329
1985
  withCredentials?: boolean;
@@ -2340,14 +1996,10 @@ export declare class HttpClient {
2340
1996
  * with a response body in the requested type.
2341
1997
  */
2342
1998
  patch(url: string, body: any | null, options: {
2343
- headers?: HttpHeaders | {
2344
- [header: string]: string | string[];
2345
- };
1999
+ headers?: HttpHeaders | Record<string, string | string[]>;
2346
2000
  observe: 'response';
2347
2001
  context?: HttpContext;
2348
- params?: HttpParams | {
2349
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2350
- };
2002
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2351
2003
  reportProgress?: boolean;
2352
2004
  responseType?: 'json';
2353
2005
  withCredentials?: boolean;
@@ -2364,14 +2016,10 @@ export declare class HttpClient {
2364
2016
  * with a response body in the given type.
2365
2017
  */
2366
2018
  patch<T>(url: string, body: any | null, options: {
2367
- headers?: HttpHeaders | {
2368
- [header: string]: string | string[];
2369
- };
2019
+ headers?: HttpHeaders | Record<string, string | string[]>;
2370
2020
  observe: 'response';
2371
2021
  context?: HttpContext;
2372
- params?: HttpParams | {
2373
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2374
- };
2022
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2375
2023
  reportProgress?: boolean;
2376
2024
  responseType?: 'json';
2377
2025
  withCredentials?: boolean;
@@ -2388,14 +2036,10 @@ export declare class HttpClient {
2388
2036
  * @return An `Observable` of the response, with the response body as an object parsed from JSON.
2389
2037
  */
2390
2038
  patch(url: string, body: any | null, options?: {
2391
- headers?: HttpHeaders | {
2392
- [header: string]: string | string[];
2393
- };
2039
+ headers?: HttpHeaders | Record<string, string | string[]>;
2394
2040
  context?: HttpContext;
2395
2041
  observe?: 'body';
2396
- params?: HttpParams | {
2397
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2398
- };
2042
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2399
2043
  reportProgress?: boolean;
2400
2044
  responseType?: 'json';
2401
2045
  withCredentials?: boolean;
@@ -2412,14 +2056,10 @@ export declare class HttpClient {
2412
2056
  * with a response body in the given type.
2413
2057
  */
2414
2058
  patch<T>(url: string, body: any | null, options?: {
2415
- headers?: HttpHeaders | {
2416
- [header: string]: string | string[];
2417
- };
2059
+ headers?: HttpHeaders | Record<string, string | string[]>;
2418
2060
  context?: HttpContext;
2419
2061
  observe?: 'body';
2420
- params?: HttpParams | {
2421
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2422
- };
2062
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2423
2063
  reportProgress?: boolean;
2424
2064
  responseType?: 'json';
2425
2065
  withCredentials?: boolean;
@@ -2435,14 +2075,10 @@ export declare class HttpClient {
2435
2075
  * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
2436
2076
  */
2437
2077
  post(url: string, body: any | null, options: {
2438
- headers?: HttpHeaders | {
2439
- [header: string]: string | string[];
2440
- };
2078
+ headers?: HttpHeaders | Record<string, string | string[]>;
2441
2079
  context?: HttpContext;
2442
2080
  observe?: 'body';
2443
- params?: HttpParams | {
2444
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2445
- };
2081
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2446
2082
  reportProgress?: boolean;
2447
2083
  responseType: 'arraybuffer';
2448
2084
  withCredentials?: boolean;
@@ -2461,14 +2097,10 @@ export declare class HttpClient {
2461
2097
  * @return An `Observable` of the response, with the response body as a `Blob`.
2462
2098
  */
2463
2099
  post(url: string, body: any | null, options: {
2464
- headers?: HttpHeaders | {
2465
- [header: string]: string | string[];
2466
- };
2100
+ headers?: HttpHeaders | Record<string, string | string[]>;
2467
2101
  context?: HttpContext;
2468
2102
  observe?: 'body';
2469
- params?: HttpParams | {
2470
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2471
- };
2103
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2472
2104
  reportProgress?: boolean;
2473
2105
  responseType: 'blob';
2474
2106
  withCredentials?: boolean;
@@ -2487,14 +2119,10 @@ export declare class HttpClient {
2487
2119
  * @return An `Observable` of the response, with a response body of type string.
2488
2120
  */
2489
2121
  post(url: string, body: any | null, options: {
2490
- headers?: HttpHeaders | {
2491
- [header: string]: string | string[];
2492
- };
2122
+ headers?: HttpHeaders | Record<string, string | string[]>;
2493
2123
  context?: HttpContext;
2494
2124
  observe?: 'body';
2495
- params?: HttpParams | {
2496
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2497
- };
2125
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2498
2126
  reportProgress?: boolean;
2499
2127
  responseType: 'text';
2500
2128
  withCredentials?: boolean;
@@ -2514,14 +2142,10 @@ export declare class HttpClient {
2514
2142
  * with the response body as an `ArrayBuffer`.
2515
2143
  */
2516
2144
  post(url: string, body: any | null, options: {
2517
- headers?: HttpHeaders | {
2518
- [header: string]: string | string[];
2519
- };
2145
+ headers?: HttpHeaders | Record<string, string | string[]>;
2520
2146
  observe: 'events';
2521
2147
  context?: HttpContext;
2522
- params?: HttpParams | {
2523
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2524
- };
2148
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2525
2149
  reportProgress?: boolean;
2526
2150
  responseType: 'arraybuffer';
2527
2151
  withCredentials?: boolean;
@@ -2540,14 +2164,10 @@ export declare class HttpClient {
2540
2164
  * @return An `Observable` of all `HttpEvent`s for the request, with the response body as `Blob`.
2541
2165
  */
2542
2166
  post(url: string, body: any | null, options: {
2543
- headers?: HttpHeaders | {
2544
- [header: string]: string | string[];
2545
- };
2167
+ headers?: HttpHeaders | Record<string, string | string[]>;
2546
2168
  observe: 'events';
2547
2169
  context?: HttpContext;
2548
- params?: HttpParams | {
2549
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2550
- };
2170
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2551
2171
  reportProgress?: boolean;
2552
2172
  responseType: 'blob';
2553
2173
  withCredentials?: boolean;
@@ -2567,14 +2187,10 @@ export declare class HttpClient {
2567
2187
  * with a response body of type string.
2568
2188
  */
2569
2189
  post(url: string, body: any | null, options: {
2570
- headers?: HttpHeaders | {
2571
- [header: string]: string | string[];
2572
- };
2190
+ headers?: HttpHeaders | Record<string, string | string[]>;
2573
2191
  observe: 'events';
2574
2192
  context?: HttpContext;
2575
- params?: HttpParams | {
2576
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2577
- };
2193
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2578
2194
  reportProgress?: boolean;
2579
2195
  responseType: 'text';
2580
2196
  withCredentials?: boolean;
@@ -2594,14 +2210,10 @@ export declare class HttpClient {
2594
2210
  * with a response body of type `Object`.
2595
2211
  */
2596
2212
  post(url: string, body: any | null, options: {
2597
- headers?: HttpHeaders | {
2598
- [header: string]: string | string[];
2599
- };
2213
+ headers?: HttpHeaders | Record<string, string | string[]>;
2600
2214
  observe: 'events';
2601
2215
  context?: HttpContext;
2602
- params?: HttpParams | {
2603
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2604
- };
2216
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2605
2217
  reportProgress?: boolean;
2606
2218
  responseType?: 'json';
2607
2219
  withCredentials?: boolean;
@@ -2621,14 +2233,10 @@ export declare class HttpClient {
2621
2233
  * with a response body in the requested type.
2622
2234
  */
2623
2235
  post<T>(url: string, body: any | null, options: {
2624
- headers?: HttpHeaders | {
2625
- [header: string]: string | string[];
2626
- };
2236
+ headers?: HttpHeaders | Record<string, string | string[]>;
2627
2237
  observe: 'events';
2628
2238
  context?: HttpContext;
2629
- params?: HttpParams | {
2630
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2631
- };
2239
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2632
2240
  reportProgress?: boolean;
2633
2241
  responseType?: 'json';
2634
2242
  withCredentials?: boolean;
@@ -2648,14 +2256,10 @@ export declare class HttpClient {
2648
2256
  * `ArrayBuffer`.
2649
2257
  */
2650
2258
  post(url: string, body: any | null, options: {
2651
- headers?: HttpHeaders | {
2652
- [header: string]: string | string[];
2653
- };
2259
+ headers?: HttpHeaders | Record<string, string | string[]>;
2654
2260
  observe: 'response';
2655
2261
  context?: HttpContext;
2656
- params?: HttpParams | {
2657
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2658
- };
2262
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2659
2263
  reportProgress?: boolean;
2660
2264
  responseType: 'arraybuffer';
2661
2265
  withCredentials?: boolean;
@@ -2675,14 +2279,10 @@ export declare class HttpClient {
2675
2279
  * with the response body as a `Blob`.
2676
2280
  */
2677
2281
  post(url: string, body: any | null, options: {
2678
- headers?: HttpHeaders | {
2679
- [header: string]: string | string[];
2680
- };
2282
+ headers?: HttpHeaders | Record<string, string | string[]>;
2681
2283
  observe: 'response';
2682
2284
  context?: HttpContext;
2683
- params?: HttpParams | {
2684
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2685
- };
2285
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2686
2286
  reportProgress?: boolean;
2687
2287
  responseType: 'blob';
2688
2288
  withCredentials?: boolean;
@@ -2702,14 +2302,10 @@ export declare class HttpClient {
2702
2302
  * with a response body of type string.
2703
2303
  */
2704
2304
  post(url: string, body: any | null, options: {
2705
- headers?: HttpHeaders | {
2706
- [header: string]: string | string[];
2707
- };
2305
+ headers?: HttpHeaders | Record<string, string | string[]>;
2708
2306
  observe: 'response';
2709
2307
  context?: HttpContext;
2710
- params?: HttpParams | {
2711
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2712
- };
2308
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2713
2309
  reportProgress?: boolean;
2714
2310
  responseType: 'text';
2715
2311
  withCredentials?: boolean;
@@ -2729,14 +2325,10 @@ export declare class HttpClient {
2729
2325
  * `Object`.
2730
2326
  */
2731
2327
  post(url: string, body: any | null, options: {
2732
- headers?: HttpHeaders | {
2733
- [header: string]: string | string[];
2734
- };
2328
+ headers?: HttpHeaders | Record<string, string | string[]>;
2735
2329
  observe: 'response';
2736
2330
  context?: HttpContext;
2737
- params?: HttpParams | {
2738
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2739
- };
2331
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2740
2332
  reportProgress?: boolean;
2741
2333
  responseType?: 'json';
2742
2334
  withCredentials?: boolean;
@@ -2757,14 +2349,10 @@ export declare class HttpClient {
2757
2349
  * requested type.
2758
2350
  */
2759
2351
  post<T>(url: string, body: any | null, options: {
2760
- headers?: HttpHeaders | {
2761
- [header: string]: string | string[];
2762
- };
2352
+ headers?: HttpHeaders | Record<string, string | string[]>;
2763
2353
  observe: 'response';
2764
2354
  context?: HttpContext;
2765
- params?: HttpParams | {
2766
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2767
- };
2355
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2768
2356
  reportProgress?: boolean;
2769
2357
  responseType?: 'json';
2770
2358
  withCredentials?: boolean;
@@ -2783,14 +2371,10 @@ export declare class HttpClient {
2783
2371
  * @return An `Observable` of the response, with the response body as an object parsed from JSON.
2784
2372
  */
2785
2373
  post(url: string, body: any | null, options?: {
2786
- headers?: HttpHeaders | {
2787
- [header: string]: string | string[];
2788
- };
2374
+ headers?: HttpHeaders | Record<string, string | string[]>;
2789
2375
  context?: HttpContext;
2790
2376
  observe?: 'body';
2791
- params?: HttpParams | {
2792
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2793
- };
2377
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2794
2378
  reportProgress?: boolean;
2795
2379
  responseType?: 'json';
2796
2380
  withCredentials?: boolean;
@@ -2810,14 +2394,10 @@ export declare class HttpClient {
2810
2394
  * requested type.
2811
2395
  */
2812
2396
  post<T>(url: string, body: any | null, options?: {
2813
- headers?: HttpHeaders | {
2814
- [header: string]: string | string[];
2815
- };
2397
+ headers?: HttpHeaders | Record<string, string | string[]>;
2816
2398
  context?: HttpContext;
2817
2399
  observe?: 'body';
2818
- params?: HttpParams | {
2819
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2820
- };
2400
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2821
2401
  reportProgress?: boolean;
2822
2402
  responseType?: 'json';
2823
2403
  withCredentials?: boolean;
@@ -2836,14 +2416,10 @@ export declare class HttpClient {
2836
2416
  * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
2837
2417
  */
2838
2418
  put(url: string, body: any | null, options: {
2839
- headers?: HttpHeaders | {
2840
- [header: string]: string | string[];
2841
- };
2419
+ headers?: HttpHeaders | Record<string, string | string[]>;
2842
2420
  context?: HttpContext;
2843
2421
  observe?: 'body';
2844
- params?: HttpParams | {
2845
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2846
- };
2422
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2847
2423
  reportProgress?: boolean;
2848
2424
  responseType: 'arraybuffer';
2849
2425
  withCredentials?: boolean;
@@ -2859,14 +2435,10 @@ export declare class HttpClient {
2859
2435
  * @return An `Observable` of the response, with the response body as a `Blob`.
2860
2436
  */
2861
2437
  put(url: string, body: any | null, options: {
2862
- headers?: HttpHeaders | {
2863
- [header: string]: string | string[];
2864
- };
2438
+ headers?: HttpHeaders | Record<string, string | string[]>;
2865
2439
  context?: HttpContext;
2866
2440
  observe?: 'body';
2867
- params?: HttpParams | {
2868
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2869
- };
2441
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2870
2442
  reportProgress?: boolean;
2871
2443
  responseType: 'blob';
2872
2444
  withCredentials?: boolean;
@@ -2882,14 +2454,10 @@ export declare class HttpClient {
2882
2454
  * @return An `Observable` of the response, with a response body of type string.
2883
2455
  */
2884
2456
  put(url: string, body: any | null, options: {
2885
- headers?: HttpHeaders | {
2886
- [header: string]: string | string[];
2887
- };
2457
+ headers?: HttpHeaders | Record<string, string | string[]>;
2888
2458
  context?: HttpContext;
2889
2459
  observe?: 'body';
2890
- params?: HttpParams | {
2891
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2892
- };
2460
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2893
2461
  reportProgress?: boolean;
2894
2462
  responseType: 'text';
2895
2463
  withCredentials?: boolean;
@@ -2906,14 +2474,10 @@ export declare class HttpClient {
2906
2474
  * with the response body as an `ArrayBuffer`.
2907
2475
  */
2908
2476
  put(url: string, body: any | null, options: {
2909
- headers?: HttpHeaders | {
2910
- [header: string]: string | string[];
2911
- };
2477
+ headers?: HttpHeaders | Record<string, string | string[]>;
2912
2478
  observe: 'events';
2913
2479
  context?: HttpContext;
2914
- params?: HttpParams | {
2915
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2916
- };
2480
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2917
2481
  reportProgress?: boolean;
2918
2482
  responseType: 'arraybuffer';
2919
2483
  withCredentials?: boolean;
@@ -2930,14 +2494,10 @@ export declare class HttpClient {
2930
2494
  * with the response body as a `Blob`.
2931
2495
  */
2932
2496
  put(url: string, body: any | null, options: {
2933
- headers?: HttpHeaders | {
2934
- [header: string]: string | string[];
2935
- };
2497
+ headers?: HttpHeaders | Record<string, string | string[]>;
2936
2498
  observe: 'events';
2937
2499
  context?: HttpContext;
2938
- params?: HttpParams | {
2939
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2940
- };
2500
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2941
2501
  reportProgress?: boolean;
2942
2502
  responseType: 'blob';
2943
2503
  withCredentials?: boolean;
@@ -2954,14 +2514,10 @@ export declare class HttpClient {
2954
2514
  * of type string.
2955
2515
  */
2956
2516
  put(url: string, body: any | null, options: {
2957
- headers?: HttpHeaders | {
2958
- [header: string]: string | string[];
2959
- };
2517
+ headers?: HttpHeaders | Record<string, string | string[]>;
2960
2518
  observe: 'events';
2961
2519
  context?: HttpContext;
2962
- params?: HttpParams | {
2963
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2964
- };
2520
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2965
2521
  reportProgress?: boolean;
2966
2522
  responseType: 'text';
2967
2523
  withCredentials?: boolean;
@@ -2978,14 +2534,10 @@ export declare class HttpClient {
2978
2534
  * type `Object`.
2979
2535
  */
2980
2536
  put(url: string, body: any | null, options: {
2981
- headers?: HttpHeaders | {
2982
- [header: string]: string | string[];
2983
- };
2537
+ headers?: HttpHeaders | Record<string, string | string[]>;
2984
2538
  observe: 'events';
2985
2539
  context?: HttpContext;
2986
- params?: HttpParams | {
2987
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
2988
- };
2540
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
2989
2541
  reportProgress?: boolean;
2990
2542
  responseType?: 'json';
2991
2543
  withCredentials?: boolean;
@@ -3002,14 +2554,10 @@ export declare class HttpClient {
3002
2554
  * with a response body in the requested type.
3003
2555
  */
3004
2556
  put<T>(url: string, body: any | null, options: {
3005
- headers?: HttpHeaders | {
3006
- [header: string]: string | string[];
3007
- };
2557
+ headers?: HttpHeaders | Record<string, string | string[]>;
3008
2558
  observe: 'events';
3009
2559
  context?: HttpContext;
3010
- params?: HttpParams | {
3011
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3012
- };
2560
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3013
2561
  reportProgress?: boolean;
3014
2562
  responseType?: 'json';
3015
2563
  withCredentials?: boolean;
@@ -3026,14 +2574,10 @@ export declare class HttpClient {
3026
2574
  * `ArrayBuffer`.
3027
2575
  */
3028
2576
  put(url: string, body: any | null, options: {
3029
- headers?: HttpHeaders | {
3030
- [header: string]: string | string[];
3031
- };
2577
+ headers?: HttpHeaders | Record<string, string | string[]>;
3032
2578
  observe: 'response';
3033
2579
  context?: HttpContext;
3034
- params?: HttpParams | {
3035
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3036
- };
2580
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3037
2581
  reportProgress?: boolean;
3038
2582
  responseType: 'arraybuffer';
3039
2583
  withCredentials?: boolean;
@@ -3050,14 +2594,10 @@ export declare class HttpClient {
3050
2594
  * with the response body as a `Blob`.
3051
2595
  */
3052
2596
  put(url: string, body: any | null, options: {
3053
- headers?: HttpHeaders | {
3054
- [header: string]: string | string[];
3055
- };
2597
+ headers?: HttpHeaders | Record<string, string | string[]>;
3056
2598
  observe: 'response';
3057
2599
  context?: HttpContext;
3058
- params?: HttpParams | {
3059
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3060
- };
2600
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3061
2601
  reportProgress?: boolean;
3062
2602
  responseType: 'blob';
3063
2603
  withCredentials?: boolean;
@@ -3074,14 +2614,10 @@ export declare class HttpClient {
3074
2614
  * string.
3075
2615
  */
3076
2616
  put(url: string, body: any | null, options: {
3077
- headers?: HttpHeaders | {
3078
- [header: string]: string | string[];
3079
- };
2617
+ headers?: HttpHeaders | Record<string, string | string[]>;
3080
2618
  observe: 'response';
3081
2619
  context?: HttpContext;
3082
- params?: HttpParams | {
3083
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3084
- };
2620
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3085
2621
  reportProgress?: boolean;
3086
2622
  responseType: 'text';
3087
2623
  withCredentials?: boolean;
@@ -3098,14 +2634,10 @@ export declare class HttpClient {
3098
2634
  * of type 'Object`.
3099
2635
  */
3100
2636
  put(url: string, body: any | null, options: {
3101
- headers?: HttpHeaders | {
3102
- [header: string]: string | string[];
3103
- };
2637
+ headers?: HttpHeaders | Record<string, string | string[]>;
3104
2638
  observe: 'response';
3105
2639
  context?: HttpContext;
3106
- params?: HttpParams | {
3107
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3108
- };
2640
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3109
2641
  reportProgress?: boolean;
3110
2642
  responseType?: 'json';
3111
2643
  withCredentials?: boolean;
@@ -3122,14 +2654,10 @@ export declare class HttpClient {
3122
2654
  * with a response body in the requested type.
3123
2655
  */
3124
2656
  put<T>(url: string, body: any | null, options: {
3125
- headers?: HttpHeaders | {
3126
- [header: string]: string | string[];
3127
- };
2657
+ headers?: HttpHeaders | Record<string, string | string[]>;
3128
2658
  observe: 'response';
3129
2659
  context?: HttpContext;
3130
- params?: HttpParams | {
3131
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3132
- };
2660
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3133
2661
  reportProgress?: boolean;
3134
2662
  responseType?: 'json';
3135
2663
  withCredentials?: boolean;
@@ -3145,14 +2673,10 @@ export declare class HttpClient {
3145
2673
  * @return An `Observable` of the response as a JavaScript object.
3146
2674
  */
3147
2675
  put(url: string, body: any | null, options?: {
3148
- headers?: HttpHeaders | {
3149
- [header: string]: string | string[];
3150
- };
2676
+ headers?: HttpHeaders | Record<string, string | string[]>;
3151
2677
  context?: HttpContext;
3152
2678
  observe?: 'body';
3153
- params?: HttpParams | {
3154
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3155
- };
2679
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3156
2680
  reportProgress?: boolean;
3157
2681
  responseType?: 'json';
3158
2682
  withCredentials?: boolean;
@@ -3168,14 +2692,10 @@ export declare class HttpClient {
3168
2692
  * @return An `Observable` of the requested type.
3169
2693
  */
3170
2694
  put<T>(url: string, body: any | null, options?: {
3171
- headers?: HttpHeaders | {
3172
- [header: string]: string | string[];
3173
- };
2695
+ headers?: HttpHeaders | Record<string, string | string[]>;
3174
2696
  context?: HttpContext;
3175
2697
  observe?: 'body';
3176
- params?: HttpParams | {
3177
- [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
3178
- };
2698
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3179
2699
  reportProgress?: boolean;
3180
2700
  responseType?: 'json';
3181
2701
  withCredentials?: boolean;
@@ -4049,6 +3569,259 @@ export declare class HttpRequest<T> {
4049
3569
  }): HttpRequest<V>;
4050
3570
  }
4051
3571
 
3572
+ /**
3573
+ * `httpResource` makes a reactive HTTP request and exposes the request status and response value as
3574
+ * a `WritableResource`. By default, it assumes that the backend will return JSON data. To make a
3575
+ * request that expects a different kind of data, you can use a sub-constructor of `httpResource`,
3576
+ * such as `httpResource.text`.
3577
+ *
3578
+ * @experimental
3579
+ * @initializerApiFunction
3580
+ */
3581
+ export declare const httpResource: HttpResourceFn;
3582
+
3583
+ /**
3584
+ * Type for the `httpRequest` top-level function, which includes the call signatures for the JSON-
3585
+ * based `httpRequest` as well as sub-functions for `ArrayBuffer`, `Blob`, and `string` type
3586
+ * requests.
3587
+ *
3588
+ * @experimental
3589
+ */
3590
+ export declare interface HttpResourceFn {
3591
+ /**
3592
+ * Create a `Resource` that fetches data with an HTTP GET request to the given URL.
3593
+ *
3594
+ * If a reactive function is passed for the URL, the resource will update when the URL changes via
3595
+ * signals.
3596
+ *
3597
+ * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
3598
+ * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
3599
+ * `httpResource`, such as `httpResource.text()`, to parse the response differently.
3600
+ *
3601
+ * @experimental
3602
+ */
3603
+ <TResult = unknown>(url: string | (() => string | undefined), options: HttpResourceOptions<TResult, unknown> & {
3604
+ defaultValue: NoInfer<TResult>;
3605
+ }): HttpResourceRef<TResult>;
3606
+ /**
3607
+ * Create a `Resource` that fetches data with an HTTP GET request to the given URL.
3608
+ *
3609
+ * If a reactive function is passed for the URL, the resource will update when the URL changes via
3610
+ * signals.
3611
+ *
3612
+ * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
3613
+ * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
3614
+ * `httpResource`, such as `httpResource.text()`, to parse the response differently.
3615
+ *
3616
+ * @experimental
3617
+ */
3618
+ <TResult = unknown>(url: string | (() => string | undefined), options?: HttpResourceOptions<TResult, unknown>): HttpResourceRef<TResult | undefined>;
3619
+ /**
3620
+ * Create a `Resource` that fetches data with the configured HTTP request.
3621
+ *
3622
+ * If a reactive function is passed for the request, the resource will update when the request
3623
+ * changes via signals.
3624
+ *
3625
+ * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
3626
+ * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
3627
+ * `httpResource`, such as `httpResource.text()`, to parse the response differently.
3628
+ *
3629
+ * @experimental
3630
+ */
3631
+ <TResult = unknown>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options: HttpResourceOptions<TResult, unknown> & {
3632
+ defaultValue: NoInfer<TResult>;
3633
+ }): HttpResourceRef<TResult>;
3634
+ /**
3635
+ * Create a `Resource` that fetches data with the configured HTTP request.
3636
+ *
3637
+ * If a reactive function is passed for the request, the resource will update when the request
3638
+ * changes via signals.
3639
+ *
3640
+ * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
3641
+ * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
3642
+ * `httpResource`, such as `httpResource.text()`, to parse the response differently.
3643
+ *
3644
+ * @experimental
3645
+ */
3646
+ <TResult = unknown>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options?: HttpResourceOptions<TResult, unknown>): HttpResourceRef<TResult | undefined>;
3647
+ /**
3648
+ * Create a `Resource` that fetches data with the configured HTTP request.
3649
+ *
3650
+ * If a reactive function is passed for the URL or request, the resource will update when the
3651
+ * URL or request changes via signals.
3652
+ *
3653
+ * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
3654
+ * of the `HttpClient` API. Data is parsed into an `ArrayBuffer`.
3655
+ *
3656
+ * @experimental
3657
+ */
3658
+ arrayBuffer: {
3659
+ <TResult = ArrayBuffer>(url: string | (() => string | undefined), options: HttpResourceOptions<TResult, ArrayBuffer> & {
3660
+ defaultValue: NoInfer<TResult>;
3661
+ }): HttpResourceRef<TResult>;
3662
+ <TResult = ArrayBuffer>(url: string | (() => string | undefined), options?: HttpResourceOptions<TResult, ArrayBuffer>): HttpResourceRef<TResult | undefined>;
3663
+ <TResult = ArrayBuffer>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options: HttpResourceOptions<TResult, ArrayBuffer> & {
3664
+ defaultValue: NoInfer<TResult>;
3665
+ }): HttpResourceRef<TResult>;
3666
+ <TResult = ArrayBuffer>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options?: HttpResourceOptions<TResult, ArrayBuffer>): HttpResourceRef<TResult | undefined>;
3667
+ };
3668
+ /**
3669
+ * Create a `Resource` that fetches data with the configured HTTP request.
3670
+ *
3671
+ * If a reactive function is passed for the URL or request, the resource will update when the
3672
+ * URL or request changes via signals.
3673
+ *
3674
+ * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
3675
+ * of the `HttpClient` API. Data is parsed into a `Blob`.
3676
+ *
3677
+ * @experimental
3678
+ */
3679
+ blob: {
3680
+ <TResult = Blob>(url: string | (() => string | undefined), options: HttpResourceOptions<TResult, Blob> & {
3681
+ defaultValue: NoInfer<TResult>;
3682
+ }): HttpResourceRef<TResult>;
3683
+ <TResult = Blob>(url: string | (() => string | undefined), options?: HttpResourceOptions<TResult, Blob>): HttpResourceRef<TResult | undefined>;
3684
+ <TResult = Blob>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options: HttpResourceOptions<TResult, Blob> & {
3685
+ defaultValue: NoInfer<TResult>;
3686
+ }): HttpResourceRef<TResult>;
3687
+ <TResult = Blob>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options?: HttpResourceOptions<TResult, Blob>): HttpResourceRef<TResult | undefined>;
3688
+ };
3689
+ /**
3690
+ * Create a `Resource` that fetches data with the configured HTTP request.
3691
+ *
3692
+ * If a reactive function is passed for the URL or request, the resource will update when the
3693
+ * URL or request changes via signals.
3694
+ *
3695
+ * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
3696
+ * of the `HttpClient` API. Data is parsed as a `string`.
3697
+ *
3698
+ * @experimental
3699
+ */
3700
+ text: {
3701
+ <TResult = string>(url: string | (() => string | undefined), options: HttpResourceOptions<TResult, string> & {
3702
+ defaultValue: NoInfer<TResult>;
3703
+ }): HttpResourceRef<TResult>;
3704
+ <TResult = string>(url: string | (() => string | undefined), options?: HttpResourceOptions<TResult, string>): HttpResourceRef<TResult | undefined>;
3705
+ <TResult = string>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options: HttpResourceOptions<TResult, string> & {
3706
+ defaultValue: NoInfer<TResult>;
3707
+ }): HttpResourceRef<TResult>;
3708
+ <TResult = string>(request: HttpResourceRequest | (() => HttpResourceRequest | undefined), options?: HttpResourceOptions<TResult, string>): HttpResourceRef<TResult | undefined>;
3709
+ };
3710
+ }
3711
+
3712
+ /**
3713
+ * Options for creating an `httpResource`.
3714
+ *
3715
+ * @experimental
3716
+ */
3717
+ export declare interface HttpResourceOptions<TResult, TRaw> {
3718
+ /**
3719
+ * Transform the result of the HTTP request before it's delivered to the resource.
3720
+ *
3721
+ * `parse` receives the value from the HTTP layer as its raw type (e.g. as `unknown` for JSON data).
3722
+ * It can be used to validate or transform the type of the resource, and return a more specific
3723
+ * type. This is also useful for validating backend responses using a runtime schema validation
3724
+ * library such as Zod.
3725
+ */
3726
+ parse?: (value: TRaw) => TResult;
3727
+ /**
3728
+ * Value that the resource will take when in Idle, Loading, or Error states.
3729
+ *
3730
+ * If not set, the resource will use `undefined` as its default value.
3731
+ */
3732
+ defaultValue?: NoInfer<TResult>;
3733
+ /**
3734
+ * The `Injector` in which to create the `httpResource`.
3735
+ *
3736
+ * If this is not provided, the current [injection context](guide/di/dependency-injection-context)
3737
+ * will be used instead (via `inject`).
3738
+ */
3739
+ injector?: Injector;
3740
+ /**
3741
+ * A comparison function which defines equality for the response value.
3742
+ */
3743
+ equal?: ValueEqualityFn<NoInfer<TResult>>;
3744
+ }
3745
+
3746
+ /**
3747
+ * A `WritableResource` that represents the results of a reactive HTTP request.
3748
+ *
3749
+ * `HttpResource`s are backed by `HttpClient`, including support for interceptors, testing, and the
3750
+ * other features of the `HttpClient` API.
3751
+ *
3752
+ * @experimental
3753
+ */
3754
+ export declare interface HttpResourceRef<T> extends WritableResource<T>, ResourceRef<T> {
3755
+ /**
3756
+ * Signal of the response headers, when available.
3757
+ */
3758
+ readonly headers: Signal<HttpHeaders | undefined>;
3759
+ /**
3760
+ * Signal of the response status code, when available.
3761
+ */
3762
+ readonly statusCode: Signal<number | undefined>;
3763
+ /**
3764
+ * Signal of the latest progress update, if the request was made with `reportProgress: true`.
3765
+ */
3766
+ readonly progress: Signal<HttpProgressEvent | undefined>;
3767
+ hasValue(): this is HttpResourceRef<Exclude<T, undefined>>;
3768
+ destroy(): void;
3769
+ }
3770
+
3771
+ /**
3772
+ * The structure of an `httpResource` request which will be sent to the backend.
3773
+ *
3774
+ * @experimental
3775
+ */
3776
+ export declare interface HttpResourceRequest {
3777
+ /**
3778
+ * URL of the request.
3779
+ *
3780
+ * This URL should not include query parameters. Instead, specify query parameters through the
3781
+ * `params` field.
3782
+ */
3783
+ url: string;
3784
+ /**
3785
+ * HTTP method of the request, which defaults to GET if not specified.
3786
+ */
3787
+ method?: string;
3788
+ /**
3789
+ * Body to send with the request, if there is one.
3790
+ *
3791
+ * If no Content-Type header is specified by the user, Angular will attempt to set one based on
3792
+ * the type of `body`.
3793
+ */
3794
+ body?: unknown;
3795
+ /**
3796
+ * Dictionary of query parameters which will be appeneded to the request URL.
3797
+ */
3798
+ params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
3799
+ /**
3800
+ * Dictionary of headers to include with the outgoing request.
3801
+ */
3802
+ headers?: HttpHeaders | Record<string, string | ReadonlyArray<string>>;
3803
+ /**
3804
+ * If `true`, progress events will be enabled for the request and delivered through the
3805
+ * `HttpResource.progress` signal.
3806
+ */
3807
+ reportProgress?: boolean;
3808
+ /**
3809
+ * Specifies whether the `withCredentials` flag should be set on the outgoing request.
3810
+ *
3811
+ * This flag causes the browser to send cookies and other authentication information along with
3812
+ * the request.
3813
+ */
3814
+ withCredentials?: boolean;
3815
+ /**
3816
+ * Configures the server-side rendering transfer cache for this request.
3817
+ *
3818
+ * See the documentation on the transfer cache for more information.
3819
+ */
3820
+ transferCache?: {
3821
+ includeHeaders?: string[];
3822
+ } | boolean;
3823
+ }
3824
+
4052
3825
  /**
4053
3826
  * A full HTTP response, including a typed response body (which may be `null`
4054
3827
  * if one was not returned).