1 | import { DOMWindow } from "jsdom";
|
2 | /**
|
3 | * Utilities for querying and mutating style properties.
|
4 | */
|
5 | declare namespace Style {
|
6 | /**
|
7 | * Gets the style property for the supplied node. This will return either the
|
8 | * computed style, if available, or the declared style.
|
9 | */
|
10 | function get(node: HTMLElement, name: string): string | null | undefined;
|
11 | /**
|
12 | * Determines the nearest ancestor of a node that is scrollable.
|
13 | *
|
14 | * NOTE: This can be expensive if used repeatedly or on a node nested deeply.
|
15 | */
|
16 | function getScrollParent(node: Node): HTMLElement | DOMWindow;
|
17 | }
|
18 |
|
19 | // eslint-disable-next-line @definitelytyped/export-just-namespace
|
20 | export = Style;
|