export type DidMethod = "webs" | "web" | "keri"; export interface DidQueryParts { readonly did: string; readonly query: string; readonly fragment: string; } export interface ParsedDidWebs { readonly kind: "webs" | "web"; readonly raw: string; readonly canonical: string; readonly method: "webs" | "web"; readonly host: string; readonly encodedHost: string; readonly path: readonly string[]; readonly aid: string; readonly query: string; readonly fragment: string; } export interface ParsedDidKeri { readonly kind: "keri"; readonly raw: string; readonly canonical: string; readonly method: "keri"; readonly aid: string; readonly query: string; readonly fragment: string; } export type ParsedDid = ParsedDidWebs | ParsedDidKeri; export interface DidWebsArtifactUrls { readonly didJson: string; readonly keriCesr: string; } /** Split one DID into identifier, query, and fragment components. */ export declare function splitDidQuery(input: string): DidQueryParts; /** Parse supported DID methods into a canonical descriptor. */ export declare function parseDid(input: string): ParsedDid; /** Return true when a value looks like a supported or opaque DID string. */ export declare function isDidString(value: string): boolean; /** Parse and require a `did:webs` or hosted `did:web` descriptor. */ export declare function parseDidWebs(input: string): ParsedDidWebs; /** Parse and require a `did:keri` descriptor. */ export declare function parseDidKeriIdentifier(input: string): ParsedDidKeri; /** Convert a canonical `did:webs` descriptor to the hosted `did:web` form. */ export declare function toHostedDidWeb(input: string | ParsedDidWebs): string; /** Convert a hosted `did:web` descriptor to canonical `did:webs` form. */ export declare function toCanonicalDidWebs(input: string | ParsedDidWebs): string; /** Build artifact URLs for one canonical `did:webs` identifier. */ export declare function didWebsArtifactUrls(input: string | ParsedDidWebs, options?: { readonly scheme?: "https" | "http"; }): DidWebsArtifactUrls; /** * Build the canonical `did:webs` identifier represented by one HTTP artifact * request. */ export declare function didWebsFromArtifactRequest(args: { readonly host: string; readonly didPath: readonly string[]; readonly aid: string; }): string; /** * Normalize one hosted DID document by replacing its `did:web` form with the * canonical `did:webs` form used for resolver comparison. */ export declare function normalizeHostedDidDocument(document: T, canonicalDid: string): T; //# sourceMappingURL=dids.d.ts.map