import { CSSProperties } from 'react'; export declare enum PopOverVariant { positionautomatic = "positionautomatic", positionbelow = "positionbelow", positionabove = "positionabove" } /** * Beregn om hjelpeboblen skal vises over eller under kontrolleren * @param controllerSize DOMRect for controlleren * @param bubbleSize DOMRect for hjelpeboblen * @param variant Ønsket plassering av hjelpeboblen (over/under/automatisk) * @returns Om hjelpeboblen skal vises over eller under */ export declare const getVerticalPosition: (controllerSize: DOMRect, bubbleSize: DOMRect, variant: keyof typeof PopOverVariant) => keyof typeof PopOverVariant; /** * Finn riktig plassering av hjelpeboblen * @param controllerSize DOMRect for controlleren * @param bubbleSize DOMRect for hjelpeboblen * @param variant Ønsket plassering av hjelpeboblen (over/under) * @returns CSSProperties som plasserer hjelpeboblen riktig */ export declare const getBubbleStyle: (controllerSize: DOMRect, bubbleSize: DOMRect, variant: keyof typeof PopOverVariant) => CSSProperties; /** * Finn riktig plassering av pilen * @param bubbleStyle CSSProperties for hjelpeboblen * @param controllerSize DOMRect for kontrolleren * @param verticalPosition Ønsket plassering av hjelpeboblen (over/under) * @returns CSSProperties som plasserer pilen riktig */ export declare const getArrowStyle: (bubbleStyle: CSSProperties, controllerSize: DOMRect, verticalPosition: keyof typeof PopOverVariant) => CSSProperties;