import { ClaimStatus } from "./types.js"; import { type ServiceProviderMatch } from "./serviceProviders/index.js"; import type { VerifyOptions, ClaimVerificationResult } from "./types.js"; /** * Validate a DID string. Accepts did:plc and did:web formats. */ export declare function isValidDid(did: string): boolean; /** * A single identity claim linking a DID to an external account */ export interface ClaimState { uri: string; did: string; status: ClaimStatus; matches: ServiceProviderMatch[]; errors: string[]; } /** * Create a new claim state */ export declare function createClaim(uri: string, did: string): ClaimState; /** * Match the claim URI against known service providers */ export declare function matchClaim(claim: ClaimState): void; /** * Check if the claim is ambiguous (matches multiple providers) */ export declare function isClaimAmbiguous(claim: ClaimState): boolean; /** * Get the matched service provider (first unambiguous match, or first match) */ export declare function getMatchedProvider(claim: ClaimState): ServiceProviderMatch | undefined; /** * Verify the claim by fetching proof and checking for DID */ export declare function verifyClaim(claim: ClaimState, opts?: VerifyOptions): Promise; //# sourceMappingURL=claim.d.ts.map