@@ -21,11 +21,6 @@ export function connectStorageEmulator(storage: FirebaseStorage, host: string, p
21
21
mockUserToken? : EmulatorMockTokenOptions | string ;
22
22
}): void ;
23
23
24
- // Warning: (ae-forgotten-export) The symbol "StringData" needs to be exported by the entry point index.d.ts
25
- //
26
- // @internal (undocumented)
27
- export function _dataFromString(format : StringFormat , stringData : string ): StringData ;
28
-
29
24
// @public
30
25
export function deleteObject(ref : StorageReference ): Promise <void >;
31
26
@@ -53,51 +48,6 @@ export interface FirebaseStorage extends _FirebaseService {
53
48
maxUploadRetryTime: number ;
54
49
}
55
50
56
- // @internal
57
- export class _FirebaseStorageImpl implements FirebaseStorage {
58
- constructor (
59
- app : FirebaseApp , _authProvider : Provider <FirebaseAuthInternalName >,
60
- _appCheckProvider : Provider <AppCheckInternalComponentName >,
61
- _url ? : string | undefined , _firebaseVersion ? : string | undefined );
62
- readonly app: FirebaseApp ;
63
- // (undocumented)
64
- readonly _appCheckProvider: Provider <AppCheckInternalComponentName >;
65
- // (undocumented)
66
- protected readonly _appId: string | null ;
67
- // (undocumented)
68
- readonly _authProvider: Provider <FirebaseAuthInternalName >;
69
- // (undocumented)
70
- _bucket: _Location | null ;
71
- _delete(): Promise <void >;
72
- // (undocumented)
73
- readonly _firebaseVersion? : string | undefined ;
74
- // (undocumented)
75
- _getAppCheckToken(): Promise <string | null >;
76
- // (undocumented)
77
- _getAuthToken(): Promise <string | null >;
78
- get host(): string ;
79
- set host(host : string );
80
- // Warning: (ae-forgotten-export) The symbol "RequestInfo" needs to be exported by the entry point index.d.ts
81
- // Warning: (ae-forgotten-export) The symbol "Connection" needs to be exported by the entry point index.d.ts
82
- // Warning: (ae-forgotten-export) The symbol "Request" needs to be exported by the entry point index.d.ts
83
- //
84
- // (undocumented)
85
- _makeRequest<T >(requestInfo : RequestInfo_2 <T >, requestFactory : () => Connection , authToken : string | null , appCheckToken : string | null ): Request_2 <T >;
86
- // (undocumented)
87
- makeRequestWithTokens<T >(requestInfo : RequestInfo_2 <T >, requestFactory : () => Connection ): Promise <Request_2 <T >>;
88
- _makeStorageReference(loc : _Location ): _Reference ;
89
- get maxOperationRetryTime(): number ;
90
- set maxOperationRetryTime(time : number );
91
- get maxUploadRetryTime(): number ;
92
- set maxUploadRetryTime(time : number );
93
- // (undocumented)
94
- _overrideAuthToken? : string ;
95
- // (undocumented)
96
- _protocol: string ;
97
- // (undocumented)
98
- readonly _url? : string | undefined ;
99
- }
100
-
101
51
// @public
102
52
export interface FullMetadata extends UploadMetadata {
103
53
bucket: string ;
@@ -112,6 +62,12 @@ export interface FullMetadata extends UploadMetadata {
112
62
updated: string ;
113
63
}
114
64
65
+ // @public
66
+ export function getBlob(ref : StorageReference , maxDownloadSizeBytes ? : number ): Promise <Blob >;
67
+
68
+ // @public
69
+ export function getBytes(ref : StorageReference , maxDownloadSizeBytes ? : number ): Promise <ArrayBuffer >;
70
+
115
71
// @internal (undocumented)
116
72
export function _getChild(ref : StorageReference , childPath : string ): _Reference ;
117
73
@@ -124,14 +80,6 @@ export function getMetadata(ref: StorageReference): Promise<FullMetadata>;
124
80
// @public
125
81
export function getStorage(app ? : FirebaseApp , bucketUrl ? : string ): FirebaseStorage ;
126
82
127
- // Warning: (ae-forgotten-export) The symbol "StorageError" needs to be exported by the entry point index.d.ts
128
- //
129
- // @internal (undocumented)
130
- export function _invalidArgument(message : string ): StorageError_2 ;
131
-
132
- // @internal (undocumented)
133
- export function _invalidRootOperation(name : string ): StorageError_2 ;
134
-
135
83
// @public
136
84
export function list(ref : StorageReference , options ? : ListOptions ): Promise <ListResult >;
137
85
@@ -176,19 +124,25 @@ export function ref(storage: FirebaseStorage, url?: string): StorageReference;
176
124
// @public
177
125
export function ref(storageOrRef : FirebaseStorage | StorageReference , path ? : string ): StorageReference ;
178
126
179
- // @internal
127
+ // @public (undocumented)
180
128
export class _Reference {
181
- constructor (_service : _FirebaseStorageImpl , location : string | _Location );
129
+ // Warning: (ae-forgotten-export) The symbol "FirebaseStorageImpl" needs to be exported by the entry point index.d.ts
130
+ // Warning: (ae-incompatible-release-tags) The symbol "__constructor" is marked as @public, but its signature references "Location" which is marked as @internal
131
+ constructor (_service : FirebaseStorageImpl , location : string | _Location );
182
132
get bucket(): string ;
183
133
get fullPath(): string ;
134
+ // Warning: (ae-incompatible-release-tags) The symbol "_location" is marked as @public, but its signature references "Location" which is marked as @internal
135
+ //
184
136
// (undocumented)
185
137
_location: _Location ;
186
138
get name(): string ;
139
+ // Warning: (ae-incompatible-release-tags) The symbol "_newRef" is marked as @public, but its signature references "Location" which is marked as @internal
140
+ //
187
141
// (undocumented)
188
- protected _newRef(service : _FirebaseStorageImpl , location : _Location ): _Reference ;
142
+ protected _newRef(service : FirebaseStorageImpl , location : _Location ): _Reference ;
189
143
get parent(): _Reference | null ;
190
144
get root(): _Reference ;
191
- get storage(): _FirebaseStorageImpl ;
145
+ get storage(): FirebaseStorageImpl ;
192
146
_throwIfRoot(name : string ): void ;
193
147
// @override
194
148
toString(): string ;
@@ -232,43 +186,12 @@ export interface StorageReference {
232
186
toString(): string ;
233
187
}
234
188
235
- // @public
236
- export type StringFormat = typeof StringFormat [keyof typeof StringFormat ];
237
-
238
- // @public
239
- export const StringFormat: {
240
- readonly RAW: " raw" ;
241
- readonly BASE64: " base64" ;
242
- readonly BASE64URL: " base64url" ;
243
- readonly DATA_URL: " data_url" ;
244
- };
245
-
246
189
// @public
247
190
export type TaskEvent = ' state_changed' ;
248
191
249
- // @internal
250
- export type _TaskEvent = string ;
251
-
252
- // @internal
253
- export const _TaskEvent: {
254
- STATE_CHANGED: string ;
255
- };
256
-
257
192
// @public
258
193
export type TaskState = ' running' | ' paused' | ' success' | ' canceled' | ' error' ;
259
194
260
- // @internal
261
- export type _TaskState = typeof _TaskState [keyof typeof _TaskState ];
262
-
263
- // @internal
264
- export const _TaskState: {
265
- readonly RUNNING: " running" ;
266
- readonly PAUSED: " paused" ;
267
- readonly SUCCESS: " success" ;
268
- readonly CANCELED: " canceled" ;
269
- readonly ERROR: " error" ;
270
- };
271
-
272
195
// @public
273
196
export function updateMetadata(ref : StorageReference , metadata : SettableMetadata ): Promise <FullMetadata >;
274
197
@@ -289,6 +212,8 @@ export interface UploadResult {
289
212
readonly ref: StorageReference ;
290
213
}
291
214
215
+ // Warning: (ae-forgotten-export) The symbol "StringFormat" needs to be exported by the entry point index.d.ts
216
+ //
292
217
// @public
293
218
export function uploadString(ref : StorageReference , value : string , format ? : StringFormat , metadata ? : UploadMetadata ): Promise <UploadResult >;
294
219
@@ -311,9 +236,11 @@ export class _UploadTask {
311
236
catch<T >(onRejected : (p1 : StorageError_2 ) => T | Promise <T >): Promise <T >;
312
237
// Warning: (ae-forgotten-export) The symbol "Metadata" needs to be exported by the entry point index.d.ts
313
238
_metadata: Metadata | null ;
239
+ // Warning: (ae-forgotten-export) The symbol "TaskEvent" needs to be exported by the entry point index.d.ts
240
+ // Warning: (ae-forgotten-export) The symbol "StorageError" needs to be exported by the entry point index.d.ts
314
241
// Warning: (ae-forgotten-export) The symbol "Unsubscribe" needs to be exported by the entry point index.d.ts
315
242
// Warning: (ae-forgotten-export) The symbol "Subscribe" needs to be exported by the entry point index.d.ts
316
- on(type : _TaskEvent , nextOrObserver ? : StorageObserver <UploadTaskSnapshot > | null | ((snapshot : UploadTaskSnapshot ) => unknown ), error ? : ((a : StorageError_2 ) => unknown ) | null , completed ? : Unsubscribe_2 | null ): Unsubscribe_2 | Subscribe_2 <UploadTaskSnapshot >;
243
+ on(type : TaskEvent_2 , nextOrObserver ? : StorageObserver <UploadTaskSnapshot > | null | ((snapshot : UploadTaskSnapshot ) => unknown ), error ? : ((a : StorageError_2 ) => unknown ) | null , completed ? : Unsubscribe_2 | null ): Unsubscribe_2 | Subscribe_2 <UploadTaskSnapshot >;
317
244
pause(): boolean ;
318
245
resume(): boolean ;
319
246
get snapshot(): UploadTaskSnapshot ;
0 commit comments