export declare function getFileStorageProvider(): string; export interface S3StorageConfig { bucket: string; region?: string; accessKeyId?: string; secretAccessKey?: string; /** S3-compatible endpoint (Cloudflare R2, MinIO, DigitalOcean Spaces, …) */ endpoint?: string; forcePathStyle: boolean; /** Public base URL (CDN) used for stored file URLs instead of the bucket host */ baseUrl?: string; } export declare function getS3StorageConfig(): Promise; export interface GcsStorageConfig { bucket: string; /** * Full service-account key JSON (the downloaded key file content). Absent = * Application Default Credentials — the Google-recommended path on GCP * (attached service accounts, GOOGLE_APPLICATION_CREDENTIALS), mirroring the * AWS default-chain behavior. */ serviceAccountKey?: string; /** Public base URL (CDN) used for stored file URLs instead of storage.googleapis.com */ baseUrl?: string; } export declare function getGcsStorageConfig(): Promise; export interface AzureStorageConfig { connectionString: string; containerName: string; /** * Access level applied when the container is auto-created. 'private' * (default) never fails account policy; 'blob' requires the storage account * to allow anonymous access (`AllowBlobPublicAccess`) or container creation * is rejected with PublicAccessNotPermitted. */ containerAccess: 'private' | 'blob'; /** Public base URL (CDN) used for stored file URLs instead of the blob host */ baseUrl?: string; } export declare function getAzureStorageConfig(): Promise; /** * Setting keys whose values are pinned by the config file or an environment * variable (infrastructure-managed). Config/env win over the DB setting for * credentials, so the System Setting form disables these fields and the * GraphQL resolvers return the pinned value (masked, for secrets) instead of * the DB row. The provider selection (`fileStorage`) is intentionally absent: * there the setting wins and config is only the fallback. */ export declare function getFileStorageConfigOverrides(): Record; export declare function setResolvedS3Region(region: string): void; /** * Extract the blob endpoint host from an Azure connection string — * `BlobEndpoint=` wins (Azurite, custom domains), otherwise * `{AccountName}.blob.{EndpointSuffix}`. Values may contain `=` (base64 * account keys), so split each pair on the first `=` only. */ export declare function parseAzureBlobHost(connectionString: string | undefined): string | undefined; /** * Hosts the `/images` proxy must be allowed to fetch from when a cloud storage * provider is active — derived from the same configuration the providers use, * so operators don't have to mirror it into IMAGE_ALLOWED_HOSTS. Synchronous * (the allowlist is checked inside connection callbacks): reads config/env and * the warmed settings cache only. Registered with secureFetch in the cms * bootstrap. */ export declare function getFileStorageImageHosts(): string[];