import { TrustedIssuerModel } from './TrustedIssuerModel'; import { BaseAttestationModel } from './BaseAttestationModel'; import { InputClaimModel } from './InputClaimModel'; /** * Represents a Verifiable Presentation in the input file */ export declare class VerifiablePresentationAttestationModel extends BaseAttestationModel { credentialType?: string | undefined; validityInterval?: number | undefined; issuers?: TrustedIssuerModel[] | undefined; endorsers?: TrustedIssuerModel[] | undefined; contracts?: string[] | undefined; /** * Instantiates a VerifiablePresentationModel * @param credentialType the type of the Verifiable Credential as specified: https://www.w3.org/TR/vc-data-model/#types * @param validityInterval Expiry in seconds for the requested VP. * @param issuers an array of Trusted Issuers for the Verifiable Credential * @param endorsers an array of Trusted Endorsers for the Verifiable Credential * @param contracts an array of URLs to approved contracts which return the type of Verifiable Credential * @param mapping a map of string to InputClaimModel instances * @param encrypted flag indicating if the attestation is encrypted * @param claims an array of InputClaimModel values * @param required a flag indicating whether the attestation is required * @param id the identifier of the attestation */ constructor(credentialType?: string | undefined, validityInterval?: number | undefined, issuers?: TrustedIssuerModel[] | undefined, endorsers?: TrustedIssuerModel[] | undefined, contracts?: string[] | undefined, mapping?: { [map: string]: InputClaimModel; }, encrypted?: boolean, claims?: InputClaimModel[], required?: boolean, id?: string); /** * Gets the name of the attestation */ get name(): string; toJSON(): any; /** * Populate an instance of VerifiablePresentationModel from any instance * @param input object instance to populate from */ populateFrom(input: any): void; private static createTrustedIssuer; /** * Creates Model given input claims. * @param claims Input claims */ protected createForInput(claims: InputClaimModel[]): BaseAttestationModel; }