export declare function clamp(min: number, max: number, x: number): number;
export declare const enum Position {
    Auto = 0,
    Above = 1,
    Below = 2
}
/** Determines if `popupElement` should be shown above `positioningContextElement` */
export declare function shouldShowAbove(popupElement: HTMLElement, positioningContextElement: HTMLElement): boolean;
type ShortcutOptions = {
    shift?: boolean;
    alt?: boolean;
    cmdOrCtrl?: boolean;
};
export declare function checkModifiers(e: KeyboardEvent | MouseEvent, options?: ShortcutOptions): boolean;
export declare function checkShortcut(e: KeyboardEvent, key: string, options?: ShortcutOptions): boolean;
export declare function checkMouseShortcut(e: MouseEvent, options?: ShortcutOptions): boolean;
export {};
