/** * Shared helpers for element wrappers. */ export type ElementList = Element[]; /** * Normalize a CSS property name for the CSSOM `setProperty()` / * `getPropertyValue()` calls, which only understand the hyphenated form. * * `css({ fontSize: '18px' })` — the jQuery spelling, and the one the * migration guide shows — was otherwise ignored without any error. Custom * properties (`--brand`) are case-sensitive and passed through untouched; * vendor prefixes follow the DOM spelling (`WebkitTransition`, * `webkitTransition`, `msTransform` → `-webkit-transition`, `-ms-transform`). * Names that already contain a hyphen are passed through unchanged. * @internal */ export declare const toCssPropertyName: (name: string) => string; /** * Whether an element is hidden by one of the mechanisms `show()` undoes: * an inline `display: none`, or the `hidden` attribute when no inline * `display` overrides it (an inline `display: flex` beats `[hidden]`). * `hidden="until-found"` hides through `content-visibility`, so it hides the * content whatever the inline `display` is. * @internal */ export declare const isElementHidden: (el: Element) => boolean; /** * Hide an element with an inline `display: none`, remembering the inline * `display` it had so {@link showElement} can put it back. * @internal */ export declare const hideElement: (el: Element) => void; /** * Show an element: drop the `hidden` attribute and restore the inline * `display` from before {@link hideElement}. An explicit `display` wins. * Without one, an element that is not inline-hidden keeps its current value. * @internal */ export declare const showElement: (el: Element, display?: string) => void; /** Handler signature for delegated events */ export type DelegatedHandler = (event: Event, target: Element) => void; /** @internal */ export declare const addDelegatedListener: (el: Element, event: string, selector: string, handler: DelegatedHandler) => void; /** @internal */ export declare const removeDelegatedListener: (el: Element, event: string, selector: string, handler: DelegatedHandler) => void; export declare const toElementList: (input: Element | ElementList) => ElementList; export declare const applyAll: (elements: ElementList, action: (el: Element) => void) => void; /** @internal */ export declare const isHTMLElement: (element: Element | null | undefined) => element is HTMLElement; /** * Gets an element's inner size (content + padding, excluding border and margin). * * @internal */ export declare const getInnerSize: (element: Element | null | undefined, dimension: "width" | "height") => number; /** * Gets an element's outer size, optionally including margins. * * @internal */ export declare const getOuterSize: (element: Element | null | undefined, dimension: "width" | "height", includeMargin: boolean) => number; //# sourceMappingURL=shared.d.ts.map