import type { Placement } from 'react-overlays/usePopper'; import type { ActionType, OverlayDirectionEnum, OverlayAlignEnum } from './Popover.types'; /** * Handles the interaction logic for showing or hiding the popover based on the action type. * @param action - The action type ('click' or 'hover') that triggers the popover. * @param show - The current visibility state of the popover. * @param setShow - The function to update the visibility state of the popover. * @param actionType - The type of action currently being performed. * @param value - Optional boolean value indicating the hover state (true for hover in, false for hover out). * @param disabled - Optional boolean value indicating the disabled state of target component. */ export declare const handleInteraction: (action: ActionType | undefined, show: boolean, setShow: React.Dispatch>, actionType: ActionType, value?: boolean, disabled?: boolean) => void; /** * Determines the placement of the popover based on direction and alignment. * @param direction - The direction of the popover ('top', 'bottom', 'right', 'left'). * @param alignment - The alignment of the popover ('start', 'end', 'center'). * @returns The calculated placement string for the popover. */ export declare const getPlacement: (alignment?: OverlayAlignEnum, direction?: OverlayDirectionEnum) => Placement; /** * Gets the width value based on the provided parameters. * If `matchTriggerWidth` is `true` and `width` is `'match-trigger'`, * it returns the width of the `targetRef` element. * * @param {string | number | undefined} width - Width value or 'match-trigger'. * @param {React.RefObject | undefined} targetRef - Optional reference to the target element. * @param {boolean} matchTriggerWidth - Flag indicating whether to match width with `targetRef`. * @returns {string | number | undefined} Calculated width value. */ export declare const getWidth: (width?: string | number, targetRef?: React.RefObject, matchTriggerWidth?: boolean) => string | number | undefined;