import { DidDocumentResolver } from '../../resolvers/didDocumentResolver.js'; import { CredentialValidationOptions } from '../dto/validationOptions.dto.js'; /** * Creates a JSON-LD document loader for use with @digitalbazaar/vc * DataIntegrityProof verification. * * Resolution order: * 1. Bundled contexts (credentials/v1, credentials/v2, …) — no network * 2. DID URLs — resolved via the existing DidDocumentResolver * 3. All other URLs (e.g. custom credential contexts, * https://w3id.org/security/…) — delegated to jsonld's node loader * which fetches over HTTP (result is memoised by jsonld internally) */ export declare function createDocumentLoader(didDocumentResolver: DidDocumentResolver, opts?: CredentialValidationOptions): (url: string) => Promise;