import { S3Client } from '@aws-sdk/client-s3'; import { Adapter } from '../index.js'; interface TigrisAdapterOptions { 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; accessKeyId?: string; 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; } type TigrisAdapter = Adapter; declare const tigris: (opts: TigrisAdapterOptions) => TigrisAdapter; export { type TigrisAdapter, type TigrisAdapterOptions, tigris };