import { Bucket } from '@google-cloud/storage'; import { GcsStorageConfig } from '../storageConfig.js'; /** * Parse the pasted service-account key file content. Throws a readable error * for malformed input — surfaced by the save-time connection check. */ export declare function parseServiceAccountKey(serviceAccountKey: string): { projectId?: string; credentials: { client_email: string; private_key: string; }; }; /** * Client factory reading the live configuration on every call — rebuilt when * the service-account key changes (a settings save applies without restart), * reused otherwise. Without an explicit key, Application Default Credentials * apply (attached service account, GOOGLE_APPLICATION_CREDENTIALS) — the * Google-recommended setup on GCP. */ export declare function getGcsBucket(): Promise<{ bucket: Bucket; config: GcsStorageConfig; }>;