export default class DocfieldImageUploadAdapter { /** * @typedef {Object} DirectUpload * @property {number} byte_size * @property {string} checksum * @property {string} content_type * @property {string} created_at * @property {string} filename * @property {string} id * @property {string} key * @property {string} signed_id */ /** * @typedef {Object} DocumentImage * @property {string} id * @property {string} document_id * @property {string} template_id * @property {string} image_url */ /** * @typedef {Object} Options * @property {string} documentId * @property {string} pathApiDirectUploads * @property {string} pathApiImages * @property {string} pathImages * @property {string} resourceName * @property {string} templateId * @property {string} csrfToken */ /** * @param {Object} loader * @param {Options} options */ constructor(loader: any, options?: { documentId: string; pathApiDirectUploads: string; pathApiImages: string; pathImages: string; resourceName: string; templateId: string; csrfToken: string; }); loader: any; options: { documentId: string; pathApiDirectUploads: string; pathApiImages: string; pathImages: string; resourceName: string; templateId: string; csrfToken: string; }; /** * Starts the upload process. */ upload(): any; /** * Aborts the upload process. */ abort(): void; /** * @param {File} file */ uploadFile(file: File): Promise; /** * @returns {Object} */ getDirectUploadOptions(): any; /** * @param {ProgressEvent} event */ handleDirectUploadProgress(event: ProgressEvent): void; /** * @param file * @returns {Promise} */ createDirectUpload(file: any): Promise<{ byte_size: number; checksum: string; content_type: string; created_at: string; filename: string; id: string; key: string; signed_id: string; }>; directUpload: DocfieldDirectUpload; directUploadPromise: Promise; /** * @param {string} signedId * @returns {Promise} */ createDocumentImage(signedId: string): Promise<{ id: string; document_id: string; template_id: string; image_url: string; }>; /** * @type {Promise} */ documentImagePromise: Promise<{ id: string; document_id: string; template_id: string; image_url: string; }>; } import DocfieldDirectUpload from "./docfield-direct-upload"; //# sourceMappingURL=docfield-image-upload-adapter.d.ts.map