export type Size = { width: number; height: number; }; export type PositionStart = { left: number; top: number; }; export interface ElementRect { top: number; bottom: number; left: number; right: number; width: number; height: number; } export interface ScrollRect { top: number; bottom: number; left: number; right: number; scrollTop: number; scrollBottom: number; scrollLeft: number; scrollRight: number; width: number; height: number; } export declare const getDocumentSize: () => Size; export declare const getViewportSize: () => Size; export declare const querySelector: (selectors: string, container?: Document | HTMLElement) => HTMLElement | undefined; export declare const getElement: (target: string | HTMLElement | undefined, container?: Document | HTMLElement) => HTMLElement | undefined; export declare const getElementScrollRect: (element: HTMLElement, containerRect: DOMRect) => ScrollRect; export declare const withPx: (value: unknown) => string; export declare const isElementScrollable: (element: HTMLElement) => boolean; export declare const getScrollableElements: (container: HTMLElement | undefined) => Array; export declare const on: (element: HTMLElement | Window, type: K, handler: (ev: HTMLElementEventMap[K]) => void, options?: boolean | EventListenerOptions) => void; export declare const off: (element: HTMLElement | Window, type: K, handler: (ev: HTMLElementEventMap[K]) => void, options?: boolean | EventListenerOptions) => void;