import { Extension } from './Extension.js';
import { FhirPrimitive } from './FhirPrimitive.js';
export interface Attachment {
    /**
     * @description Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
     * @short Unique id for inter-element referencing
     */
    id?: string;
    /**
     * @description May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
     * @comment There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
     * @short Additional content defined by implementations
     */
    extension?: Extension[];
    /**
     * @description Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
     * @short Mime type of the content, with charset etc.
     */
    contentType?: FhirPrimitive<string>;
    /**
     * @description The human language of the content. The value can be any valid value according to BCP 47.
     * @short Human language of the content (BCP-47)
     */
    language?: FhirPrimitive<string>;
    /**
     * @description The actual data of the attachment - a sequence of bytes, base64 encoded.
     * @comment The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON.
     * @short Data inline, base64ed
     */
    data?: FhirPrimitive<string>;
    /**
     * @description A location where the data can be accessed.
     * @comment If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data.
     * @short Uri where the data can be found
     */
    url?: FhirPrimitive<string>;
    /**
     * @description The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
     * @comment The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference.
     * @short Number of bytes of content (if url provided)
     */
    size?: FhirPrimitive<string>;
    /**
     * @description The calculated hash of the data using SHA-1. Represented using base64.
     * @comment The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature.
     * @short Hash of the data (sha-1, base64ed)
     */
    hash?: FhirPrimitive<string>;
    /**
     * @description A label or set of text to display in place of the data.
     * @comment May sometimes be derived from the source filename.
     * @short Label to display in place of the data
     */
    title?: FhirPrimitive<string>;
    /**
     * @description The date that the attachment was first created.
     * @short Date attachment was first created
     */
    creation?: FhirPrimitive<string>;
    /**
     * @description Height of the image in pixels (photovideo).
     * @short Height of the image in pixels (photovideo)
     */
    height?: FhirPrimitive<number>;
    /**
     * @description Width of the image in pixels (photovideo).
     * @short Width of the image in pixels (photovideo)
     */
    width?: FhirPrimitive<number>;
    /**
     * @description The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.
     * @comment if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.
     * @short Number of frames if > 1 (photo)
     */
    frames?: FhirPrimitive<number>;
    /**
     * @description The duration of the recording in seconds - for audio and video.
     * @comment The duration might differ from occurrencePeriod if recording was paused.
     * @short Length in seconds (audio  video)
     */
    duration?: FhirPrimitive<number>;
    /**
     * @description The number of pages when printed.
     * @short Number of printed pages
     */
    pages?: FhirPrimitive<number>;
}
//# sourceMappingURL=Attachment.d.ts.map