import { DismissableLayer } from "@loke/ui/dismissable-layer"; import { FocusScope } from "@loke/ui/focus-scope"; import * as PopperPrimitive from "@loke/ui/popper"; import { Portal as PortalPrimitive } from "@loke/ui/portal"; import { Primitive } from "@loke/ui/primitive"; import { type ComponentPropsWithoutRef, type FC, type ReactNode } from "react"; declare const createPopoverScope: import("@loke/ui/context").CreateScope; interface PopoverProps { children?: ReactNode; defaultOpen?: boolean; modal?: boolean; onOpenChange?: (open: boolean) => void; open?: boolean; } declare const Popover: FC; type PopperAnchorProps = ComponentPropsWithoutRef; interface PopoverAnchorProps extends PopperAnchorProps { } declare const PopoverAnchor: import("react").ForwardRefExoticComponent>; type PrimitiveButtonProps = ComponentPropsWithoutRef; interface PopoverTriggerProps extends PrimitiveButtonProps { } declare const PopoverTrigger: import("react").ForwardRefExoticComponent>; type PortalProps = ComponentPropsWithoutRef; interface PopoverPortalProps { children?: ReactNode; /** * Specify a container element to portal the content into. */ container?: PortalProps["container"]; /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const PopoverPortal: FC; interface PopoverContentProps extends PopoverContentTypeProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const PopoverContent: import("react").ForwardRefExoticComponent>; interface PopoverContentTypeProps extends Omit { } type FocusScopeProps = ComponentPropsWithoutRef; type DismissableLayerProps = ComponentPropsWithoutRef; type PopperContentProps = ComponentPropsWithoutRef; interface PopoverContentImplProps extends Omit, Omit { /** * Event handler called when auto-focusing on close. * Can be prevented. */ onCloseAutoFocus?: FocusScopeProps["onUnmountAutoFocus"]; /** * Event handler called when auto-focusing on open. * Can be prevented. */ onOpenAutoFocus?: FocusScopeProps["onMountAutoFocus"]; /** * Whether focus should be trapped within the `Popover` * (default: false) */ trapFocus?: FocusScopeProps["trapped"]; } interface PopoverCloseProps extends PrimitiveButtonProps { } declare const PopoverClose: import("react").ForwardRefExoticComponent>; type PopperArrowProps = ComponentPropsWithoutRef; interface PopoverArrowProps extends PopperArrowProps { } declare const PopoverArrow: import("react").ForwardRefExoticComponent>; declare const Root: FC; declare const Anchor: import("react").ForwardRefExoticComponent>; declare const Trigger: import("react").ForwardRefExoticComponent>; declare const Portal: FC; declare const Content: import("react").ForwardRefExoticComponent>; declare const Close: import("react").ForwardRefExoticComponent>; declare const Arrow: import("react").ForwardRefExoticComponent>; export { createPopoverScope, Popover, PopoverAnchor, PopoverTrigger, PopoverPortal, PopoverContent, PopoverClose, PopoverArrow, Root, Anchor, Trigger, Portal, Content, Close, Arrow, }; export type { PopoverProps, PopoverAnchorProps, PopoverTriggerProps, PopoverPortalProps, PopoverContentProps, PopoverCloseProps, PopoverArrowProps, };