import { TemplateResult } from 'lit';

declare global {
    interface Window {
        StackMgr: any;
    }
}
export declare const isDomElement: (element: unknown) => boolean;
export declare const isInElement: (element: Element | null, target: Element) => boolean;
export declare const getActiveElement: (root?: Document | ShadowRoot) => Element | null;
/**
 * @param value - The CSS value to convert to pixels.
 * @param contextEl - The element to use as the context for the conversion.
 * @param property - The property to use for the conversion. If the property is horizontal, use 'width'. If the property is vertical, use 'height'.
 * @returns The value in pixels.
 */
export declare const cssValueToPx: (value: string, contextEl?: HTMLElement, property?: "width" | "height") => number;
/** Calculate the progress number by using mouse event and container element */
export declare const getRelativeClickPercentage: (event: MouseEvent, container: HTMLElement) => number;
export declare const loadScript: (src: string, window?: Window) => Promise<void>;
export declare function getNeededPaddingForBoxShadow(boxShadow: string, appendPx?: boolean): {
    paddingBottom: string;
    paddingLeft: string;
    paddingRight: string;
    paddingTop: string;
};
export declare function sortByTopPosition<T extends Element>(elements: T[]): T[];
export declare function getCurrentZIndex(): any;
export declare function getCortexPopupLayer(): HTMLElement;
export declare function getElementFromTemplate<T extends HTMLElement>(template: TemplateResult): T;
export declare function getElementFromHTMLString<T extends HTMLElement>(htmlString: string): T | null;
export declare function isElementInHorizontalView(container: HTMLElement, el: HTMLElement, offset?: number): boolean;
