/** * The sanitizer capability Lyra consumes from DOMPurify. * * This owned structural type keeps optional peer declarations out of Lyra's * public declaration graph while still requiring loaders to validate the * method they call. */ export interface HtmlSanitizer{sanitize(input:string,options?:Record):unknown;} /** Returns an ESM default export when present, otherwise the original value. */ export declare function unwrapOptionalPeerDefault(value:unknown):unknown; /** * Selects an optional peer by capability, preferring the module namespace before its default. * * Some CJS/ESM interop wrappers expose both shapes. The namespace may carry the real named API * while an unrelated or stale `default` is also present, so property presence alone is not enough * to choose safely. */ export declare function resolveOptionalPeerCapability(value:unknown,isCapability:(candidate:unknown)=>candidate is Capability):Capability|null; /** Narrows an unknown optional-peer value to the sanitizer capability Lyra uses. */ export declare function isHtmlSanitizer(value:unknown):value is HtmlSanitizer;