import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { HASH } from "@wildboar/x500/AuthenticationFramework";
import { Attributes } from "../PKCS7/Attributes.ta.mjs";
type ToBeHashed = {
    content: _Element;
} | {
    authenticated_attributes: Attributes;
};
/**
 * @summary Digest
 * @description
 *
 * ### ASN.1 Definition:
 *
 * ```asn1
 * Digest  ::=
 *     HASH
 *         {CHOICE {content
 *                 [1]  PKCS7-CONTENT-TYPE.&Type({PKCS7ContentTable}),
 *                 authenticated-attributes  [0] EXPLICIT Attributes}}
 * ```
 */
export type Digest = HASH<ToBeHashed>;
/**
 * @summary Decodes an ASN.1 element into a(n) Digest
 * @function
 * @param {_Element} el The element being decoded.
 * @returns {Digest} The decoded data structure.
 */
export declare function _decode_Digest(el: _Element): Digest;
/**
 * @summary Encodes a(n) Digest into an ASN.1 Element.
 * @function
 * @param value The element being encoded.
 * @param elGetter A function that can be used to get new ASN.1 elements.
 * @returns {_Element} The Digest, encoded as an ASN.1 Element.
 */
export declare function _encode_Digest(value: Digest, elGetter: $.ASN1Encoder<Digest>): _Element;
export {};
//# sourceMappingURL=Digest.ta.d.mts.map