@firebase/firestore 3.5.0-canary.e35db6f95 → 3.5.0-canary.ee871fc0b

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.
Files changed (69) hide show
  1. package/dist/firestore/lite/index.d.ts +2 -0
  2. package/dist/firestore/src/api/aggregate.d.ts +19 -5
  3. package/dist/firestore/src/api/database.d.ts +6 -6
  4. package/dist/firestore/src/api.d.ts +2 -0
  5. package/dist/firestore/src/core/count_query_runner.d.ts +32 -0
  6. package/dist/firestore/src/core/firestore_client.d.ts +2 -2
  7. package/dist/firestore/src/lite-api/aggregate.d.ts +17 -61
  8. package/dist/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  9. package/dist/firestore/src/lite-api/database.d.ts +6 -6
  10. package/dist/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  11. package/dist/index.d.ts +189 -7
  12. package/dist/index.esm2017.js +3167 -2981
  13. package/dist/index.esm2017.js.map +1 -1
  14. package/dist/index.esm5.js +3477 -3276
  15. package/dist/index.esm5.js.map +1 -1
  16. package/dist/index.node.cjs.js +3893 -3670
  17. package/dist/index.node.cjs.js.map +1 -1
  18. package/dist/index.node.mjs +3890 -3671
  19. package/dist/index.node.mjs.map +1 -1
  20. package/dist/index.rn.js +3231 -3045
  21. package/dist/index.rn.js.map +1 -1
  22. package/dist/internal.d.ts +103 -7
  23. package/dist/lite/firestore/lite/index.d.ts +2 -0
  24. package/dist/lite/firestore/src/api/aggregate.d.ts +19 -5
  25. package/dist/lite/firestore/src/api/database.d.ts +6 -6
  26. package/dist/lite/firestore/src/api.d.ts +2 -0
  27. package/dist/lite/firestore/src/core/count_query_runner.d.ts +32 -0
  28. package/dist/lite/firestore/src/core/firestore_client.d.ts +2 -2
  29. package/dist/lite/firestore/src/lite-api/aggregate.d.ts +17 -61
  30. package/dist/lite/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  31. package/dist/lite/firestore/src/lite-api/database.d.ts +6 -6
  32. package/dist/lite/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  33. package/dist/lite/index.browser.esm2017.js +1068 -917
  34. package/dist/lite/index.browser.esm2017.js.map +1 -1
  35. package/dist/lite/index.browser.esm5.js +1183 -1037
  36. package/dist/lite/index.browser.esm5.js.map +1 -1
  37. package/dist/lite/index.d.ts +84 -4
  38. package/dist/lite/index.node.cjs.js +240 -62
  39. package/dist/lite/index.node.cjs.js.map +1 -1
  40. package/dist/lite/index.node.mjs +238 -64
  41. package/dist/lite/index.node.mjs.map +1 -1
  42. package/dist/lite/index.rn.esm2017.js +1059 -908
  43. package/dist/lite/index.rn.esm2017.js.map +1 -1
  44. package/dist/lite/internal.d.ts +95 -6
  45. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +213 -128
  46. package/dist/lite/packages/firestore/lite/index.d.ts +2 -0
  47. package/dist/lite/packages/firestore/src/api/aggregate.d.ts +19 -5
  48. package/dist/lite/packages/firestore/src/api/database.d.ts +6 -6
  49. package/dist/lite/packages/firestore/src/api.d.ts +2 -0
  50. package/dist/lite/packages/firestore/src/core/count_query_runner.d.ts +32 -0
  51. package/dist/lite/packages/firestore/src/core/firestore_client.d.ts +2 -2
  52. package/dist/lite/packages/firestore/src/lite-api/aggregate.d.ts +17 -61
  53. package/dist/lite/packages/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  54. package/dist/lite/packages/firestore/src/lite-api/database.d.ts +6 -6
  55. package/dist/lite/packages/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  56. package/dist/lite/private.d.ts +93 -4
  57. package/dist/packages/firestore/dist/index.esm2017.d.ts +295 -186
  58. package/dist/packages/firestore/lite/index.d.ts +2 -0
  59. package/dist/packages/firestore/src/api/aggregate.d.ts +19 -5
  60. package/dist/packages/firestore/src/api/database.d.ts +6 -6
  61. package/dist/packages/firestore/src/api.d.ts +2 -0
  62. package/dist/packages/firestore/src/core/count_query_runner.d.ts +32 -0
  63. package/dist/packages/firestore/src/core/firestore_client.d.ts +2 -2
  64. package/dist/packages/firestore/src/lite-api/aggregate.d.ts +17 -61
  65. package/dist/packages/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  66. package/dist/packages/firestore/src/lite-api/database.d.ts +6 -6
  67. package/dist/packages/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  68. package/dist/private.d.ts +200 -11
  69. package/package.json +9 -9
@@ -19,15 +19,75 @@
19
19
  * to the user.
20
20
  *
21
21
  * @internal
22
- */ declare class ih {
22
+ */ declare class Zh {
23
23
  convertValue(t: any, e?: string): any;
24
24
  convertObject(t: any, e: any): {};
25
- convertGeoPoint(t: any): ca;
25
+ convertGeoPoint(t: any): sh;
26
26
  convertArray(t: any, e: any): any;
27
27
  convertServerTimestamp(t: any, e: any): any;
28
28
  convertTimestamp(t: any): et;
29
29
  convertDocumentKey(t: any, e: any): ut;
30
30
  }
31
+ /**
32
+ * @license
33
+ * Copyright 2022 Google LLC
34
+ *
35
+ * Licensed under the Apache License, Version 2.0 (the "License");
36
+ * you may not use this file except in compliance with the License.
37
+ * You may obtain a copy of the License at
38
+ *
39
+ * http://www.apache.org/licenses/LICENSE-2.0
40
+ *
41
+ * Unless required by applicable law or agreed to in writing, software
42
+ * distributed under the License is distributed on an "AS IS" BASIS,
43
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44
+ * See the License for the specific language governing permissions and
45
+ * limitations under the License.
46
+ */
47
+ /**
48
+ * Represents an aggregation that can be performed by Firestore.
49
+ */
50
+ declare class ca {
51
+ /** A type string to uniquely identify instances of this class. */
52
+ type: string;
53
+ }
54
+ /**
55
+ * The results of executing an aggregation query.
56
+ */ declare class aa {
57
+ /** @hideconstructor */
58
+ constructor(t: any, e: any);
59
+ _data: any;
60
+ /** A type string to uniquely identify instances of this class. */
61
+ type: string;
62
+ query: any;
63
+ /**
64
+ * Returns the results of the aggregations performed over the underlying
65
+ * query.
66
+ *
67
+ * The keys of the returned object will be the same as those of the
68
+ * `AggregateSpec` object specified to the aggregation method, and the values
69
+ * will be the corresponding aggregation result.
70
+ *
71
+ * @returns The results of the aggregations performed over the underlying
72
+ * query.
73
+ */ data(): any;
74
+ }
75
+ /**
76
+ * @license
77
+ * Copyright 2020 Google LLC
78
+ *
79
+ * Licensed under the Apache License, Version 2.0 (the "License");
80
+ * you may not use this file except in compliance with the License.
81
+ * You may obtain a copy of the License at
82
+ *
83
+ * http://www.apache.org/licenses/LICENSE-2.0
84
+ *
85
+ * Unless required by applicable law or agreed to in writing, software
86
+ * distributed under the License is distributed on an "AS IS" BASIS,
87
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
+ * See the License for the specific language governing permissions and
89
+ * limitations under the License.
90
+ */
31
91
  /**
32
92
  * @license
33
93
  * Copyright 2020 Google LLC
@@ -46,18 +106,19 @@
46
106
  */
47
107
  /**
48
108
  * An immutable object representing an array of bytes.
49
- */ declare class ia {
109
+ */
110
+ declare class Za {
50
111
  /**
51
112
  * Creates a new `Bytes` object from the given Base64 string, converting it to
52
113
  * bytes.
53
114
  *
54
115
  * @param base64 - The Base64 string used to create the `Bytes` object.
55
- */ static fromBase64String(t: any): ia;
116
+ */ static fromBase64String(t: any): Za;
56
117
  /**
57
118
  * Creates a new `Bytes` object from the given Uint8Array.
58
119
  *
59
120
  * @param array - The Uint8Array used to create the `Bytes` object.
60
- */ static fromUint8Array(t: any): ia;
121
+ */ static fromUint8Array(t: any): Za;
61
122
  /** @hideconstructor */
62
123
  constructor(t: any);
63
124
  _byteString: any;
@@ -99,11 +160,11 @@
99
160
  * See the License for the specific language governing permissions and
100
161
  * limitations under the License.
101
162
  */
102
- /** DOMException error code constants. */ declare const Mh: -1;
163
+ /** DOMException error code constants. */ declare const Ma: -1;
103
164
  /**
104
165
  * A `CollectionReference` object can be used for adding documents, getting
105
166
  * document references, and querying for documents (using {@link query}).
106
- */ declare class Xc extends Yc {
167
+ */ declare class Zc extends Xc {
107
168
  _path: any;
108
169
  /** The collection's identifier. */ get id(): any;
109
170
  /**
@@ -113,7 +174,7 @@
113
174
  /**
114
175
  * A reference to the containing `DocumentReference` if this is a
115
176
  * subcollection. If this isn't a subcollection, the reference is null.
116
- */ get parent(): Jc | null;
177
+ */ get parent(): Yc | null;
117
178
  }
118
179
  /**
119
180
  * @license
@@ -135,7 +196,7 @@
135
196
  * A `DocumentReference` refers to a document location in a Firestore database
136
197
  * and can be used to write, read, or listen to the location. The document at
137
198
  * the referenced location may or may not exist.
138
- */ declare class Jc {
199
+ */ declare class Yc {
139
200
  /** @hideconstructor */
140
201
  constructor(t: any, e: any, n: any);
141
202
  converter: any;
@@ -153,8 +214,8 @@
153
214
  */ get path(): any;
154
215
  /**
155
216
  * The collection this `DocumentReference` belongs to.
156
- */ get parent(): Xc;
157
- withConverter(t: any): Jc;
217
+ */ get parent(): Zc;
218
+ withConverter(t: any): Yc;
158
219
  }
159
220
  /**
160
221
  * A `DocumentSnapshot` contains data read from a document in your Firestore
@@ -164,7 +225,7 @@
164
225
  * For a `DocumentSnapshot` that points to a non-existing document, any data
165
226
  * access will return 'undefined'. You can use the `exists()` method to
166
227
  * explicitly verify a document's existence.
167
- */ declare class Zh extends Ma {
228
+ */ declare class sl extends Dh {
168
229
  /** @hideconstructor protected */
169
230
  constructor(t: any, e: any, n: any, s: any, i: any, r: any);
170
231
  _firestoreImpl: any;
@@ -193,7 +254,7 @@
193
254
  *
194
255
  * Create a `FieldPath` by providing field names. If more than one field
195
256
  * name is provided, the path will point to a nested field in a document.
196
- */ declare class ra {
257
+ */ declare class th {
197
258
  /**
198
259
  * Creates a `FieldPath` from the provided field names. If more than one field
199
260
  * name is provided, the path will point to a nested field in a document.
@@ -228,7 +289,7 @@
228
289
  /**
229
290
  * Sentinel values that can be used when writing document fields with `set()`
230
291
  * or `update()`.
231
- */ declare class ua {
292
+ */ declare class nh {
232
293
  /**
233
294
  * @param _methodName - The public API endpoint that returns this class.
234
295
  * @hideconstructor
@@ -239,10 +300,10 @@
239
300
  /**
240
301
  * The Cloud Firestore service interface.
241
302
  *
242
- * Do not call this constructor directly. Instead, use {@link getFirestore}.
303
+ * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
243
304
  */
244
- declare class Oh extends zc {
245
- _queue: xh;
305
+ declare class Fa extends Hc {
306
+ _queue: Na;
246
307
  }
247
308
  /** An error returned by a Firestore operation. */ declare class B extends c {
248
309
  /** @hideconstructor */
@@ -270,7 +331,7 @@ declare class Oh extends zc {
270
331
  *
271
332
  * Latitude values are in the range of [-90, 90].
272
333
  * Longitude values are in the range of [-180, 180].
273
- */ declare class ca {
334
+ */ declare class sh {
274
335
  /**
275
336
  * Creates a new immutable `GeoPoint` object with the provided latitude and
276
337
  * longitude values.
@@ -301,7 +362,7 @@ declare class Oh extends zc {
301
362
  * with an underscore.
302
363
  */ _compareTo(t: any): 0 | 1 | -1;
303
364
  }
304
- declare class kh {
365
+ declare class Oa {
305
366
  _progressObserver: {};
306
367
  _taskCompletionResolver: L;
307
368
  _lastProgress: {
@@ -353,7 +414,7 @@ declare class kh {
353
414
  /**
354
415
  * A `Query` refers to a query which you can read or listen to. You can also
355
416
  * construct refined `Query` objects by adding filters and ordering.
356
- */ declare class Yc {
417
+ */ declare class Xc {
357
418
  /** @hideconstructor protected */
358
419
  constructor(t: any, e: any, n: any);
359
420
  converter: any;
@@ -361,7 +422,7 @@ declare class kh {
361
422
  /** The type of this Firestore reference. */
362
423
  type: string;
363
424
  firestore: any;
364
- withConverter(t: any): Yc;
425
+ withConverter(t: any): Xc;
365
426
  }
366
427
  /**
367
428
  * A `QueryConstraint` is used to narrow the set of documents returned by a
@@ -370,7 +431,7 @@ declare class kh {
370
431
  * endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
371
432
  * can then be passed to {@link query} to create a new query instance that
372
433
  * also contains this `QueryConstraint`.
373
- */ declare class Ba {
434
+ */ declare class kh {
374
435
  }
375
436
  /**
376
437
  * A `QueryDocumentSnapshot` contains data read from a document in your
@@ -382,7 +443,7 @@ declare class kh {
382
443
  * `DocumentSnapshot`. Since query results contain only existing documents, the
383
444
  * `exists` property will always be true and `data()` will never return
384
445
  * 'undefined'.
385
- */ declare class tl extends Zh {
446
+ */ declare class il extends sl {
386
447
  }
387
448
  /**
388
449
  * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
@@ -390,13 +451,13 @@ declare class kh {
390
451
  * array via the `docs` property or enumerated using the `forEach` method. The
391
452
  * number of documents can be determined via the `empty` and `size`
392
453
  * properties.
393
- */ declare class el {
454
+ */ declare class rl {
394
455
  /** @hideconstructor */
395
456
  constructor(t: any, e: any, n: any, s: any);
396
457
  _firestore: any;
397
458
  _userDataWriter: any;
398
459
  _snapshot: any;
399
- metadata: Xh;
460
+ metadata: nl;
400
461
  query: any;
401
462
  /** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
402
463
  /** The number of documents in the `QuerySnapshot`. */ get size(): any;
@@ -420,22 +481,6 @@ declare class kh {
420
481
  _cachedChanges: any;
421
482
  _cachedChangesIncludeMetadataChanges: any;
422
483
  }
423
- /**
424
- * @license
425
- * Copyright 2020 Google LLC
426
- *
427
- * Licensed under the Apache License, Version 2.0 (the "License");
428
- * you may not use this file except in compliance with the License.
429
- * You may obtain a copy of the License at
430
- *
431
- * http://www.apache.org/licenses/LICENSE-2.0
432
- *
433
- * Unless required by applicable law or agreed to in writing, software
434
- * distributed under the License is distributed on an "AS IS" BASIS,
435
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
436
- * See the License for the specific language governing permissions and
437
- * limitations under the License.
438
- */
439
484
  /**
440
485
  * @license
441
486
  * Copyright 2020 Google LLC
@@ -454,8 +499,7 @@ declare class kh {
454
499
  */
455
500
  /**
456
501
  * Metadata about a snapshot, describing the state of the snapshot.
457
- */
458
- declare class Xh {
502
+ */ declare class nl {
459
503
  /** @hideconstructor */
460
504
  constructor(t: any, e: any);
461
505
  hasPendingWrites: any;
@@ -564,11 +608,11 @@ declare class et {
564
608
  * to be compared using the `>`, `<=`, `>=` and `>` operators.
565
609
  */ valueOf(): string;
566
610
  }
567
- declare const El_base: {
611
+ declare const Vl_base: {
568
612
  new (t: any, e: any): {
569
613
  _firestore: any;
570
614
  _transaction: any;
571
- _dataReader: _a;
615
+ _dataReader: ah;
572
616
  /**
573
617
  * Reads the document referenced by the provided {@link DocumentReference}.
574
618
  *
@@ -607,7 +651,31 @@ declare const El_base: {
607
651
  * The `Transaction` object passed to a transaction's `updateFunction` provides
608
652
  * the methods to read and write data within the transaction context. See
609
653
  * {@link runTransaction}.
610
- */ declare class El extends El_base {
654
+ */
655
+ /**
656
+ * @license
657
+ * Copyright 2020 Google LLC
658
+ *
659
+ * Licensed under the Apache License, Version 2.0 (the "License");
660
+ * you may not use this file except in compliance with the License.
661
+ * You may obtain a copy of the License at
662
+ *
663
+ * http://www.apache.org/licenses/LICENSE-2.0
664
+ *
665
+ * Unless required by applicable law or agreed to in writing, software
666
+ * distributed under the License is distributed on an "AS IS" BASIS,
667
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
668
+ * See the License for the specific language governing permissions and
669
+ * limitations under the License.
670
+ */
671
+ /**
672
+ * A reference to a transaction.
673
+ *
674
+ * The `Transaction` object passed to a transaction's `updateFunction` provides
675
+ * the methods to read and write data within the transaction context. See
676
+ * {@link runTransaction}.
677
+ */
678
+ declare class Vl extends Vl_base {
611
679
  }
612
680
  /**
613
681
  * @license
@@ -633,22 +701,22 @@ declare const El_base: {
633
701
  * will be committed (or visible locally) until {@link WriteBatch.commit} is
634
702
  * called.
635
703
  */
636
- declare class rl {
704
+ declare class Pl {
637
705
  /** @hideconstructor */
638
706
  constructor(t: any, e: any);
639
707
  _firestore: any;
640
708
  _commitHandler: any;
641
709
  _mutations: any[];
642
710
  _committed: boolean;
643
- _dataReader: _a;
644
- set(t: any, e: any, n: any): rl;
645
- update(t: any, e: any, n: any, ...s: any[]): rl;
711
+ _dataReader: ah;
712
+ set(t: any, e: any, n: any): Pl;
713
+ update(t: any, e: any, n: any, ...s: any[]): Pl;
646
714
  /**
647
715
  * Deletes the document referred to by the provided {@link DocumentReference}.
648
716
  *
649
717
  * @param documentRef - A reference to the document to be deleted.
650
718
  * @returns This `WriteBatch` instance. Used for chaining method calls.
651
- */ delete(t: any): rl;
719
+ */ delete(t: any): Pl;
652
720
  /**
653
721
  * Commits all of the writes in this write batch as a single atomic unit.
654
722
  *
@@ -762,7 +830,7 @@ declare class ee {
762
830
  * Returns true if this field references the key of a document.
763
831
  */ isKeyField(): boolean;
764
832
  }
765
- declare function Gc(t: any, e: any): any;
833
+ declare function Qc(t: any, e: any): any;
766
834
  /**
767
835
  * Fails if the given assertion condition is false, throwing an Error with the
768
836
  * given message if it did.
@@ -772,7 +840,7 @@ declare function Gc(t: any, e: any): any;
772
840
  * happen in this case.
773
841
  *
774
842
  * @internal
775
- */ declare function O(t: any, e: any): void;
843
+ */ declare function M(t: any, e: any): void;
776
844
  /**
777
845
  * @license
778
846
  * Copyright 2020 Google LLC
@@ -798,7 +866,7 @@ declare function Qt(): boolean;
798
866
  /**
799
867
  * Validates that two boolean options are not set at the same time.
800
868
  * @internal
801
- */ declare function Lc(t: any, e: any, n: any, s: any): void;
869
+ */ declare function Uc(t: any, e: any, n: any, s: any): void;
802
870
  /**
803
871
  * Add a new document to specified `CollectionReference` with the given data,
804
872
  * assigning it a document ID automatically.
@@ -808,7 +876,35 @@ declare function Qt(): boolean;
808
876
  * @returns A `Promise` resolved with a `DocumentReference` pointing to the
809
877
  * newly created document after it has been written to the backend (Note that it
810
878
  * won't resolve while you're offline).
811
- */ declare function gl(t: any, e: any): Promise<Jc>;
879
+ */ declare function yl(t: any, e: any): Promise<Yc>;
880
+ /**
881
+ * @license
882
+ * Copyright 2022 Google LLC
883
+ *
884
+ * Licensed under the Apache License, Version 2.0 (the "License");
885
+ * you may not use this file except in compliance with the License.
886
+ * You may obtain a copy of the License at
887
+ *
888
+ * http://www.apache.org/licenses/LICENSE-2.0
889
+ *
890
+ * Unless required by applicable law or agreed to in writing, software
891
+ * distributed under the License is distributed on an "AS IS" BASIS,
892
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
893
+ * See the License for the specific language governing permissions and
894
+ * limitations under the License.
895
+ */
896
+ /**
897
+ * Compares two `AggregateQuerySnapshot` instances for equality.
898
+ *
899
+ * Two `AggregateQuerySnapshot` instances are considered "equal" if they have
900
+ * underlying queries that compare equal, and the same data.
901
+ *
902
+ * @param left - The first `AggregateQuerySnapshot` to compare.
903
+ * @param right - The second `AggregateQuerySnapshot` to compare.
904
+ *
905
+ * @returns `true` if the objects are "equal", as defined above, or `false`
906
+ * otherwise.
907
+ */ declare function Al(t: any, e: any): boolean;
812
908
  /**
813
909
  * Returns a special value that can be used with {@link (setDoc:1)} or {@link
814
910
  * updateDoc:1} that tells the server to remove the given elements from any
@@ -819,7 +915,7 @@ declare function Qt(): boolean;
819
915
  * @param elements - The elements to remove from the array.
820
916
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
821
917
  * `updateDoc()`
822
- */ declare function vl(...t: any[]): Ta;
918
+ */ declare function Nl(...t: any[]): mh;
823
919
  /**
824
920
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
825
921
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
@@ -831,9 +927,9 @@ declare function Qt(): boolean;
831
927
  * @param elements - The elements to union into the array.
832
928
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
833
929
  * `updateDoc()`.
834
- */ declare function Pl(...t: any[]): Ia;
835
- declare function Gh(t: any): Promise<any>;
836
- declare function Zc(t: any, e: any, ...n: any[]): Xc;
930
+ */ declare function xl(...t: any[]): wh;
931
+ declare function Qa(t: any): Promise<any>;
932
+ declare function ta(t: any, e: any, ...n: any[]): Zc;
837
933
  /**
838
934
  * Creates and returns a new `Query` instance that includes all documents in the
839
935
  * database that are contained in a collection or subcollection with the
@@ -844,7 +940,7 @@ declare function Zc(t: any, e: any, ...n: any[]): Xc;
844
940
  * collection or subcollection with this ID as the last segment of its path
845
941
  * will be included. Cannot contain a slash.
846
942
  * @returns The created `Query`.
847
- */ declare function ta(t: any, e: any): Yc;
943
+ */ declare function ea(t: any, e: any): Xc;
848
944
  /**
849
945
  * Modify this instance to communicate with the Cloud Firestore emulator.
850
946
  *
@@ -857,14 +953,14 @@ declare function Zc(t: any, e: any, ...n: any[]): Xc;
857
953
  * @param port - the emulator port (ex: 9000).
858
954
  * @param options.mockUserToken - the mock auth token to use for unit testing
859
955
  * Security Rules.
860
- */ declare function Hc(t: any, e: any, n: any, s?: {}): void;
956
+ */ declare function Jc(t: any, e: any, n: any, s?: {}): void;
861
957
  /**
862
958
  * Deletes the document referred to by the specified `DocumentReference`.
863
959
  *
864
960
  * @param reference - A reference to the document to delete.
865
961
  * @returns A Promise resolved once the document has been successfully
866
962
  * deleted from the backend (note that it won't resolve while you're offline).
867
- */ declare function ml(t: any): Promise<any>;
963
+ */ declare function gl(t: any): Promise<any>;
868
964
  /**
869
965
  * @license
870
966
  * Copyright 2020 Google LLC
@@ -884,7 +980,7 @@ declare function Zc(t: any, e: any, ...n: any[]): Xc;
884
980
  /**
885
981
  * Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
886
982
  * {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
887
- */ declare function Rl(): ga;
983
+ */ declare function Dl(): fh;
888
984
  /**
889
985
  * Disables network usage for this instance. It can be re-enabled via {@link
890
986
  * enableNetwork}. While the network is disabled, any snapshot listeners,
@@ -892,17 +988,17 @@ declare function Zc(t: any, e: any, ...n: any[]): Xc;
892
988
  * operations will be queued until the network is restored.
893
989
  *
894
990
  * @returns A `Promise` that is resolved once the network has been disabled.
895
- */ declare function Wh(t: any): any;
896
- declare function ea(t: any, e: any, ...n: any[]): Jc;
991
+ */ declare function za(t: any): any;
992
+ declare function na(t: any, e: any, ...n: any[]): Yc;
897
993
  /**
898
994
  * Returns a special sentinel `FieldPath` to refer to the ID of a document.
899
995
  * It can be used in queries to sort or filter by the document ID.
900
- */ declare function oa(): ra;
996
+ */ declare function eh(): th;
901
997
  /**
902
998
  * Attempts to enable persistent storage, if possible.
903
999
  *
904
1000
  * Must be called before any other functions (other than
905
- * {@link initializeFirestore}, {@link getFirestore} or
1001
+ * {@link initializeFirestore}, {@link (getFirestore:1)} or
906
1002
  * {@link clearIndexedDbPersistence}.
907
1003
  *
908
1004
  * If this fails, `enableIndexedDbPersistence()` will reject the promise it
@@ -920,7 +1016,7 @@ declare function ea(t: any, e: any, ...n: any[]): Jc;
920
1016
  * @param persistenceSettings - Optional settings object to configure
921
1017
  * persistence.
922
1018
  * @returns A `Promise` that represents successfully enabling persistent storage.
923
- */ declare function Uh(t: any, e: any): any;
1019
+ */ declare function qa(t: any, e: any): any;
924
1020
  /**
925
1021
  * Attempts to enable multi-tab persistent storage, if possible. If enabled
926
1022
  * across all tabs, all operations share access to local persistence, including
@@ -942,25 +1038,25 @@ declare function ea(t: any, e: any, ...n: any[]): Jc;
942
1038
  * @param firestore - The {@link Firestore} instance to enable persistence for.
943
1039
  * @returns A `Promise` that represents successfully enabling persistent
944
1040
  * storage.
945
- */ declare function qh(t: any): any;
1041
+ */ declare function Ka(t: any): any;
946
1042
  /**
947
1043
  * Re-enables use of the network for this {@link Firestore} instance after a prior
948
1044
  * call to {@link disableNetwork}.
949
1045
  *
950
1046
  * @returns A `Promise` that is resolved once the network has been enabled.
951
- */ declare function jh(t: any): any;
952
- declare function Za(...t: any[]): Ya;
953
- declare function Xa(...t: any[]): Ya;
1047
+ */ declare function Wa(t: any): any;
1048
+ declare function zh(...t: any[]): jh;
1049
+ declare function Wh(...t: any[]): jh;
954
1050
  /**
955
1051
  * @internal
956
- */ declare function Bh(t: any): any;
1052
+ */ declare function La(t: any): any;
957
1053
  /**
958
1054
  * Locally writes `mutations` on the async queue.
959
1055
  * @internal
960
- */ declare function Il(t: any, e: any): Promise<any>;
1056
+ */ declare function Tl(t: any, e: any): Promise<any>;
961
1057
  /**
962
1058
  * @license
963
- * Copyright 2020 Google LLC
1059
+ * Copyright 2022 Google LLC
964
1060
  *
965
1061
  * Licensed under the Apache License, Version 2.0 (the "License");
966
1062
  * you may not use this file except in compliance with the License.
@@ -975,12 +1071,26 @@ declare function Xa(...t: any[]): Ya;
975
1071
  * limitations under the License.
976
1072
  */
977
1073
  /**
978
- * A reference to a transaction.
1074
+ * Calculates the number of documents in the result set of the given query,
1075
+ * without actually downloading the documents.
979
1076
  *
980
- * The `Transaction` object passed to a transaction's `updateFunction` provides
981
- * the methods to read and write data within the transaction context. See
982
- * {@link runTransaction}.
983
- */
1077
+ * Using this function to count the documents is efficient because only the
1078
+ * final count, not the documents' data, is downloaded. This function can even
1079
+ * count the documents if the result set would be prohibitively large to
1080
+ * download entirely (e.g. thousands of documents).
1081
+ *
1082
+ * The result received from the server is presented, unaltered, without
1083
+ * considering any local state. That is, documents in the local cache are not
1084
+ * taken into consideration, neither are local modifications not yet
1085
+ * synchronized with the server. Previously-downloaded results, if any, are not
1086
+ * used: every request using this source necessarily involves a round trip to
1087
+ * the server.
1088
+ *
1089
+ * @param query - The query whose result set size to calculate.
1090
+ * @returns A Promise that will be resolved with the count; the count can be
1091
+ * retrieved from `snapshot.data().count`, where `snapshot` is the
1092
+ * `AggregateQuerySnapshot` to which the returned Promise resolves.
1093
+ */ declare function Rl(t: any): Promise<any>;
984
1094
  /**
985
1095
  * @license
986
1096
  * Copyright 2020 Google LLC
@@ -1008,22 +1118,21 @@ declare function Xa(...t: any[]): Ya;
1008
1118
  * @param reference - The reference of the document to fetch.
1009
1119
  * @returns A Promise resolved with a `DocumentSnapshot` containing the
1010
1120
  * current document contents.
1011
- */
1012
- declare function ul(t: any): Promise<Zh>;
1121
+ */ declare function cl(t: any): Promise<sl>;
1013
1122
  /**
1014
1123
  * Reads the document referred to by this `DocumentReference` from cache.
1015
1124
  * Returns an error if the document is not currently cached.
1016
1125
  *
1017
1126
  * @returns A `Promise` resolved with a `DocumentSnapshot` containing the
1018
1127
  * current document contents.
1019
- */ declare function al(t: any): Promise<Zh>;
1128
+ */ declare function hl(t: any): Promise<sl>;
1020
1129
  /**
1021
1130
  * Reads the document referred to by this `DocumentReference` from the server.
1022
1131
  * Returns an error if the network is not available.
1023
1132
  *
1024
1133
  * @returns A `Promise` resolved with a `DocumentSnapshot` containing the
1025
1134
  * current document contents.
1026
- */ declare function hl(t: any): Promise<Zh>;
1135
+ */ declare function ll(t: any): Promise<sl>;
1027
1136
  /**
1028
1137
  * Executes the query and returns the results as a `QuerySnapshot`.
1029
1138
  *
@@ -1033,20 +1142,20 @@ declare function ul(t: any): Promise<Zh>;
1033
1142
  * invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
1034
1143
  *
1035
1144
  * @returns A `Promise` that will be resolved with the results of the query.
1036
- */ declare function ll(t: any): Promise<el>;
1145
+ */ declare function fl(t: any): Promise<rl>;
1037
1146
  /**
1038
1147
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
1039
1148
  * Returns an error if the document is not currently cached.
1040
1149
  *
1041
1150
  * @returns A `Promise` that will be resolved with the results of the query.
1042
- */ declare function fl(t: any): Promise<el>;
1151
+ */ declare function dl(t: any): Promise<rl>;
1043
1152
  /**
1044
1153
  * Executes the query and returns the results as a `QuerySnapshot` from the
1045
1154
  * server. Returns an error if the network is not available.
1046
1155
  *
1047
1156
  * @returns A `Promise` that will be resolved with the results of the query.
1048
- */ declare function dl(t: any): Promise<el>;
1049
- declare function $h(e: any, n: any): import("../src").Firestore;
1157
+ */ declare function _l(t: any): Promise<rl>;
1158
+ declare function Ba(e: any, n: any): import("../src").Firestore;
1050
1159
  /**
1051
1160
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
1052
1161
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
@@ -1065,25 +1174,25 @@ declare function $h(e: any, n: any): import("../src").Firestore;
1065
1174
  * @param n - The value to increment by.
1066
1175
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
1067
1176
  * `updateDoc()`
1068
- */ declare function Vl(t: any): Ea;
1177
+ */ declare function kl(t: any): gh;
1069
1178
  /**
1070
1179
  * Initializes a new instance of {@link Firestore} with the provided settings.
1071
1180
  * Can only be called before any other function, including
1072
- * {@link getFirestore}. If the custom settings are empty, this function is
1073
- * equivalent to calling {@link getFirestore}.
1181
+ * {@link (getFirestore:1)}. If the custom settings are empty, this function is
1182
+ * equivalent to calling {@link (getFirestore:1)}.
1074
1183
  *
1075
1184
  * @param app - The {@link @firebase/app#FirebaseApp} with which the {@link Firestore} instance will
1076
1185
  * be associated.
1077
1186
  * @param settings - A settings object to configure the {@link Firestore} instance.
1078
1187
  * @param databaseId - The name of database.
1079
1188
  * @returns A newly initialized {@link Firestore} instance.
1080
- */ declare function Fh(t: any, e: any, n: any): import("../src").Firestore;
1189
+ */ declare function $a(t: any, e: any, n: any): import("../src").Firestore;
1081
1190
  /**
1082
1191
  * Creates a {@link QueryConstraint} that only returns the first matching documents.
1083
1192
  *
1084
1193
  * @param limit - The maximum number of items to return.
1085
1194
  * @returns The created {@link Query}.
1086
- */ declare function ja(t: any): Qa;
1195
+ */ declare function Uh(t: any): Lh;
1087
1196
  /**
1088
1197
  * Creates a {@link QueryConstraint} that only returns the last matching documents.
1089
1198
  *
@@ -1092,7 +1201,7 @@ declare function $h(e: any, n: any): import("../src").Firestore;
1092
1201
  *
1093
1202
  * @param limit - The maximum number of items to return.
1094
1203
  * @returns The created {@link Query}.
1095
- */ declare function Wa(t: any): Qa;
1204
+ */ declare function qh(t: any): Lh;
1096
1205
  /**
1097
1206
  * Loads a Firestore bundle into the local cache.
1098
1207
  *
@@ -1103,7 +1212,7 @@ declare function $h(e: any, n: any): import("../src").Firestore;
1103
1212
  * @returns A `LoadBundleTask` object, which notifies callers with progress
1104
1213
  * updates, and completion or error events. It can be used as a
1105
1214
  * `Promise<LoadBundleTaskProgress>`.
1106
- */ declare function Hh(t: any, e: any): kh;
1215
+ */ declare function Ja(t: any, e: any): Oa;
1107
1216
  /**
1108
1217
  * Reads a Firestore {@link Query} from local cache, identified by the given
1109
1218
  * name.
@@ -1115,9 +1224,9 @@ declare function $h(e: any, n: any): import("../src").Firestore;
1115
1224
  * @param firestore - The {@link Firestore} instance to read the query from.
1116
1225
  * @param name - The name of the query.
1117
1226
  * @returns A `Promise` that is resolved with the Query or `null`.
1118
- */ declare function Jh(t: any, e: any): any;
1119
- declare function yl(t: any, ...e: any[]): () => void;
1120
- declare function pl(t: any, e: any): () => void;
1227
+ */ declare function Ya(t: any, e: any): any;
1228
+ declare function pl(t: any, ...e: any[]): () => void;
1229
+ declare function Il(t: any, e: any): () => void;
1121
1230
  /**
1122
1231
  * Creates a {@link QueryConstraint} that sorts the query result by the
1123
1232
  * specified field, optionally in descending order instead of ascending.
@@ -1126,7 +1235,7 @@ declare function pl(t: any, e: any): () => void;
1126
1235
  * @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
1127
1236
  * not specified, order will be ascending.
1128
1237
  * @returns The created {@link Query}.
1129
- */ declare function Ga(t: any, e?: string): Ka;
1238
+ */ declare function Bh(t: any, e?: string): $h;
1130
1239
  /**
1131
1240
  * Creates a new immutable instance of {@link Query} that is extended to also include
1132
1241
  * additional query constraints.
@@ -1135,7 +1244,7 @@ declare function pl(t: any, e: any): () => void;
1135
1244
  * @param queryConstraints - The list of {@link QueryConstraint}s to apply.
1136
1245
  * @throws if any of the provided query constraints cannot be combined with the
1137
1246
  * existing or new constraints.
1138
- */ declare function La(t: any, ...e: any[]): any;
1247
+ */ declare function Oh(t: any, ...e: any[]): any;
1139
1248
  /**
1140
1249
  * Returns true if the provided queries point to the same collection and apply
1141
1250
  * the same constraints.
@@ -1144,7 +1253,7 @@ declare function pl(t: any, e: any): () => void;
1144
1253
  * @param right - A `Query` to compare.
1145
1254
  * @returns true if the references point to the same location in the same
1146
1255
  * Firestore database.
1147
- */ declare function sa(t: any, e: any): boolean;
1256
+ */ declare function ia(t: any, e: any): boolean;
1148
1257
  /**
1149
1258
  * Returns true if the provided references are equal.
1150
1259
  *
@@ -1152,7 +1261,7 @@ declare function pl(t: any, e: any): () => void;
1152
1261
  * @param right - A reference to compare.
1153
1262
  * @returns true if the references point to the same location in the same
1154
1263
  * Firestore database.
1155
- */ declare function na(t: any, e: any): boolean;
1264
+ */ declare function sa(t: any, e: any): boolean;
1156
1265
  /**
1157
1266
  * Executes the given `updateFunction` and then attempts to commit the changes
1158
1267
  * applied within the transaction. If any document read within the transaction
@@ -1171,12 +1280,12 @@ declare function pl(t: any, e: any): () => void;
1171
1280
  * (the `updateFunction` returned a failed promise), the promise returned by the
1172
1281
  * `updateFunction `is returned here. Otherwise, if the transaction failed, a
1173
1282
  * rejected promise with the corresponding failure error is returned.
1174
- */ declare function Al(t: any, e: any, n: any): Promise<any>;
1283
+ */ declare function Sl(t: any, e: any, n: any): Promise<any>;
1175
1284
  /**
1176
1285
  * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
1177
1286
  * include a server-generated timestamp in the written data.
1178
- */ declare function bl(): pa;
1179
- declare function _l(t: any, e: any, n: any): Promise<any>;
1287
+ */ declare function Cl(): _h;
1288
+ declare function wl(t: any, e: any, n: any): Promise<any>;
1180
1289
  /**
1181
1290
  * @license
1182
1291
  * Copyright 2021 Google LLC
@@ -1192,7 +1301,7 @@ declare function _l(t: any, e: any, n: any): Promise<any>;
1192
1301
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1193
1302
  * See the License for the specific language governing permissions and
1194
1303
  * limitations under the License.
1195
- */ declare function Dl(t: any, e: any): Promise<any>;
1304
+ */ declare function Ml(t: any, e: any): Promise<any>;
1196
1305
  /**
1197
1306
  * Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
1198
1307
  *
@@ -1212,9 +1321,9 @@ declare function _l(t: any, e: any, n: any): Promise<any>;
1212
1321
  * @param left - A snapshot to compare.
1213
1322
  * @param right - A snapshot to compare.
1214
1323
  * @returns true if the snapshots are equal.
1215
- */ declare function sl(t: any, e: any): any;
1216
- declare function Ja(...t: any[]): za;
1217
- declare function Ha(...t: any[]): za;
1324
+ */ declare function ul(t: any, e: any): any;
1325
+ declare function Qh(...t: any[]): Kh;
1326
+ declare function Gh(...t: any[]): Kh;
1218
1327
  /**
1219
1328
  * Terminates the provided {@link Firestore} instance.
1220
1329
  *
@@ -1222,7 +1331,7 @@ declare function Ha(...t: any[]): za;
1222
1331
  * may be used. Any other function will throw a `FirestoreError`.
1223
1332
  *
1224
1333
  * To restart after termination, create a new instance of FirebaseFirestore with
1225
- * {@link getFirestore}.
1334
+ * {@link (getFirestore:1)}.
1226
1335
  *
1227
1336
  * Termination does not cancel any pending writes, and any promises that are
1228
1337
  * awaiting a response from the server will not be resolved. If you have
@@ -1236,8 +1345,8 @@ declare function Ha(...t: any[]): za;
1236
1345
  *
1237
1346
  * @returns A `Promise` that is resolved when the instance has been successfully
1238
1347
  * terminated.
1239
- */ declare function zh(t: any): any;
1240
- declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1348
+ */ declare function Ha(t: any): any;
1349
+ declare function ml(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1241
1350
  /**
1242
1351
  * Waits until all currently pending writes for the active user have been
1243
1352
  * acknowledged by the backend.
@@ -1253,7 +1362,7 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1253
1362
  *
1254
1363
  * @returns A `Promise` which resolves when all currently pending writes have been
1255
1364
  * acknowledged by the backend.
1256
- */ declare function Qh(t: any): Promise<any>;
1365
+ */ declare function ja(t: any): Promise<any>;
1257
1366
  /**
1258
1367
  * Creates a {@link QueryConstraint} that enforces that documents must contain the
1259
1368
  * specified field and that the value should satisfy the relation constraint
@@ -1264,7 +1373,7 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1264
1373
  * "&lt;=", "!=").
1265
1374
  * @param value - The value for comparison
1266
1375
  * @returns The created {@link Query}.
1267
- */ declare function qa(t: any, e: any, n: any): Ua;
1376
+ */ declare function Fh(t: any, e: any, n: any): Mh;
1268
1377
  /**
1269
1378
  * @license
1270
1379
  * Copyright 2020 Google LLC
@@ -1291,7 +1400,7 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1291
1400
  *
1292
1401
  * @returns A {@link WriteBatch} that can be used to atomically execute multiple
1293
1402
  * writes.
1294
- */ declare function Sl(t: any): rl;
1403
+ */ declare function Ol(t: any): Pl;
1295
1404
  /**
1296
1405
  * @license
1297
1406
  * Copyright 2020 Google LLC
@@ -1316,7 +1425,7 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1316
1425
  * For a `DocumentSnapshot` that points to a non-existing document, any data
1317
1426
  * access will return 'undefined'. You can use the `exists()` method to
1318
1427
  * explicitly verify a document's existence.
1319
- */ declare class Ma {
1428
+ */ declare class Dh {
1320
1429
  /** @hideconstructor protected */
1321
1430
  constructor(t: any, e: any, n: any, s: any, i: any);
1322
1431
  _firestore: any;
@@ -1327,7 +1436,7 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1327
1436
  /** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
1328
1437
  /**
1329
1438
  * The `DocumentReference` for the document included in the `DocumentSnapshot`.
1330
- */ get ref(): Jc;
1439
+ */ get ref(): Yc;
1331
1440
  /**
1332
1441
  * Signals whether or not the document at the snapshot's location exists.
1333
1442
  *
@@ -1370,8 +1479,8 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1370
1479
  /**
1371
1480
  * The Cloud Firestore service interface.
1372
1481
  *
1373
- * Do not call this constructor directly. Instead, use {@link getFirestore}.
1374
- */ declare class zc {
1482
+ * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
1483
+ */ declare class Hc {
1375
1484
  /** @hideconstructor */
1376
1485
  constructor(t: any, e: any, n: any, s: any);
1377
1486
  _authCredentials: any;
@@ -1383,7 +1492,7 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1383
1492
  */
1384
1493
  type: string;
1385
1494
  _persistenceKey: string;
1386
- _settings: Wc;
1495
+ _settings: zc;
1387
1496
  _settingsFrozen: boolean;
1388
1497
  /**
1389
1498
  * The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
@@ -1392,14 +1501,14 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1392
1501
  get _initialized(): boolean;
1393
1502
  get _terminated(): boolean;
1394
1503
  _setSettings(t: any): void;
1395
- _getSettings(): Wc;
1396
- _freezeSettings(): Wc;
1504
+ _getSettings(): zc;
1505
+ _freezeSettings(): zc;
1397
1506
  _delete(): Promise<void>;
1398
1507
  _terminateTask: Promise<void> | undefined;
1399
1508
  /** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
1400
1509
  app: any;
1401
1510
  databaseId: any;
1402
- settings: Wc;
1511
+ settings: zc;
1403
1512
  };
1404
1513
  /**
1405
1514
  * Terminates all components used by this client. Subclasses can override
@@ -1409,17 +1518,17 @@ declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1409
1518
  * Only ever called once.
1410
1519
  */ _terminate(): Promise<void>;
1411
1520
  }
1412
- declare class xh {
1413
- ua: Promise<void>;
1414
- ca: any[];
1415
- aa: boolean;
1416
- ha: any[];
1417
- la: any;
1418
- fa: boolean;
1419
- da: boolean;
1420
- _a: any[];
1521
+ declare class Na {
1522
+ Bc: Promise<void>;
1523
+ Lc: any[];
1524
+ Uc: boolean;
1525
+ qc: any[];
1526
+ Kc: any;
1527
+ Gc: boolean;
1528
+ Qc: boolean;
1529
+ jc: any[];
1421
1530
  No: Zo;
1422
- wa: () => void;
1531
+ Wc: () => void;
1423
1532
  get isShuttingDown(): boolean;
1424
1533
  /**
1425
1534
  * Adds a new operation to the queue without waiting for it to complete (i.e.
@@ -1432,30 +1541,30 @@ declare class xh {
1432
1541
  /**
1433
1542
  * Runs the next operation from the retryable queue. If the operation fails,
1434
1543
  * reschedules with backoff.
1435
- */ ya(): Promise<void>;
1436
- ga(t: any): Promise<any>;
1437
- enqueueAfterDelay(t: any, e: any, n: any): ku;
1438
- ma(): void;
1544
+ */ Jc(): Promise<void>;
1545
+ Hc(t: any): Promise<any>;
1546
+ enqueueAfterDelay(t: any, e: any, n: any): Ou;
1547
+ zc(): void;
1439
1548
  verifyOperationInProgress(): void;
1440
1549
  /**
1441
1550
  * Waits until all currently queued tasks are finished executing. Delayed
1442
1551
  * operations are not run.
1443
- */ Ia(): Promise<void>;
1552
+ */ Xc(): Promise<void>;
1444
1553
  /**
1445
1554
  * For Tests: Determine if a delayed operation with a particular TimerId
1446
1555
  * exists.
1447
- */ Ta(t: any): boolean;
1556
+ */ Zc(t: any): boolean;
1448
1557
  /**
1449
1558
  * For Tests: Runs some or all delayed operations early.
1450
1559
  *
1451
1560
  * @param lastTimerId - Delayed operations up to and including this TimerId
1452
1561
  * will be drained. Pass TimerId.All to run all delayed operations.
1453
1562
  * @returns a Promise that resolves once all operations have been run.
1454
- */ Ea(t: any): Promise<void>;
1563
+ */ ta(t: any): Promise<void>;
1455
1564
  /**
1456
1565
  * For Tests: Skip all subsequent delays for a timer id.
1457
- */ Aa(t: any): void;
1458
- /** Called once a DelayedOperation is run or canceled. */ pa(t: any): void;
1566
+ */ ea(t: any): void;
1567
+ /** Called once a DelayedOperation is run or canceled. */ Yc(t: any): void;
1459
1568
  }
1460
1569
  import { FirebaseError as c } from "@firebase/util/dist/src/errors";
1461
1570
  /**
@@ -1481,12 +1590,12 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
1481
1590
  /**
1482
1591
  * Helper for parsing raw user input (provided via the API) into internal model
1483
1592
  * classes.
1484
- */ declare class _a {
1593
+ */ declare class ah {
1485
1594
  constructor(t: any, e: any, n: any);
1486
1595
  databaseId: any;
1487
1596
  ignoreUndefinedProperties: any;
1488
1597
  It: any;
1489
- /** Creates a new top-level parse context. */ Mc(t: any, e: any, n: any, s?: boolean): da;
1598
+ /** Creates a new top-level parse context. */ da(t: any, e: any, n: any, s?: boolean): ch;
1490
1599
  }
1491
1600
  declare class W {
1492
1601
  constructor(t: any);
@@ -1534,67 +1643,67 @@ declare class st {
1534
1643
  forEach(t: any): void;
1535
1644
  toArray(): any;
1536
1645
  }
1537
- declare class Ta extends ua {
1646
+ declare class mh extends nh {
1538
1647
  constructor(t: any, e: any);
1539
- Oc: any;
1648
+ _a: any;
1540
1649
  _toFieldTransform(t: any): Cn;
1541
1650
  isEqual(t: any): boolean;
1542
1651
  }
1543
- declare class Ia extends ua {
1652
+ declare class wh extends nh {
1544
1653
  constructor(t: any, e: any);
1545
- Oc: any;
1654
+ _a: any;
1546
1655
  _toFieldTransform(t: any): Cn;
1547
1656
  isEqual(t: any): boolean;
1548
1657
  }
1549
- declare class ga extends ua {
1658
+ declare class fh extends nh {
1550
1659
  _toFieldTransform(t: any): null;
1551
1660
  isEqual(t: any): boolean;
1552
1661
  }
1553
- declare class Ya extends Ba {
1662
+ declare class jh extends kh {
1554
1663
  constructor(t: any, e: any, n: any);
1555
1664
  type: any;
1556
- Gc: any;
1557
- Qc: any;
1558
- _apply(t: any): Yc;
1665
+ Ea: any;
1666
+ Aa: any;
1667
+ _apply(t: any): Xc;
1559
1668
  }
1560
- declare class Ea extends ua {
1669
+ declare class gh extends nh {
1561
1670
  constructor(t: any, e: any);
1562
- Fc: any;
1671
+ wa: any;
1563
1672
  _toFieldTransform(t: any): Cn;
1564
1673
  isEqual(t: any): boolean;
1565
1674
  }
1566
- declare class Qa extends Ba {
1675
+ declare class Lh extends kh {
1567
1676
  constructor(t: any, e: any, n: any);
1568
1677
  type: any;
1569
- qc: any;
1570
- Kc: any;
1571
- _apply(t: any): Yc;
1678
+ Ia: any;
1679
+ Ta: any;
1680
+ _apply(t: any): Xc;
1572
1681
  }
1573
- declare class Ka extends Ba {
1682
+ declare class $h extends kh {
1574
1683
  constructor(t: any, e: any);
1575
- $c: any;
1576
- Uc: any;
1684
+ ma: any;
1685
+ pa: any;
1577
1686
  type: string;
1578
- _apply(t: any): Yc;
1687
+ _apply(t: any): Xc;
1579
1688
  }
1580
- declare class pa extends ua {
1689
+ declare class _h extends nh {
1581
1690
  _toFieldTransform(t: any): Cn;
1582
1691
  isEqual(t: any): boolean;
1583
1692
  }
1584
- declare class za extends Ba {
1693
+ declare class Kh extends kh {
1585
1694
  constructor(t: any, e: any, n: any);
1586
1695
  type: any;
1587
- Gc: any;
1588
- Qc: any;
1589
- _apply(t: any): Yc;
1696
+ Ea: any;
1697
+ Aa: any;
1698
+ _apply(t: any): Xc;
1590
1699
  }
1591
- declare class Ua extends Ba {
1700
+ declare class Mh extends kh {
1592
1701
  constructor(t: any, e: any, n: any);
1593
- $c: any;
1594
- Bc: any;
1595
- Lc: any;
1702
+ ma: any;
1703
+ ga: any;
1704
+ ya: any;
1596
1705
  type: string;
1597
- _apply(t: any): Yc;
1706
+ _apply(t: any): Xc;
1598
1707
  }
1599
1708
  /**
1600
1709
  * An instance map that ensures only one Datastore exists per Firestore
@@ -1605,7 +1714,7 @@ declare class Ua extends Ba {
1605
1714
  * user-supplied `FirestoreSettings` object. This is a separate type so that
1606
1715
  * defaults can be supplied and the value can be checked for equality.
1607
1716
  */
1608
- declare class Wc {
1717
+ declare class zc {
1609
1718
  constructor(t: any);
1610
1719
  host: any;
1611
1720
  ssl: any;
@@ -1687,7 +1796,7 @@ declare class Zo {
1687
1796
  * in newer versions of TypeScript defines `finally`, which is not available in
1688
1797
  * IE.
1689
1798
  */
1690
- declare class ku {
1799
+ declare class Ou {
1691
1800
  /**
1692
1801
  * Creates and returns a DelayedOperation that has been scheduled to be
1693
1802
  * executed on the provided asyncQueue after the provided delayMs.
@@ -1701,7 +1810,7 @@ declare class ku {
1701
1810
  * from its delayedOperations list.
1702
1811
  * PORTING NOTE: This exists to prevent making removeDelayedOperation() and
1703
1812
  * the DelayedOperation class public.
1704
- */ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): ku;
1813
+ */ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): Ou;
1705
1814
  constructor(t: any, e: any, n: any, s: any, i: any);
1706
1815
  asyncQueue: any;
1707
1816
  timerId: any;
@@ -1729,7 +1838,7 @@ declare class ku {
1729
1838
  handleDelayElapsed(): void;
1730
1839
  clearTimeout(): void;
1731
1840
  }
1732
- /** A "context" object passed around while parsing user data. */ declare class da {
1841
+ /** A "context" object passed around while parsing user data. */ declare class ch {
1733
1842
  /**
1734
1843
  * Initializes a ParseContext with the given source and path.
1735
1844
  *
@@ -1756,15 +1865,15 @@ declare class ku {
1756
1865
  fieldTransforms: any;
1757
1866
  fieldMask: any;
1758
1867
  get path(): any;
1759
- get bc(): any;
1760
- /** Returns a new context with the specified settings overwritten. */ Pc(t: any): da;
1761
- vc(t: any): da;
1762
- Dc(t: any): da;
1763
- Cc(t: any): da;
1764
- xc(t: any): B;
1868
+ get sa(): any;
1869
+ /** Returns a new context with the specified settings overwritten. */ ia(t: any): ch;
1870
+ ra(t: any): ch;
1871
+ ca(t: any): ch;
1872
+ aa(t: any): ch;
1873
+ ha(t: any): B;
1765
1874
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
1766
- Rc(): void;
1767
- Sc(t: any): void;
1875
+ na(): void;
1876
+ ua(t: any): void;
1768
1877
  }
1769
1878
  /**
1770
1879
  * @license
@@ -1787,4 +1896,4 @@ declare class ku {
1787
1896
  field: any;
1788
1897
  transform: any;
1789
1898
  }
1790
- export { ih as AbstractUserDataWriter, ia as Bytes, Mh as CACHE_SIZE_UNLIMITED, Xc as CollectionReference, Jc as DocumentReference, Zh as DocumentSnapshot, ra as FieldPath, ua as FieldValue, Oh as Firestore, B as FirestoreError, ca as GeoPoint, kh as LoadBundleTask, Yc as Query, Ba as QueryConstraint, tl as QueryDocumentSnapshot, el as QuerySnapshot, Xh as SnapshotMetadata, et as Timestamp, El as Transaction, rl as WriteBatch, ee as _DatabaseId, ut as _DocumentKey, H as _EmptyAppCheckTokenProvider, q as _EmptyAuthCredentialsProvider, ot as _FieldPath, Gc as _cast, O as _debugAssert, Qt as _isBase64Available, x as _logWarn, Lc as _validateIsNotUsedTogether, gl as addDoc, vl as arrayRemove, Pl as arrayUnion, Gh as clearIndexedDbPersistence, Zc as collection, ta as collectionGroup, Hc as connectFirestoreEmulator, ml as deleteDoc, Rl as deleteField, Wh as disableNetwork, ea as doc, oa as documentId, Uh as enableIndexedDbPersistence, qh as enableMultiTabIndexedDbPersistence, jh as enableNetwork, Za as endAt, Xa as endBefore, Bh as ensureFirestoreConfigured, Il as executeWrite, ul as getDoc, al as getDocFromCache, hl as getDocFromServer, ll as getDocs, fl as getDocsFromCache, dl as getDocsFromServer, $h as getFirestore, Vl as increment, Fh as initializeFirestore, ja as limit, Wa as limitToLast, Hh as loadBundle, Jh as namedQuery, yl as onSnapshot, pl as onSnapshotsInSync, Ga as orderBy, La as query, sa as queryEqual, na as refEqual, Al as runTransaction, bl as serverTimestamp, _l as setDoc, Dl as setIndexConfiguration, S as setLogLevel, sl as snapshotEqual, Ja as startAfter, Ha as startAt, zh as terminate, wl as updateDoc, Qh as waitForPendingWrites, qa as where, Sl as writeBatch };
1899
+ export { Zh as AbstractUserDataWriter, ca as AggregateField, aa as AggregateQuerySnapshot, Za as Bytes, Ma as CACHE_SIZE_UNLIMITED, Zc as CollectionReference, Yc as DocumentReference, sl as DocumentSnapshot, th as FieldPath, nh as FieldValue, Fa as Firestore, B as FirestoreError, sh as GeoPoint, Oa as LoadBundleTask, Xc as Query, kh as QueryConstraint, il as QueryDocumentSnapshot, rl as QuerySnapshot, nl as SnapshotMetadata, et as Timestamp, Vl as Transaction, Pl as WriteBatch, ee as _DatabaseId, ut as _DocumentKey, H as _EmptyAppCheckTokenProvider, q as _EmptyAuthCredentialsProvider, ot as _FieldPath, Qc as _cast, M as _debugAssert, Qt as _isBase64Available, x as _logWarn, Uc as _validateIsNotUsedTogether, yl as addDoc, Al as aggregateQuerySnapshotEqual, Nl as arrayRemove, xl as arrayUnion, Qa as clearIndexedDbPersistence, ta as collection, ea as collectionGroup, Jc as connectFirestoreEmulator, gl as deleteDoc, Dl as deleteField, za as disableNetwork, na as doc, eh as documentId, qa as enableIndexedDbPersistence, Ka as enableMultiTabIndexedDbPersistence, Wa as enableNetwork, zh as endAt, Wh as endBefore, La as ensureFirestoreConfigured, Tl as executeWrite, Rl as getCountFromServer, cl as getDoc, hl as getDocFromCache, ll as getDocFromServer, fl as getDocs, dl as getDocsFromCache, _l as getDocsFromServer, Ba as getFirestore, kl as increment, $a as initializeFirestore, Uh as limit, qh as limitToLast, Ja as loadBundle, Ya as namedQuery, pl as onSnapshot, Il as onSnapshotsInSync, Bh as orderBy, Oh as query, ia as queryEqual, sa as refEqual, Sl as runTransaction, Cl as serverTimestamp, wl as setDoc, Ml as setIndexConfiguration, S as setLogLevel, ul as snapshotEqual, Qh as startAfter, Gh as startAt, Ha as terminate, ml as updateDoc, ja as waitForPendingWrites, Fh as where, Ol as writeBatch };