import type { S3Client } from "@aws-sdk/client-s3"; import type { Adapter } from "../index.js"; export interface TigrisAdapterOptions { /** Tigris bucket name. The adapter scopes all operations to it. */ bucket: string; /** * Override the Tigris endpoint. Defaults to * `https://fly.storage.tigris.dev` — Tigris serves a single global * endpoint and routes to the nearest region automatically. Override for * pinned-region testing or a private deployment. */ endpoint?: string; /** * Static access key ID. Falls back to `TIGRIS_ACCESS_KEY_ID`; required if * that env var isn't set. */ accessKeyId?: string; /** * Static secret access key. Falls back to `TIGRIS_SECRET_ACCESS_KEY`; * required if that env var isn't set. */ secretAccessKey?: string; /** * SigV4 region used for signing. Defaults to `"auto"` — Tigris is a * globally-distributed object store and doesn't use the SigV4 region for * routing, but the signature requires *some* value. Leave the default * unless you have a reason to change it. */ region?: string; /** * Use path-style addressing (`//`) rather than virtual-hosted * style. Defaults to `false` — virtual-hosted is canonical for Tigris. */ forcePathStyle?: boolean; /** * Origin used to build URLs from `url()`. When set, `url(key)` returns * `${publicBaseUrl}/${key}` and skips signing. For public buckets the * natural value is `https://${bucket}.fly.storage.tigris.dev`; a custom * domain bound to the bucket also works. When unset, `url()` falls back * to a presigned GetObject (default expiry: 1 hour). */ publicBaseUrl?: string; /** * Default expiry, in seconds, for the presigned URLs returned by `url()` * when `publicBaseUrl` is not set. Defaults to 3600 (1 hour). */ defaultUrlExpiresIn?: number; } export type TigrisAdapter = Adapter; export declare const tigris: (opts: TigrisAdapterOptions) => TigrisAdapter; //# sourceMappingURL=index.d.ts.map