From 8eff962cab608341a6f2fedc640a0e32d96f26e2 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 9 Nov 2025 11:15:19 +0800 Subject: pain --- .../@firebase/storage-compat/dist/src/index.d.ts | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts (limited to 'frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts') diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts new file mode 100644 index 0000000..1a9f3d4 --- /dev/null +++ b/frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts @@ -0,0 +1,71 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { _FirebaseNamespace } from '@firebase/app-types/private'; +import * as types from '@firebase/storage-types'; +export declare function registerStorage(instance: _FirebaseNamespace): void; +/** + * Define extension behavior for `registerStorage` + */ +declare module '@firebase/app-compat' { + interface FirebaseNamespace { + storage?: { + (app?: FirebaseApp, url?: string): types.FirebaseStorage; + Storage: typeof types.FirebaseStorage; + StringFormat: { + BASE64: types.StringFormat; + BASE64URL: types.StringFormat; + DATA_URL: types.StringFormat; + RAW: types.StringFormat; + }; + TaskEvent: { + STATE_CHANGED: types.TaskEvent; + }; + TaskState: { + CANCELED: types.TaskState; + ERROR: types.TaskState; + PAUSED: types.TaskState; + RUNNING: types.TaskState; + SUCCESS: types.TaskState; + }; + }; + } + interface FirebaseApp { + storage?(storageBucket?: string): types.FirebaseStorage; + } +} + +import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat"; +import { type EmulatorMockTokenOptions, type FullMetadata, type FirebaseStorage, type ListOptions, type ListResult, type StorageReference, type SettableMetadata, type UploadMetadata, type UploadResult, type UploadTask, type StringFormat } from "@firebase/storage"; +declare module "@firebase/storage" { + function connectStorageEmulator(storage: types.FirebaseStorage, host: string, port: number, options?: { + mockUserToken?: EmulatorMockTokenOptions | string; + }): void; + function deleteObject(ref: types.Reference): Promise; + function getBlob(ref: types.Reference, maxDownloadSizeBytes?: number): Promise; + function getBytes(ref: types.Reference, maxDownloadSizeBytes?: number): Promise; + function getDownloadURL(ref: types.Reference): Promise; + function getMetadata(ref: types.Reference): Promise; + function getStorage(app?: FirebaseAppCompat, bucketUrl?: string): FirebaseStorage; + function getStream(ref: types.Reference, maxDownloadSizeBytes?: number): ReadableStream; + function list(ref: types.Reference, options?: ListOptions): Promise; + function listAll(ref: types.Reference): Promise; + function ref(storage: types.FirebaseStorage, url?: string): StorageReference; + function updateMetadata(ref: types.Reference, metadata: SettableMetadata): Promise; + function uploadBytes(ref: types.Reference, data: Blob | Uint8Array | ArrayBuffer, metadata?: UploadMetadata): Promise; + function uploadBytesResumable(ref: types.Reference, data: Blob | Uint8Array | ArrayBuffer, metadata?: UploadMetadata): UploadTask; + function uploadString(ref: types.Reference, value: string, format?: StringFormat, metadata?: UploadMetadata): Promise; +} -- cgit v1.2.3