/** * unitfyi-embed — TypeScript declarations * * The embed script is self-executing. Simply import it to activate widgets. * All configuration is provided via data-* attributes on DOM elements. */ export {}; declare global { interface HTMLElement { dataset: DOMStringMap & { /** Widget type for UnitFYI */ 'unitfyi'?: 'entity' | 'compare' | 'glossary' | 'guide' | 'search' | 'faq' | 'converter' | 'conversion'; /** Entity slug (e.g. "units") */ slug?: string; /** Visual theme */ theme?: 'light' | 'dark' | 'sepia' | 'auto'; /** Widget design style */ style?: 'modern' | 'clean'; /** Widget size */ size?: 'default' | 'compact' | 'large'; /** Search box placeholder text */ placeholder?: string; }; } }