export interface AttachmentHeader { children: string; } export interface AttachmentJws { header: AttachmentHeader; protectedStr: string; signature: string; } export interface AttachmentJwsData { base64: string; jws: AttachmentJws; } export interface AttachmentBase64 { base64: string; } export interface AttachmentLinkData { links: string[]; hash: string; } export type AttachmentJsonData = { json: any; }; export type AttachmentData = AttachmentJsonData | AttachmentLinkData | AttachmentBase64 | AttachmentJwsData | AttachmentJws | AttachmentHeader; export declare class AttachmentDescriptor { readonly data: AttachmentData; readonly mediaType?: string | undefined; readonly id: string; readonly filename?: Array | undefined; readonly format?: string | undefined; readonly lastModTime?: string | undefined; readonly byteCount?: number | undefined; readonly description?: string | undefined; constructor(data: AttachmentData, mediaType?: string | undefined, id?: string, filename?: Array | undefined, format?: string | undefined, lastModTime?: string | undefined, byteCount?: number | undefined, description?: string | undefined); get payload(): any; static build(payload: T, id?: string, mediaType?: string, filename?: Array, format?: string, lastModTime?: string, byteCount?: number, description?: string): AttachmentDescriptor; }