import { DriverDependencies, DriverFactory, LibImport } from "../_chunks/index.mjs"; export interface S3DriverOptions { /** * Access Key ID */ accessKeyId: string; /** * Secret Access Key */ secretAccessKey: string; /** * The endpoint URL of the S3 service. * * - For AWS S3: "https://s3.[region].amazonaws.com/" * - For cloudflare R2: "https://[uid].r2.cloudflarestorage.com/" */ endpoint: string; /** * The region of the S3 bucket. * * - For AWS S3, this is the region of the bucket. * - For cloudflare, this is can be set to `auto`. */ region: string; /** * The name of the bucket. */ bucket: string; /** * Enabled by default to speedup `clear()` operation. Set to `false` if provider is not implementing [DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html). */ bulkDelete?: boolean; /** * Optionally provide the [`aws4fetch`](https://www.npmjs.com/package/aws4fetch) library * to avoid dynamically importing it. */ lib?: LibImport; } export interface S3ItemOptions { /** * HTTP headers to set when uploading the object. * Supports standard S3 headers like Content-Type, Cache-Control, etc. * and custom metadata via x-amz-meta-* prefixed headers. */ headers?: { "Content-Type"?: string; "Cache-Control"?: string; "Content-Disposition"?: string; "Content-Encoding"?: string; "Content-Language"?: string; Expires?: string; } & { [key: `x-amz-meta-${string}`]: string | undefined; }; } export declare const DRIVER_DEPENDENCIES: DriverDependencies; declare const driver: DriverFactory; export { driver as default };