import { CredentialSchema } from './schema'; import { RevocationStatusProtocol } from './types-and-consts'; import { Versioned } from './versioned'; /** * Common fields and methods of `CredentialBuilder` and `BlindedCredentialBuilder` */ export declare abstract class CredentialBuilderCommon extends Versioned { /** Each credential references the schema which is included as an attribute */ _schema?: CredentialSchema; _subject?: object | object[]; _credStatus?: object; _topLevelFields: Map; constructor(version: string); set schema(schema: CredentialSchema); get schema(): CredentialSchema | undefined; /** * Add single or an array of subjects. * @param subject */ set subject(subject: object | object[]); get subject(): object | object[] | undefined; set credStatus(subject: object | undefined); get credStatus(): object | undefined; /** * Set the `credentialStatus` property of the credential * @param registryId - This is id of the revocation registry, like the unique id of the accumulator * @param revCheck - whether its a membership or non-membership check. this depends on how revocation is implemented, i.e. if * @param memberValue - Value present/absent in the revocation registry (accumulator for now) which corresponds to a credential. * This should be unique per credential per registry. * @param revType - revocation protocol being used like if accumulator, which accumulator */ setCredentialStatus(registryId: string, revCheck: string, memberValue: unknown, revType?: RevocationStatusProtocol): void; setTopLevelField(name: string, value: unknown): void; getTopLevelField(name: string): unknown; /** * Serialize the credential making it ready for signing */ serializeForSigning(): object; /** * Update given object with proof metadata * @param s - the object that be updated with the proof metadata * @protected */ protected abstract applyDefaultProofMetadataIfNeeded(s: object): any; } //# sourceMappingURL=credential-builder-common.d.ts.map