import { LitElement, type CSSResultGroup } from 'lit'; export declare class UiElement extends LitElement { protected static finalizeStyles(styles?: CSSResultGroup): import("lit").CSSResultOrNative[]; /** * The element's public states (documented with `@cssstate`): each `data-` attribute the element sets on * itself is also a custom state, so app styles can use `ui-dropdown:state(open)` as well as * `ui-dropdown[data-open]` (Web Awesome and native elements expose state this way). */ static hostStates: readonly string[]; private attachedInternals?; /** The element's ElementInternals, attached once on first use (subclasses use this, never attachInternals). */ protected get internals(): ElementInternals; setAttribute(name: string, value: string): void; removeAttribute(name: string): void; toggleAttribute(name: string, force?: boolean): boolean; /** Mirrors a public state's `data-*` attribute into the custom state of the same name. */ private syncState; /** * WebKit bug (Safari): a shared (adopted) stylesheet that is adopted again after every element using it * had left the page keeps the @media results of when it was last in use — a notification or the shell * added after the window was resized lays out for the old width until the next resize. What works: * once the new shadow root has been styled, assign its sheets again (before that, WebKit ignores it). * Styling it early gives transitions a starting point (states set just after the first render would * animate), so this runs only in the case of the bug: the first element of a class with @media rules * connecting while the viewport differs from when the last one left — and every other element of that * class connecting in the same task (a grid's columns all come back at once). Before the next paint. */ connectedCallback(): void; /** Styles the shadow root once (reading a computed style), then assigns its sheets again. */ private restyle; disconnectedCallback(): void; protected createRenderRoot(): HTMLElement | DocumentFragment; /** * Empties a server-rendered shadow root and prepares it as LitElement prepares a new one. What the user already * typed, chose or focused in it (a slow script) carries over to the new render. */ private reuseServerRoot; }