import FileSystem from './fs/index.js'; import S3 from './s3/index.js'; import CloudflareR2 from './r2/index.js'; import GCS from './gcs/index.js'; import Azure from './azure/index.js'; import BackBlaze from './b2/index.js'; export { B as Bucket, a as BucketFile, b as BucketInfo, F as FileInfo, W as WriteContent, c as WriteOptions } from './types-ANca2IFa.js'; import 'node:buffer'; import 'node:stream/web'; type BucketErrorCode = "NOT_FOUND" | "FORBIDDEN" | "UNAUTHORIZED" | "CONFLICT" | "INVALID_PATH" | "UNKNOWN"; interface BucketErrorOptions { /** Provider that produced the error, e.g. "S3", "GCS", "FILESYSTEM". * Absent for errors raised before reaching a provider (INVALID_PATH). */ provider?: string; /** Raw HTTP status, when the error came from an HTTP response */ status?: number; /** Normalized code; derived from `status` when omitted */ code?: BucketErrorCode; /** The underlying error or response that caused this */ cause?: unknown; } declare class BucketError extends Error { readonly provider?: string; readonly status?: number; readonly code: BucketErrorCode; constructor(message: string, options: BucketErrorOptions); } declare const _default: { FS: typeof FileSystem; S3: typeof S3; R2: typeof CloudflareR2; GCS: typeof GCS; Azure: typeof Azure; B2: typeof BackBlaze; }; export { Azure, BackBlaze, BucketError, type BucketErrorCode, CloudflareR2, FileSystem, GCS, S3, _default as default };