/** * Host pages sometimes ship an IE11-era CustomEvent polyfill that overrides * `window.CustomEvent` and forwards only bubbles/cancelable/detail — silently * dropping `composed`. Stencil's event emitter uses the global constructor, so * on such pages every internal widget event dies at the first shadow boundary * (observed in production at a partner: the consent "Continuar" click became a * silent no-op). This module restores spec-compliant behavior before the * widget emits anything. * * The repair only runs when the global is provably broken, and only restores * platform-spec behavior — a page cannot meaningfully depend on `composed` * being dropped. */ /** * - `healthy`: the page's constructor honors `composed`; nothing was touched. * - `repaired`: a broken constructor was detected and replaced with a * spec-compliant one. * - `unrepairable`: broken, and neither strategy worked in this environment — * the page was left exactly as found; internal widget events may not work. */ export type CustomEventRepairOutcome = 'healthy' | 'repaired' | 'unrepairable'; export declare function repairHostCustomEvent(): CustomEventRepairOutcome;