import { S3Client } from '@aws-sdk/client-s3'; import { Adapter } from '../index.js'; interface StorjAdapterOptions { bucket: string; /** * Storj S3 gateway URL. Defaults to `https://gateway.storjshare.io` * (Gateway MT — Storj's hosted multi-tenant gateway). Override with a * self-hosted Gateway ST URL if you run your own. */ endpoint?: string; accessKeyId?: string; secretAccessKey?: string; region?: string; forcePathStyle?: boolean; /** * Origin used to build URLs from `url()`. When set, `url(key)` returns * `${publicBaseUrl}/${key}` and skips signing. For Storj, the natural * value is a linksharing prefix like * `https://link.storjshare.io/raw//` — generate * one with `uplink share --url`. 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 StorjAdapter = Adapter; declare const storj: (opts: StorjAdapterOptions) => StorjAdapter; export { type StorjAdapter, type StorjAdapterOptions, storj };