import { CustomFunctionLogger } from '../logger'; import { ContextService } from '../context/contextService'; export declare enum Base64AttachmentStatus { ROOT = "ROOT", ADD = "ADD", RENAME = "RENAME", DELETE = "DELETE" } export interface Base64Attachment { id: string; name: string; parentId: string; contentType: string; base64: string; status: Base64AttachmentStatus; } export interface AttachmentFile { filePtr: string; size: number; parentId: string; fileName: string; downloadUrl: string; contentType: string; uploadDate: string; createdBy: string; createdById: string; description: string; } export declare class AttachmentService { private _contextService; private _logger; constructor(_contextService: ContextService, _logger: CustomFunctionLogger); generateAttachmentMetadataUrl: (parentIds: string[]) => string; getAttachmentsForParentIds: (parentIds: string[]) => Promise<{ [parentId: string]: AttachmentFile[]; }>; loadBase64Attachment: (attachment: AttachmentFile) => Promise; deleteAttachment: (attachmentId: string) => Promise>; renameAttachment: (attachmentId: string, name: string) => Promise>; uploadAttachment: ({ base64, name, parentId, contentType }: Base64Attachment) => Promise>; linkAttachments: (idMap: { [id: string]: string; }) => Promise>; syncBase64Attachments(base64Attachments: Base64Attachment[]): Promise; } //# sourceMappingURL=attachmentService.d.ts.map