import { type JSONSchemaType } from 'ajv/dist/2020.js'; import { ECS, EcsEcosystem, IRegistryAdapter, IVerreLogger } from '../types.js'; export type EcsProvenance = { ecsEcosystems: EcsEcosystem[]; schemaId: number; vprId?: string; adapter?: IRegistryAdapter; logger?: IVerreLogger; }; /** * Identifies the appropriate schema for a given verifiable presentation (VP). * * Uses digest to validate the schemaObj against ECS schemas. When `provenance` is given, a * digest match is only an ECS if the Ecosystem that created the schema is allowed * ([WL-ECS]); otherwise the credential degrades to a regular VTC. * * @param schemaObj - The schema to check. * @param provenance - Optional [WL-ECS] context. Omitted, any Ecosystem is accepted. * @returns The matching schema name or `null` if no match is found. */ export declare const identifySchema: (schemaObj: Record, provenance?: EcsProvenance) => Promise; /** * Validates data against a given JSON schema. * * Uses Ajv to compile and validate the data. Throws an error if validation fails. * * @param schema - The JSON schema to validate against. * @param data - The data to validate. * @returns `true` if the data is valid, otherwise throws an error. * @throws {TrustError} If the data does not conform to the schema. */ export declare function validateSchemaContent(schema: JSONSchemaType, data: T): boolean;