import { i as Delay, n as LayerProps, r as Placement } from "./layer-ChlP9Ik6.js";
import { s as ThemeColorSchemeKey } from "./_system-CTe2lb5l.js";
/**
 * @public
 */
interface TooltipProps extends Omit<LayerProps, 'as'> {
  /** @deprecated Use `fallbackPlacements` instead. */
  allowedAutoPlacements?: never;
  arrow?: boolean;
  boundaryElement?: HTMLElement | null;
  children?: React.JSX.Element;
  content?: React.ReactNode;
  disabled?: boolean;
  fallbackPlacements?: Placement[];
  padding?: number | number[];
  placement?: Placement;
  /** Whether or not to render the tooltip in a portal element. */
  portal?: boolean | string;
  radius?: number | number[];
  scheme?: ThemeColorSchemeKey;
  shadow?: number | number[];
  /**
   * Adds a delay to open or close the tooltip.
   *
   * If only a `number` is passed, it will be used for both opening and closing.
   *
   * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
   *
   * @public
   * @defaultValue 0
   */
  delay?: Delay;
  /**
   * Whether the tooltip should animate in and out.
   *
   * @beta
   * @defaultValue false
   */
  animate?: boolean;
}
/**
 * Tooltips display information when hovering, focusing or tapping.
 *
 * @public
 */
export declare function Tooltip(props: TooltipProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content'>): import("react").JSX.Element;
/**
 * @beta
 */
interface TooltipDelayGroupContextValue {
  setIsGroupActive: (nextState: React.SetStateAction<boolean>, delay?: number | undefined) => void;
  setOpenTooltipId: (nextId: string | null, delay?: number | undefined) => void;
  openDelay: number;
  closeDelay: number;
  openTooltipId: string | null;
}
/**
 * @beta
 */
export declare const TooltipDelayGroupContext: import("react").Context<TooltipDelayGroupContextValue | null>;
/**
 * @public
 * */
interface TooltipDelayGroupProviderProps {
  children?: React.ReactNode;
  /**
   * Handles the delays to open or close a tooltip inside a group
   *
   * If only a `number` is passed, it will be used for both opening and closing.
   *
   * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
   *
   * @public
   */
  delay: Delay;
}
/**
 * @public
 * Provides context for a group of tooltip elements that should share a delay
 * which temporarily becomes 1 ms after the first floating element of the group opens.
 */
export declare function TooltipDelayGroupProvider(props: TooltipDelayGroupProviderProps): React.JSX.Element;
/**
 * @beta
 */
export declare function useTooltipDelayGroup(): TooltipDelayGroupContextValue | null;
export type { TooltipDelayGroupContextValue, TooltipDelayGroupProviderProps, TooltipProps };
//# sourceMappingURL=tooltip.d.ts.map