export declare type PositionType = "start" | "end" | "bottom" | "top"; export declare type Position = { top?: number; left?: number; }; export declare const calcPosition: (anchorEl: HTMLElement, positionType: PositionType) => { top: number; left: number; right?: undefined; bottom?: undefined; } | { top: number; right: number; left?: undefined; bottom?: undefined; } | { bottom: number; left: number; top?: undefined; right?: undefined; } | { top?: undefined; left?: undefined; right?: undefined; bottom?: undefined; }; export declare const useContext: (positionType: PositionType, onClose?: (() => void) | undefined) => { show: boolean; position: Position; close: () => void; open: (currentTarget: any) => void; };