From 8eff962cab608341a6f2fedc640a0e32d96f26e2 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 9 Nov 2025 11:15:19 +0800 Subject: pain --- .../installations/dist/installations.d.ts | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 frontend-old/node_modules/@firebase/installations/dist/installations.d.ts (limited to 'frontend-old/node_modules/@firebase/installations/dist/installations.d.ts') diff --git a/frontend-old/node_modules/@firebase/installations/dist/installations.d.ts b/frontend-old/node_modules/@firebase/installations/dist/installations.d.ts new file mode 100644 index 0000000..9e00846 --- /dev/null +++ b/frontend-old/node_modules/@firebase/installations/dist/installations.d.ts @@ -0,0 +1,100 @@ +/** + * The Firebase Installations Web SDK. + * This SDK does not work in a Node.js environment. + * + * @packageDocumentation + */ + +import { FirebaseApp } from '@firebase/app'; + +/** + * Deletes the Firebase Installation and all associated data. + * @param installations - The `Installations` instance. + * + * @public + */ +export declare function deleteInstallations(installations: Installations): Promise; + +/** + * An interface for Firebase internal SDKs use only. + * + * @internal + */ +export declare interface _FirebaseInstallationsInternal { + /** + * Creates a Firebase Installation if there isn't one for the app and + * returns the Installation ID. + */ + getId(): Promise; + /** + * Returns an Authentication Token for the current Firebase Installation. + */ + getToken(forceRefresh?: boolean): Promise; +} + +/** + * Creates a Firebase Installation if there isn't one for the app and + * returns the Installation ID. + * @param installations - The `Installations` instance. + * + * @public + */ +export declare function getId(installations: Installations): Promise; + +/** + * Returns an instance of {@link Installations} associated with the given + * {@link @firebase/app#FirebaseApp} instance. + * @param app - The {@link @firebase/app#FirebaseApp} instance. + * + * @public + */ +export declare function getInstallations(app?: FirebaseApp): Installations; + +/** + * Returns a Firebase Installations auth token, identifying the current + * Firebase Installation. + * @param installations - The `Installations` instance. + * @param forceRefresh - Force refresh regardless of token expiration. + * + * @public + */ +export declare function getToken(installations: Installations, forceRefresh?: boolean): Promise; + +/** + * An user defined callback function that gets called when Installations ID changes. + * + * @public + */ +export declare type IdChangeCallbackFn = (installationId: string) => void; + +/** + * Unsubscribe a callback function previously added via {@link IdChangeCallbackFn}. + * + * @public + */ +export declare type IdChangeUnsubscribeFn = () => void; + +/** + * Public interface of the Firebase Installations SDK. + * + * @public + */ +export declare interface Installations { + /** + * The {@link @firebase/app#FirebaseApp} this `Installations` instance is associated with. + */ + app: FirebaseApp; +} + +/** + * Sets a new callback that will get called when Installation ID changes. + * Returns an unsubscribe function that will remove the callback when called. + * @param installations - The `Installations` instance. + * @param callback - The callback function that is invoked when FID changes. + * @returns A function that can be called to unsubscribe. + * + * @public + */ +export declare function onIdChange(installations: Installations, callback: IdChangeCallbackFn): IdChangeUnsubscribeFn; + +export { } -- cgit v1.2.3