@@ -16,7 +16,7 @@ import { Subscribe } from '@firebase/util';
1616import  { Unsubscribe  } from  ' @firebase/util'  ;
1717
1818//  @public
19- export  function  connectStorageEmulator(storage :  StorageService , host :  string , port :  number ):  void ;
19+ export  function  connectStorageEmulator(storage :  FirebaseStorage , host :  string , port :  number ):  void ;
2020
2121//  @public
2222export  function  deleteObject(ref :  StorageReference ):  Promise <void >;
@@ -36,6 +36,13 @@ export class _FbsBlob {
3636    uploadData():  Blob  |  Uint8Array ;
3737}
3838
39+ //  @public
40+ export  interface  FirebaseStorage  extends  _FirebaseService  {
41+     readonly  app:  FirebaseApp ;
42+     maxOperationRetryTime:  number ;
43+     maxUploadRetryTime:  number ;
44+ }
45+ 
3946//  @public
4047export  interface  FirebaseStorageError  extends  FirebaseError  {
4148    serverResponse:  string  |  null ;
@@ -65,7 +72,7 @@ export function getDownloadURL(ref: StorageReference): Promise<string>;
6572export  function  getMetadata(ref :  StorageReference ):  Promise <FullMetadata >;
6673
6774//  @public
68- export  function  getStorage(app ? :  FirebaseApp , bucketUrl ? :  string ):  StorageService ;
75+ export  function  getStorage(app ? :  FirebaseApp , bucketUrl ? :  string ):  FirebaseStorage ;
6976
7077//  @public
7178export  function  list(ref :  StorageReference , options ? :  ListOptions ):  Promise <ListResult >;
@@ -106,25 +113,25 @@ export class _Location {
106113    }
107114
108115//  @public
109- export  function  ref(storage :  StorageService , url ? :  string ):  StorageReference ;
116+ export  function  ref(storage :  FirebaseStorage , url ? :  string ):  StorageReference ;
110117
111118//  @public
112- export  function  ref(storageOrRef :  StorageService  |  StorageReference , path ? :  string ):  StorageReference ;
119+ export  function  ref(storageOrRef :  FirebaseStorage  |  StorageReference , path ? :  string ):  StorageReference ;
113120
114121//  @internal 
115122export  class  _Reference  {
116-     //  Warning: (ae-forgotten-export) The symbol "StorageService " needs to be exported by the entry point index.d.ts
117-     constructor (_service :  StorageService_2 , location :  string  |  _Location );
123+     //  Warning: (ae-forgotten-export) The symbol "FirebaseStorageImpl " needs to be exported by the entry point index.d.ts
124+     constructor (_service :  FirebaseStorageImpl , location :  string  |  _Location );
118125    get  bucket():  string ;
119126    get  fullPath():  string ;
120127    //  (undocumented)
121128    _location:  _Location ;
122129    get  name():  string ;
123130    //  (undocumented)
124-     protected  _newRef(service :  StorageService_2 , location :  _Location ):  _Reference ;
131+     protected  _newRef(service :  FirebaseStorageImpl , location :  _Location ):  _Reference ;
125132    get  parent():  _Reference  |  null ;
126133    get  root():  _Reference ;
127-     get  storage():  StorageService_2 ;
134+     get  storage():  FirebaseStorageImpl ;
128135    _throwIfRoot(name :  string ):  void ;
129136    //  @override
130137    toString():  string ;
@@ -159,17 +166,10 @@ export interface StorageReference {
159166    name:  string ;
160167    parent:  StorageReference  |  null ;
161168    root:  StorageReference ;
162-     storage:  StorageService ;
169+     storage:  FirebaseStorage ;
163170    toString():  string ;
164171}
165172
166- //  @public
167- export  interface  StorageService  extends  _FirebaseService  {
168-     readonly  app:  FirebaseApp ;
169-     maxOperationRetryTime:  number ;
170-     maxUploadRetryTime:  number ;
171- }
172- 
173173//  @public
174174export  type  StringFormat  =  string ;
175175
0 commit comments