export declare function getOffsetToRoot(el: HTMLElement | null, direction?: 'top' | 'left'): number;