import { S3Client } from '@aws-sdk/client-s3'; import { S3StorageConfig } from '../storageConfig.js'; /** * Client factory reading the live configuration on every call — the client is * rebuilt when any connection-relevant value changes (a settings save applies * without restart) and reused otherwise. Credentials are only passed * explicitly when configured; otherwise the SDK default provider chain * applies (env vars, shared config, IAM roles). */ export declare function getS3Client(): Promise<{ client: S3Client; config: S3StorageConfig; }>; /** * Resolve the region the client actually uses (explicit config or the SDK * provider chain — env, shared config, IMDS). Needed to build * virtual-hosted-style URLs, and cached into storageConfig so the image-host * allowlist can see chain-resolved regions too. */ export declare function resolveS3Region(client: S3Client): Promise;