import { ParsedName } from "../../x509/parse.js"; //#region src/internal/shared/dn.d.ts /** RFC 5280 [§7.1](https://datatracker.ietf.org/doc/html/rfc5280#section-7.1) semantic equality: same RDN count, each pair matches attribute-by-attribute. */ declare function compareDistinguishedNames(left: ParsedName, right: ParsedName): boolean; /** * Produces a deterministic string key for a parsed DN, suitable as a Map key. * Semantically equal DNs (per RFC 5280 [§7.1](https://datatracker.ietf.org/doc/html/rfc5280#section-7.1)) produce identical keys. * * Format: RDNs joined by `,`, attributes within each RDN sorted by OID then by prepared value, joined by `+`. */ declare function canonicalDnKey(name: ParsedName): string; /** True when `subject` equals or is subordinate to `constraint` (RDN prefix match). */ declare function isWithinDirectoryNameSubtree(subject: ParsedName, constraint: ParsedName): boolean; //#endregion export { canonicalDnKey, compareDistinguishedNames, isWithinDirectoryNameSubtree }; //# sourceMappingURL=dn.d.ts.map