/** * * * Represents a data attachment that can be stored either as a CouchDB attachment or via object * storage. */ export declare class DataAttachment { /** * * The identifier of the attachment if stored as a CouchDB attachment. */ couchDbAttachmentId: string | undefined; /** * * The identifier of the attachment if stored using the object storage service. */ objectStoreAttachmentId: string | undefined; /** * * The Uniform Type Identifiers of the attachment, ordered by priority. */ utis: Array; /** * * * Algorithm used on the CLIENT SIDE to compress the data attachment. * Null means that the document was not compressed because the tried algorithms could not actually * compress the data * (because for example it was an already compressed format) or no algorithms were tried. */ compressionAlgorithm: string | undefined; /** * * * A string used by the SDK to mark which compression algorithms were tried. * Null means that no compression algorithms were tried. * If an SDK reads some data that is not compressed, if this value indicates that the data was * created with an older * version of the SDK then the SDK may try to use any newly available algorithms to compress the * data. */ triedCompressionAlgorithmsVersion: string | undefined; /** * * * Value computed by the backend, the actual size of the data stored for the attachment, in bytes. */ storedDataSize: number | undefined; /** * * * Value provided by the client, the real size of the data after it has been decrypted and * decompressed, in bytes. * This value is not used or verified by the backend. */ realDataSize: number | undefined; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): DataAttachment; }