import { type Readable } from "stream"; import { S3Driver } from "flydrive/drivers/s3"; import { type S3DriverOptions } from "flydrive/drivers/s3/types"; /** * Sonamu용 S3 드라이버 * * flydrive의 S3Driver를 확장하여 putStream에서 * @aws-sdk/lib-storage의 Upload 클래스를 사용합니다. * 이를 통해 스트림 크기를 모르는 상태에서도 업로드가 가능합니다. * * 기존 S3Driver.putStream은 PutObjectCommand를 사용하여 Content-Length가 필요했지만, * Upload 클래스는 multipart upload를 통해 스트림 크기 없이도 업로드할 수 있습니다. */ export declare class SonamuS3Driver extends S3Driver { private sonamuClient; private sonamuBucket; private sonamuVisibility; private sonamuSupportsACL; constructor(options: S3DriverOptions); /** * 스트림을 S3에 업로드합니다. * * @aws-sdk/lib-storage의 Upload 클래스를 사용하여 * multipart upload로 처리합니다. */ putStream(key: string, contents: Readable, options?: { contentType?: string; visibility?: "public" | "private"; cacheControl?: string; contentDisposition?: string; }): Promise; } //# sourceMappingURL=s3-driver.d.ts.map