import type { W3cVerifiableCredential } from '@credo-ts/core'; import { ResolverConfig, TrustResolution, CredentialResolution, VerifyParticipantOptions } from '../types.js'; export declare function earliestBoundary(values: Array): string | null; /** * Resolves a Decentralized Identifier (DID) and performs trust validation. * * This is the main entrypoint for resolving a DID. It retrieves the DID Document, * validates its structure, and checks the trust status of the identifier and its services * using the provided verifiable public registry. * * @param did - The Decentralized Identifier to resolve (e.g., `did:key:...`, `did:web:...`, etc.). * @param options - Configuration options for the resolver. * @param options.verifiablePublicRegistries - *(Optional)* The registry public registries URIs used to validate the DID and its services. * @param options.didResolver - *(Optional)* A custom DID resolver instance to override the default resolver behavior. * @param options.cache (optional): Cache for trust resolution results. When provided, a successful resolution is stored keyed by DID and returned directly on subsequent calls. Any object implementing the `TrustResolutionCache` interface is accepted, the library provides `InMemoryCache` as a built-in implementation. * @param options.skipDigestSRICheck - *(Optional)* When true, skips verification of the credential integrity (digestSRI). Defaults to false. * @param options.logger - *(Optional)* Logger instance for the resolution process. Accepts any object that implements the `IVerreLogger` interface. * This flag applies **only to credential verification** and its value is determined by the calling service, which is responsible * for managing cache validity (e.g. TTL, revocation checks). * * @returns A promise that resolves to a `TrustResolution` object containing the resolution result, * DID document metadata, and trust validation outcome. */ export declare const LINKED_VP_FRAGMENT_PATTERNS: RegExp[]; export declare function resolveDID(did: string, options: ResolverConfig): Promise; /** * Verifies whether a given issuer is an authorized Participant for a specific credential * according to the trust registries and schema definitions. * * @param options - Configuration object containing all required data. * @param options.did - The DID of the entity to validate. * @param options.jsonSchemaCredentialId - URL or identifier for the JSON schema of the credential. * @param options.issuanceDate - The date at which the credential was issued. * @param options.verifiablePublicRegistries - A list of public trust registries used for validation. * @param options.role - The Participant role to verify. * @param options.logger - (Optional) Logger used for debugging. */ export declare function verifyParticipant(options: VerifyParticipantOptions): Promise<{ verified: boolean; }>; /** * Resolves and validates a W3C Verifiable Credential by extracting and verifying * the issuer's DID and evaluating the credential against the configured trust registries. * * @param cred The W3C Verifiable Credential to be resolved and assessed. * @param options Configuration object containing the DID resolver and the set * of verifiable public registries used during trust evaluation. * * @returns A TrustResolution object containing the issuer's DID Document, * the verification outcome, and any associated service information. */ export declare function resolveCredential(credential: W3cVerifiableCredential, options: ResolverConfig): Promise;