import { JSONSchema7 } from "json-schema"; import { VC } from "./types.js"; export declare function validateVcAgainstSchema(vc: VC, schema: JSONSchema7): Promise<{ valid: boolean; errors: string[]; }>; /** Fetches JSON Schema from `credentialSchema.id` field and returns it. Throws error if unable to fetch. */ export declare function fetchJsonSchemaFromVc(vc: VC): Promise; /** Fetches JSON Schema from a url and returns it. Throws error if unable to fetch. */ export declare function fetchJsonSchema(schemaUrl: string): Promise; /** Fetches JSON Schema from `credentialSchema.id` field, validates the VC against that schema, and returns its validity, errors, and the JSON Schema. */ export declare function getAndValidateSchemaFromVc(vc: VC): Promise<{ valid: boolean; errors: string[]; schema?: JSONSchema7; }>; export declare function buildVc(issuer: string, credSubject: Record, schema: JSONSchema7, recipient?: string): VC; //# sourceMappingURL=validateVc.d.ts.map