import type { S3Client } from "@aws-sdk/client-s3"; import type { Adapter } from "../index.js"; export interface YandexAdapterOptions { /** Yandex Object Storage bucket name. The adapter scopes all operations to it. */ bucket: string; /** * Override the Yandex Object Storage endpoint. Defaults to * `https://storage.yandexcloud.net` — Yandex serves a single global * endpoint and routes internally. Override for a private deployment or * proxy. */ endpoint?: string; /** * Static access key ID. Falls back to `YANDEX_ACCESS_KEY_ID`; required if * that env var isn't set. */ accessKeyId?: string; /** * Static secret access key. Falls back to `YANDEX_SECRET_ACCESS_KEY`; * required if that env var isn't set. */ secretAccessKey?: string; /** * SigV4 region used for signing. Defaults to `"ru-central1"` — Yandex's * only public region today. The value is required by the signature but * doesn't drive routing (the endpoint is fixed). 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 Yandex * Object Storage. */ 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}.storage.yandexcloud.net`; 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 YandexAdapter = Adapter; export declare const yandex: (opts: YandexAdapterOptions) => YandexAdapter; //# sourceMappingURL=index.d.ts.map