1 | import { FirebaseApp } from 'firebase/app';
|
2 | import * as vue_demi from 'vue-demi';
|
3 | import { MaybeRefOrGetter, App, Ref } from 'vue-demi';
|
4 | import * as firebase_database from 'firebase/database';
|
5 | import { DataSnapshot, DatabaseReference, Query } from 'firebase/database';
|
6 | import { _ as _RefWithState, a as _Simplify, b as _DataSourceOptions, R as ResetOption, c as _Nullable, d as _FirestoreDataSource } from './shared/vuefire.cc4a8ea4.js';
|
7 | import * as firebase_firestore from 'firebase/firestore';
|
8 | import { SnapshotOptions, SnapshotListenOptions, FirestoreDataConverter, DocumentData, FirestoreError, CollectionReference, Query as Query$1, DocumentReference, Timestamp, GeoPoint } from 'firebase/firestore';
|
9 | import * as firebase_auth from 'firebase/auth';
|
10 | import { User, Dependencies, Auth } from 'firebase/auth';
|
11 | import { AppCheckOptions, AppCheck } from 'firebase/app-check';
|
12 | import * as firebase_storage from 'firebase/storage';
|
13 | import { StorageReference, FullMetadata, SettableMetadata, UploadTaskSnapshot, UploadTask, StorageError, UploadMetadata } from 'firebase/storage';
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | declare function createRecordFromDatabaseSnapshot(snapshot: DataSnapshot): VueDatabaseDocumentData<unknown>;
|
22 | interface DatabaseSnapshotSerializer<T = unknown> {
|
23 | (snapshot: DataSnapshot): VueDatabaseDocumentData<T>;
|
24 | }
|
25 | interface _RefDatabase<T> extends _RefWithState<T, Error> {
|
26 | }
|
27 |
|
28 |
|
29 |
|
30 | type VueDatabaseDocumentData<T = unknown> = null | (T & {
|
31 | |
32 |
|
33 |
|
34 | readonly id: string;
|
35 | });
|
36 |
|
37 |
|
38 |
|
39 | type VueDatabaseQueryData<T = unknown> = Array<_Simplify<NonNullable<VueDatabaseDocumentData<T>>>>;
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | interface _DatabaseRefOptions<DataT = unknown> extends _DataSourceOptions<DataT> {
|
46 | |
47 |
|
48 |
|
49 |
|
50 | serialize?: DatabaseSnapshotSerializer;
|
51 | }
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | interface _DatabaseRefOptionsWithDefaults extends _DatabaseRefOptions<unknown> {
|
57 | |
58 |
|
59 |
|
60 | reset: ResetOption;
|
61 | |
62 |
|
63 |
|
64 | wait: boolean;
|
65 | serialize: DatabaseSnapshotSerializer;
|
66 | }
|
67 | declare const DEFAULT_OPTIONS$1: _DatabaseRefOptionsWithDefaults;
|
68 |
|
69 |
|
70 |
|
71 |
|
72 | interface UseDatabaseRefOptions<DataT = unknown> extends _DatabaseRefOptions<DataT> {
|
73 | }
|
74 |
|
75 | type UseListOptions<DataT = unknown> = UseDatabaseRefOptions<DataT>;
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 | declare function useDatabaseList<T = unknown>(reference: MaybeRefOrGetter<_Nullable<DatabaseReference | Query>>, options?: UseListOptions<T>): _RefDatabase<VueDatabaseQueryData<T>>;
|
85 |
|
86 |
|
87 |
|
88 | declare const useList: typeof useDatabaseList;
|
89 | type UseObjectOptions<DataT = unknown> = UseDatabaseRefOptions<DataT>;
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 | declare function useDatabaseObject<T = unknown>(reference: MaybeRefOrGetter<_Nullable<DatabaseReference>>, options?: UseObjectOptions<T>): _RefDatabase<VueDatabaseDocumentData<T> | undefined>;
|
99 |
|
100 |
|
101 |
|
102 | declare const useObject: typeof useDatabaseObject;
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 | declare function useDatabase(name?: string): firebase_database.Database;
|
110 |
|
111 |
|
112 |
|
113 |
|
114 | interface FirestoreRefOptions<TData = unknown> extends _DataSourceOptions<TData> {
|
115 | |
116 |
|
117 |
|
118 |
|
119 | maxRefDepth?: number;
|
120 | |
121 |
|
122 |
|
123 | snapshotOptions?: SnapshotOptions;
|
124 | |
125 |
|
126 |
|
127 | snapshotListenOptions?: SnapshotListenOptions;
|
128 | |
129 |
|
130 |
|
131 | converter?: FirestoreDataConverter<unknown>;
|
132 | }
|
133 |
|
134 |
|
135 |
|
136 |
|
137 | interface _FirestoreRefOptionsWithDefaults extends FirestoreRefOptions {
|
138 | |
139 |
|
140 |
|
141 | reset: ResetOption;
|
142 | |
143 |
|
144 |
|
145 | wait: boolean;
|
146 | |
147 |
|
148 |
|
149 | maxRefDepth: number;
|
150 | |
151 |
|
152 |
|
153 |
|
154 | converter: FirestoreDataConverter<unknown>;
|
155 | |
156 |
|
157 |
|
158 | snapshotOptions: SnapshotOptions;
|
159 | }
|
160 |
|
161 |
|
162 |
|
163 | declare const DEFAULT_OPTIONS: _FirestoreRefOptionsWithDefaults;
|
164 |
|
165 | interface _UseFirestoreRefOptions<TData = unknown> extends FirestoreRefOptions<TData> {
|
166 | |
167 |
|
168 |
|
169 | converter?: FirestoreDataConverter<unknown>;
|
170 | }
|
171 |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 | type _InferReferenceType<R> = R extends CollectionReference<infer T> | Query$1<infer T> | DocumentReference<infer T> ? T : R;
|
177 |
|
178 |
|
179 |
|
180 | type VueFirestoreDocumentData<T = DocumentData> = null | (T & {
|
181 | |
182 |
|
183 |
|
184 | readonly id: string;
|
185 | });
|
186 | type VueFirestoreQueryData<T = DocumentData> = Array<_Simplify<NonNullable<VueFirestoreDocumentData<T>>>>;
|
187 |
|
188 |
|
189 |
|
190 | interface _RefFirestore<T> extends _RefWithState<T, FirestoreError> {
|
191 | }
|
192 |
|
193 | interface UseCollectionOptions<TData = unknown> extends _UseFirestoreRefOptions<TData> {
|
194 | }
|
195 |
|
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 |
|
202 |
|
203 | declare function useCollection<R extends CollectionReference<unknown> | Query$1<unknown>>(collectionRef: MaybeRefOrGetter<_Nullable<R>>, options?: UseCollectionOptions<_InferReferenceType<R>[]>): _RefFirestore<_InferReferenceType<R>[]>;
|
204 |
|
205 |
|
206 |
|
207 |
|
208 |
|
209 |
|
210 |
|
211 |
|
212 | declare function useCollection<T>(collectionRef: MaybeRefOrGetter<_Nullable<CollectionReference<unknown> | Query$1<unknown>>>, options?: UseCollectionOptions<T[]>): _RefFirestore<VueFirestoreQueryData<T>>;
|
213 | interface UseDocumentOptions<TData = unknown> extends _UseFirestoreRefOptions<TData> {
|
214 | }
|
215 |
|
216 |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 |
|
222 | declare function useDocument<R extends DocumentReference<unknown>>(documentRef: MaybeRefOrGetter<_Nullable<R>>, options?: UseDocumentOptions<_InferReferenceType<R>>): _RefFirestore<_InferReferenceType<R> | undefined>;
|
223 |
|
224 |
|
225 |
|
226 |
|
227 |
|
228 |
|
229 |
|
230 |
|
231 | declare function useDocument<T>(documentRef: MaybeRefOrGetter<_Nullable<DocumentReference>>, options?: UseDocumentOptions<T>): _RefFirestore<VueFirestoreDocumentData<T> | undefined>;
|
232 |
|
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 | declare function useFirestore(name?: string): firebase_firestore.Firestore;
|
239 |
|
240 |
|
241 |
|
242 |
|
243 | declare const firestoreDefaultConverter: FirestoreDataConverter<VueFirestoreDocumentData>;
|
244 |
|
245 |
|
246 |
|
247 |
|
248 | declare const devalueCustomStringifiers: {
|
249 | TimeStamp: (data: unknown) => false | {
|
250 | seconds: number;
|
251 | nanoseconds: number;
|
252 | };
|
253 | GeoPoint: (data: unknown) => false | {
|
254 | latitude: number;
|
255 | longitude: number;
|
256 | };
|
257 | };
|
258 |
|
259 |
|
260 |
|
261 |
|
262 | declare const devalueCustomParsers: {
|
263 | TimeStamp: (data: ReturnType<Timestamp["toJSON"]>) => Timestamp;
|
264 | GeoPoint: (data: ReturnType<GeoPoint["toJSON"]>) => GeoPoint;
|
265 | };
|
266 |
|
267 |
|
268 |
|
269 |
|
270 | interface DatabasePluginOptions extends _DatabaseRefOptions {
|
271 | |
272 |
|
273 |
|
274 | bindName?: string;
|
275 | |
276 |
|
277 |
|
278 | unbindName?: string;
|
279 | }
|
280 | type VueFirebaseObject = Record<string, Query | DatabaseReference>;
|
281 | type FirebaseOption = VueFirebaseObject | (() => VueFirebaseObject);
|
282 | /**
|
283 | * Install this plugin if you want to add `$databaseBind` and `$databaseUnbind` functions. Note this plugin is only necessary if
|
284 | * you use the Options API. If you **exclusively use the Composition API** (e.g. `useDatabaseObject()` and `useDatabaseList()`), you
|
285 | * should not add it.
|
286 | *
|
287 | * @deprecated Use `VueFire` and `VueFireDatabaseOptionsAPI` with the `modules` option instead.
|
288 | *
|
289 | * @param app
|
290 | * @param pluginOptions
|
291 | */
|
292 | declare function databasePlugin(app: App, pluginOptions?: DatabasePluginOptions, firebaseApp?: FirebaseApp): void;
|
293 | /**
|
294 | * VueFire Database Module to be added to the `VueFire` Vue plugin options. If you **exclusively use the Composition
|
295 | * API** (e.g. `useDatabaseObject()` and `useDatabaseList()`), you should not add it.
|
296 | *
|
297 | * @example
|
298 | *
|
299 | * ```ts
|
300 | * import { createApp } from 'vue'
|
301 | * import { VueFire, VueFireDatabaseOptionsAPI } from 'vuefire'
|
302 | *
|
303 | * const app = createApp(App)
|
304 | * app.use(VueFire, {
|
305 | * modules: [VueFireDatabaseOptionsAPI()],
|
306 | * })
|
307 | * ```
|
308 | */
|
309 | declare function VueFireDatabaseOptionsAPI(pluginOptions?: DatabasePluginOptions): (firebaseApp: FirebaseApp, app: App) => void;
|
310 | declare module 'vue' {
|
311 | interface ComponentCustomProperties {
|
312 | |
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 | $databaseBind(name: string, reference: DatabaseReference | Query, options?: _DatabaseRefOptions): Promise<DataSnapshot>;
|
320 | |
321 |
|
322 |
|
323 |
|
324 | $rtdbBind(name: string, reference: DatabaseReference | Query, options?: _DatabaseRefOptions): Promise<DataSnapshot>;
|
325 | |
326 |
|
327 |
|
328 | $databaseUnbind: (name: string, reset?: ResetOption) => void;
|
329 | |
330 |
|
331 |
|
332 |
|
333 | $rtdbUnbind: (name: string, reset?: ResetOption) => void;
|
334 | |
335 |
|
336 |
|
337 | $firebaseRefs: Readonly<Record<string, DatabaseReference>>;
|
338 | }
|
339 | interface ComponentCustomOptions {
|
340 | |
341 |
|
342 |
|
343 | firebase?: FirebaseOption;
|
344 | }
|
345 | }
|
346 |
|
347 | type VueFirestoreObject = Record<string, _FirestoreDataSource>;
|
348 | type FirestoreOption = VueFirestoreObject | (() => VueFirestoreObject);
|
349 | /**
|
350 | * Options for the Firebase Database Plugin that enables the Options API such as `$firestoreBind` and
|
351 | * `$firestoreUnbind`.
|
352 | */
|
353 | interface FirestorePluginOptions extends FirestoreRefOptions {
|
354 | /**
|
355 | * @deprecated: was largely unused and not very useful. Please open an issue with use cases if you need this.
|
356 | */
|
357 | bindName?: string;
|
358 | /**
|
359 | * @deprecated: was largely unused and not very useful. Please open an issue with use cases if you need this.
|
360 | */
|
361 | unbindName?: string;
|
362 | }
|
363 | /**
|
364 | * Install this plugin to add `$firestoreBind` and `$firestoreUnbind` functions. Note this plugin is not necessary if
|
365 | * you exclusively use the Composition API (`useDocument()` and `useCollection()`).
|
366 | * @deprecated Use `VueFire` and `VueFireFirestoreOptionsAPI` with the `modules` option instead.b
|
367 | *
|
368 | * @param app
|
369 | * @param pluginOptions
|
370 | */
|
371 | declare const firestorePlugin: (app: App, pluginOptions?: FirestorePluginOptions, firebaseApp?: FirebaseApp) => void;
|
372 |
|
373 |
|
374 |
|
375 |
|
376 |
|
377 |
|
378 |
|
379 |
|
380 |
|
381 |
|
382 |
|
383 |
|
384 |
|
385 |
|
386 |
|
387 | declare function VueFireFirestoreOptionsAPI(pluginOptions?: FirestorePluginOptions): (firebaseApp: FirebaseApp, app: App) => void;
|
388 | declare module 'vue' {
|
389 | interface ComponentCustomProperties {
|
390 | |
391 |
|
392 |
|
393 |
|
394 |
|
395 |
|
396 |
|
397 | $firestoreBind<T = DocumentData>(name: string, reference: Query$1<T> | CollectionReference<T>, options?: FirestoreRefOptions): Promise<T[]>;
|
398 | $firestoreBind<T = DocumentData>(name: string, reference: DocumentReference<T>, options?: FirestoreRefOptions): Promise<T>;
|
399 | |
400 |
|
401 |
|
402 | $firestoreUnbind: (name: string, reset?: ResetOption) => void;
|
403 | |
404 |
|
405 |
|
406 | $firestoreRefs: Readonly<Record<string, DocumentReference<unknown> | CollectionReference<unknown>>>;
|
407 | }
|
408 | interface ComponentCustomOptions {
|
409 | |
410 |
|
411 |
|
412 | firestore?: FirestoreOption;
|
413 | }
|
414 | }
|
415 |
|
416 |
|
417 |
|
418 |
|
419 |
|
420 |
|
421 |
|
422 | declare function useFirebaseApp(name?: string): FirebaseApp;
|
423 |
|
424 |
|
425 |
|
426 |
|
427 |
|
428 |
|
429 | declare function useCurrentUser(name?: string): Ref<_Nullable<User>, _Nullable<User>>;
|
430 |
|
431 |
|
432 |
|
433 |
|
434 |
|
435 |
|
436 | declare function useIsCurrentUserLoaded(name?: string): vue_demi.ComputedRef<boolean>;
|
437 |
|
438 |
|
439 |
|
440 |
|
441 |
|
442 |
|
443 | declare function updateCurrentUserProfile(profile: {
|
444 | displayName?: _Nullable<string>;
|
445 | photoURL?: _Nullable<string>;
|
446 | }): Promise<void>;
|
447 |
|
448 |
|
449 |
|
450 |
|
451 |
|
452 | declare function getCurrentUser(name?: string): Promise<_Nullable<User>>;
|
453 |
|
454 |
|
455 |
|
456 |
|
457 | interface VueFireAuthOptions {
|
458 | |
459 |
|
460 |
|
461 | initialUser?: _Nullable<User>;
|
462 | |
463 |
|
464 |
|
465 | dependencies: Dependencies;
|
466 | }
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 | declare function VueFireAuth(initialUser?: _Nullable<User>): VueFireModule;
|
489 |
|
490 |
|
491 |
|
492 |
|
493 |
|
494 | declare const _VueFireAuthKey: unique symbol;
|
495 |
|
496 |
|
497 |
|
498 | interface VueFireAuthOptionsFromAuth extends Pick<VueFireAuthOptions, 'initialUser'> {
|
499 | |
500 |
|
501 |
|
502 | auth: Auth;
|
503 | }
|
504 |
|
505 |
|
506 |
|
507 |
|
508 |
|
509 |
|
510 |
|
511 | declare function VueFireAuthOptionsFromAuth({ auth, initialUser, }: VueFireAuthOptionsFromAuth): VueFireModule;
|
512 |
|
513 |
|
514 |
|
515 |
|
516 |
|
517 |
|
518 | declare function VueFireAuthWithDependencies({ dependencies, initialUser, }: VueFireAuthOptions): VueFireModule;
|
519 |
|
520 |
|
521 |
|
522 |
|
523 | declare function _VueFireAuthInit(firebaseApp: FirebaseApp, app: App, initialUser: _Nullable<User>, dependencies?: Dependencies, auth?: Auth): readonly [vue_demi.Ref<{
|
524 | readonly emailVerified: boolean;
|
525 | readonly isAnonymous: boolean;
|
526 | readonly metadata: {
|
527 | readonly creationTime?: string | undefined;
|
528 | readonly lastSignInTime?: string | undefined;
|
529 | };
|
530 | readonly providerData: {
|
531 | readonly displayName: string | null;
|
532 | readonly email: string | null;
|
533 | readonly phoneNumber: string | null;
|
534 | readonly photoURL: string | null;
|
535 | readonly providerId: string;
|
536 | readonly uid: string;
|
537 | }[];
|
538 | readonly refreshToken: string;
|
539 | readonly tenantId: string | null;
|
540 | delete: () => Promise<void>;
|
541 | getIdToken: (forceRefresh?: boolean) => Promise<string>;
|
542 | getIdTokenResult: (forceRefresh?: boolean) => Promise<firebase_auth.IdTokenResult>;
|
543 | reload: () => Promise<void>;
|
544 | toJSON: () => object;
|
545 | readonly displayName: string | null;
|
546 | readonly email: string | null;
|
547 | readonly phoneNumber: string | null;
|
548 | readonly photoURL: string | null;
|
549 | readonly providerId: string;
|
550 | readonly uid: string;
|
551 | } | null | undefined, _Nullable<User> | {
|
552 | readonly emailVerified: boolean;
|
553 | readonly isAnonymous: boolean;
|
554 | readonly metadata: {
|
555 | readonly creationTime?: string | undefined;
|
556 | readonly lastSignInTime?: string | undefined;
|
557 | };
|
558 | readonly providerData: {
|
559 | readonly displayName: string | null;
|
560 | readonly email: string | null;
|
561 | readonly phoneNumber: string | null;
|
562 | readonly photoURL: string | null;
|
563 | readonly providerId: string;
|
564 | readonly uid: string;
|
565 | }[];
|
566 | readonly refreshToken: string;
|
567 | readonly tenantId: string | null;
|
568 | delete: () => Promise<void>;
|
569 | getIdToken: (forceRefresh?: boolean) => Promise<string>;
|
570 | getIdTokenResult: (forceRefresh?: boolean) => Promise<firebase_auth.IdTokenResult>;
|
571 | reload: () => Promise<void>;
|
572 | toJSON: () => object;
|
573 | readonly displayName: string | null;
|
574 | readonly email: string | null;
|
575 | readonly phoneNumber: string | null;
|
576 | readonly photoURL: string | null;
|
577 | readonly providerId: string;
|
578 | readonly uid: string;
|
579 | }>, Auth];
|
580 |
|
581 |
|
582 |
|
583 |
|
584 |
|
585 |
|
586 | declare function useFirebaseAuth(): Auth | null;
|
587 |
|
588 |
|
589 |
|
590 |
|
591 |
|
592 |
|
593 |
|
594 | declare function usePendingPromises(app?: FirebaseApp): Promise<(readonly [string, unknown])[]>;
|
595 |
|
596 | interface SSRStore {
|
597 | f: Record<string, unknown>;
|
598 | r: Record<string, unknown>;
|
599 | s: Record<string, string>;
|
600 | u: Record<string, unknown>;
|
601 | }
|
602 |
|
603 |
|
604 |
|
605 |
|
606 |
|
607 |
|
608 |
|
609 | declare function useSSRInitialState(initialState: SSRStore | undefined, firebaseApp: FirebaseApp): SSRStore;
|
610 |
|
611 |
|
612 |
|
613 |
|
614 | declare function useAppCheckToken(): Ref<string | undefined, string | undefined>;
|
615 | interface VueFireAppCheckOptions extends AppCheckOptions {
|
616 | |
617 |
|
618 |
|
619 |
|
620 | debug?: boolean | string;
|
621 | }
|
622 |
|
623 |
|
624 |
|
625 |
|
626 |
|
627 |
|
628 |
|
629 |
|
630 |
|
631 |
|
632 |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 | declare function VueFireAppCheck(options: VueFireAppCheckOptions): (firebaseApp: FirebaseApp, app: App) => void;
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 | declare function useAppCheck(name?: string): AppCheck;
|
644 |
|
645 |
|
646 |
|
647 |
|
648 |
|
649 |
|
650 |
|
651 | declare function useFirebaseStorage(name?: string): firebase_storage.FirebaseStorage;
|
652 |
|
653 |
|
654 |
|
655 |
|
656 |
|
657 | declare function useStorageFileUrl(storageRef: MaybeRefOrGetter<_Nullable<StorageReference>>): {
|
658 | url: vue_demi.Ref<string | null | undefined, string | null | undefined>;
|
659 | refresh: () => Promise<string | null>;
|
660 | promise: vue_demi.ShallowRef<Promise<string | null>, Promise<string | null>>;
|
661 | };
|
662 |
|
663 |
|
664 |
|
665 |
|
666 |
|
667 |
|
668 | declare function useStorageFileMetadata(storageRef: MaybeRefOrGetter<_Nullable<StorageReference>>): {
|
669 | metadata: vue_demi.ShallowRef<FullMetadata | null | undefined, FullMetadata | null | undefined>;
|
670 | update: (newMetadata: SettableMetadata) => Promise<FullMetadata | null>;
|
671 | refresh: () => Promise<FullMetadata | null>;
|
672 | promise: vue_demi.ShallowRef<Promise<FullMetadata | null>, Promise<FullMetadata | null>>;
|
673 | };
|
674 |
|
675 |
|
676 |
|
677 |
|
678 |
|
679 | declare function useStorageFile(storageRef: MaybeRefOrGetter<_Nullable<StorageReference>>): {
|
680 | url: vue_demi.Ref<string | null | undefined, string | null | undefined>;
|
681 | metadata: vue_demi.ShallowRef<FullMetadata | null | undefined, FullMetadata | null | undefined>;
|
682 | snapshot: vue_demi.ShallowRef<UploadTaskSnapshot | null | undefined, UploadTaskSnapshot | null | undefined>;
|
683 | uploadTask: vue_demi.ShallowRef<UploadTask | null | undefined, UploadTask | null | undefined>;
|
684 | uploadError: vue_demi.ShallowRef<StorageError | null | undefined, StorageError | null | undefined>;
|
685 | uploadProgress: vue_demi.ComputedRef<number | null>;
|
686 | upload: (newData: Blob | Uint8Array | ArrayBuffer, newMetadata?: UploadMetadata) => Promise<unknown> | undefined;
|
687 | updateMetadata: (newMetadata: SettableMetadata) => Promise<FullMetadata | null>;
|
688 | refresh: () => Promise<[string | null, FullMetadata | null]>;
|
689 | };
|
690 |
|
691 |
|
692 |
|
693 | declare const useStorage: typeof useFirebaseStorage;
|
694 |
|
695 |
|
696 |
|
697 | declare const useStorageUrl: typeof useStorageFileUrl;
|
698 |
|
699 |
|
700 |
|
701 | declare const useStorageMetadata: typeof useStorageFileMetadata;
|
702 |
|
703 |
|
704 |
|
705 | declare const useStorageObject: typeof useStorageFile;
|
706 |
|
707 |
|
708 |
|
709 |
|
710 |
|
711 |
|
712 |
|
713 |
|
714 | interface VueFireOptions {
|
715 | |
716 |
|
717 |
|
718 | firebaseApp: FirebaseApp;
|
719 | |
720 |
|
721 |
|
722 |
|
723 | modules?: VueFireModule[];
|
724 | }
|
725 |
|
726 |
|
727 |
|
728 | interface VueFireModule {
|
729 | (firebaseApp: FirebaseApp, app: App): void;
|
730 | }
|
731 |
|
732 |
|
733 |
|
734 | declare function VueFire(app: App, { firebaseApp, modules }: VueFireOptions): void;
|
735 |
|
736 | export { type DatabasePluginOptions, type DatabaseSnapshotSerializer, type FirebaseOption, type FirestoreOption, type FirestorePluginOptions, type UseCollectionOptions, type UseDatabaseRefOptions, type UseDocumentOptions, type UseListOptions, type UseObjectOptions, type VueDatabaseDocumentData, type VueDatabaseQueryData, VueFire, VueFireAppCheck, type VueFireAppCheckOptions, VueFireAuth, type VueFireAuthOptions, VueFireAuthOptionsFromAuth, VueFireAuthWithDependencies, VueFireDatabaseOptionsAPI, VueFireFirestoreOptionsAPI, type VueFireModule, type VueFireOptions, type VueFirebaseObject, type VueFirestoreDocumentData, type VueFirestoreObject, type VueFirestoreQueryData, type _RefDatabase, type _RefFirestore, _VueFireAuthInit, _VueFireAuthKey, createRecordFromDatabaseSnapshot as databaseDefaultSerializer, databasePlugin, devalueCustomParsers, devalueCustomStringifiers, firestoreDefaultConverter, firestorePlugin, getCurrentUser, DEFAULT_OPTIONS$1 as globalDatabaseOptions, DEFAULT_OPTIONS as globalFirestoreOptions, databasePlugin as rtdbPlugin, updateCurrentUserProfile, useAppCheck, useAppCheckToken, useCollection, useCurrentUser, useDatabase, useDatabaseList, useDatabaseObject, useDocument, useFirebaseApp, useFirebaseAuth, useFirebaseStorage, useFirestore, useIsCurrentUserLoaded, useList, useObject, usePendingPromises, useSSRInitialState, useStorage, useStorageFile, useStorageFileMetadata, useStorageFileUrl, useStorageMetadata, useStorageObject, useStorageUrl };
|