import { FirebaseApp } from "firebase/app"; import { OAuthCredential } from "firebase/auth"; import { AuthUser } from "../types/index.js"; /** * Bootstrap services and configs is needed for a new command execution and related services. * @returns > */ export declare const bootstrapCommandExecutionAndServices: () => Promise; /** * Execute the sign in to Firebase using OAuth credentials. * @dev wrapper method to handle custom errors. * @param firebaseApp - the configured instance of the Firebase App in use. * @param credentials - the OAuth credential generated from token exchange. * @returns > */ export declare const signInToFirebase: (firebaseApp: FirebaseApp, credentials: OAuthCredential) => Promise; /** * Ensure that the callee is an authenticated user. * @notice The token will be passed as parameter. * @dev This method can be used within GitHub actions or other CI/CD pipelines. * @param firebaseApp - the configured instance of the Firebase App in use. * @param token - the token to be used for authentication. * @returns > - a custom object containing info about the authenticated user, the token and github handle. */ export declare const authWithToken: (firebaseApp: FirebaseApp, token: string) => Promise; /** * Ensure that the callee is an authenticated user. * @dev This method MUST be executed before each command to avoid authentication errors when interacting with the command. * @returns > - a custom object containing info about the authenticated user, the token and github handle. */ export declare const checkAuth: (firebaseApp: FirebaseApp) => Promise;