import { type ILogger } from '../logger'; import { type Flatten } from '../utils'; import type { ITypeBuilder } from '../typeBuilder'; import type { SupportedRegion } from 'firebase-functions/v2/options'; import { type CallableFunction } from 'firebase-functions/v2/https'; export interface FirebaseFunction { parametersBuilder: ITypeBuilder, Parameters>; execute(parameters: Parameters): Promise; } export interface AuthUser { id: string; rawUid: string; } export type FirebaseFunctionConstructor = new (user: AuthUser | null, logger: ILogger) => FirebaseFunction; export declare namespace FirebaseFunction { function create(FirebaseFunction: FirebaseFunctionConstructor, macKey: Uint8Array, regions?: SupportedRegion[]): CallableFunction; }