import { ISerializable, Serializable } from "@js-soft/ts-serval"; import { CoreAddress, CoreDate, FileReference, ICoreAddress, ICoreDate, IFileReference } from "@nmshd/core-types"; export interface IMessageContentWrapper extends ISerializable { attachments?: IFileReference[]; content: ISerializable; createdAt?: ICoreDate; recipients: ICoreAddress[]; } /** * MessageContentWrapper is a container for the actual message as [[IMessage]], its creationDate and * the list of recipients as [[IAddress]]. This container instance is then digitally signed * by the sender via an [[MessageSigned]] object. * * Insofar, the sender digitally signs the date of creation of this message (which could act as a * legal proof). Additionally, all recipients can - and must - check if they are addressed by * the sender. If a recipient is not in the signed list of recipients, the message needs to be * ignored (as the whole message could have been forwarded by bad party to a wrong recipient). */ export declare class MessageContentWrapper extends Serializable implements IMessageContentWrapper { attachments: FileReference[]; content: Serializable; createdAt: CoreDate; recipients: CoreAddress[]; protected static preFrom(value: any): any; static from(value: IMessageContentWrapper): MessageContentWrapper; } //# sourceMappingURL=MessageContentWrapper.d.ts.map