diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
| commit | 8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch) | |
| tree | 05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@firebase/installations/dist/installations.d.ts | |
pain
Diffstat (limited to 'frontend-old/node_modules/@firebase/installations/dist/installations.d.ts')
| -rw-r--r-- | frontend-old/node_modules/@firebase/installations/dist/installations.d.ts | 100 |
1 files changed, 100 insertions, 0 deletions
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<void>; + +/** + * 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<string>; + /** + * Returns an Authentication Token for the current Firebase Installation. + */ + getToken(forceRefresh?: boolean): Promise<string>; +} + +/** + * 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<string>; + +/** + * 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<string>; + +/** + * 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 { } |
