
"use client";
import { MenuPlacement } from "../Menu.Provider.js";
import { MenuProviderProps } from "@ariakit/react/menu";

//#region src/components/client/Menu/utils/transformAriakitPlacement.d.ts
/**
 * Maps directionally-agnostic placement values to Ariakit LTR values
 * - Converts 'start' to 'left' and 'end' to 'right' (with RTL support)
 * - Examples:
 *   - 'start' -> 'left' (or 'right' in RTL)
 *   - 'end' -> 'right' (or 'left' in RTL)
 *   - 'top-start' -> 'top-left' (or 'top-right' in RTL)
 *   - 'bottom-end' -> 'bottom-right' (or 'bottom-left' in RTL)
 *   - 'start-top' -> 'left-top' (or 'right-top' in RTL)
 *   - 'end-bottom' -> 'right-bottom' (or 'left-bottom' in RTL)
 *
 * The function handles:
 * - Simple placements (start/end)
 * - Vertical-horizontal combinations (top-start, bottom-end, etc.)
 * - Horizontal-vertical combinations (start-top, end-bottom, etc.)
 * - RTL/LTR directionality
 * - Undefined placements and options
 */
declare const transformAriakitPlacement: (/** The placement of the menu relative to the trigger */placement?: MenuPlacement, /** Extra options */options?: {
  /** Whether to apply RTL/LTR directionality to the menu */rtl?: boolean;
}) => MenuProviderProps["placement"];
//#endregion
export { transformAriakitPlacement };