/** * Creates a DOM element with attributes. * - 'textContent' is always safe (no XSS) * - 'innerHTML' is ONLY used for trusted SVG icons (never user input) */ export declare function el(tag: K, attrs?: Record, children?: (HTMLElement | string)[]): HTMLElementTagNameMap[K]; /** * Applies CSS custom properties to an element, sanitizing values. */ export declare function applyThemeVars(element: HTMLElement, vars: Record): void; /** * Creates a focus trap within a container element. * Returns a cleanup function to remove the trap. */ export declare function createFocusTrap(container: HTMLElement): () => void; /** * Locks body scroll without layout shift. * Accounts for scrollbar width to prevent content jumping. * Supports nested lock/unlock (reference counted). */ export declare function lockScroll(): void; /** * Unlocks body scroll, restoring previous state. */ export declare function unlockScroll(): void; export declare function uid(prefix?: string): string;