export type Direction = "horizontal" | "vertical" | "either"; /** * Get practical parent element, with consideration for slots and shadow roots. * * @param element element * @returns The parent element (if any) */ export declare function getEffectiveParentElement(element: HTMLElement): HTMLElement | null; /** * Get the first scrollable ancestor element. * * @param element element * @param direction scroll direction * @returns the first scrollable ancestor element (if any) */ export declare function getFirstScrollableAncestor(element: HTMLElement, direction: Direction): HTMLElement | null; export declare function calcScrollIntoViewOffset(target: HTMLElement, container: HTMLElement, center: boolean): [x: number, y: number]; /** * An alternative `.scrollIntoView()` function which only scrolls the first scrollable ancestor element. * * @param target target element * @param direction direction * @returns `true` if success, `false` if scrollable parent not found */ export declare function scrollIntoViewOnlyParent(target: HTMLElement, direction: Direction, center: boolean): boolean;