UNPKG

firestore-queue

Version:

A powerful, scalable queue system built on Google Firestore with time-based indexing, auto-configuration, and connection reuse

40 lines 1.17 kB
/** * Service Account Helper * Utilities for working with Firebase service account files */ export interface ServiceAccountData { type: string; project_id: string; private_key_id: string; private_key: string; client_email: string; client_id: string; auth_uri: string; token_uri: string; auth_provider_x509_cert_url: string; client_x509_cert_url: string; } /** * Extract project ID from service account JSON file */ export declare function extractProjectIdFromServiceAccount(serviceAccountPath: string): string; /** * Load service account data */ export declare function loadServiceAccount(serviceAccountPath: string): ServiceAccountData; /** * Auto-detect service account file in common locations */ export declare function findServiceAccountFile(startDir?: string): string | null; /** * Smart configuration loader - auto-detects project ID and service account */ export declare function autoLoadFirebaseConfig(options?: { serviceAccountPath?: string; projectId?: string; searchDir?: string; }): { projectId: string; serviceAccountPath: string; }; //# sourceMappingURL=service-account-helper.d.ts.map