import { HttpClient } from "../httpClient"; import { AttachmentResponse, Collection, ResponseDefault, ResponseListWithPolicyAndPaginationWithCount, ResponseOne, ResponsePagination } from "../types"; type MultipartComplete = { Location?: string; Bucket?: string; Key?: string; Expiration?: string; ETag?: string; ChecksumCRC32?: string; ChecksumCRC32C?: string; ChecksumSHA1?: string; ChecksumSHA256?: string; VersionId?: string; SSEKMSKeyId?: string; ServerSideEncryption?: string; BucketKeyEnabled?: boolean; RequestCharged?: string; $metadata: { httpStatusCode?: number; requestId?: string; extendedRequestId?: string; cfId?: string; attempts?: number; totalRetryDelay?: number; }; }; export declare class AttachmentsAPIv1 { private http; constructor(http: HttpClient); list(params: { documentId?: string; shareId?: string; }, pagination?: ResponsePagination): Promise>; private multipart_create; private multipart_upload; private multipart_complete; private multipart_abort; create(params: { name: string; size: number; public?: boolean; documentId?: string; file: Buffer; }): Promise; delete(params: { id: string; }): Promise; redirect(params: { id: string; documentId?: string; shareId?: string; }): Promise; info(params: { id: string; documentId?: string; shareId?: string; }): Promise>; size(): Promise>; private uploadPart; multipartUploadFile(params: { file: Buffer; name: string; documentId?: string; chunkSize?: number; }): Promise<{ promise: Promise<{ completeInfo: ResponseOne; attachment: AttachmentResponse; }>; abort: () => void; }>; } export {};