import { type RendererElement, type VNode } from 'vue'; import PfFocusTrap from '../helpers/FocusTrap.vue'; import { type Placement, type FlipOptions, type AutoPlacementOptions } from '@floating-ui/dom'; import { type OUIAProps } from '../helpers/ouia'; import type { ComponentProps } from 'vue-component-type-helpers'; interface Props extends OUIAProps, Omit, 'active' | 'role' | 'aria-modal' | 'aria-labelledby' | 'aria-describedby' | 'ouiaId' | 'ouiaSafe'> { /** Disables the focus trap of a popover opened by a click, such as when it has no focusable content */ noFocusTrap?: boolean; /** The element to focus when the popover becomes visible. By default the first focusable element will receive focus. */ elementToFocus?: HTMLElement | SVGElement | string; /** Element or selector where to render the floating popover */ appendTo?: 'inline' | string | RendererElement | null | undefined; /** The trigger element, a selector or a function returning it, to use in place of the default slot */ triggerRef?: HTMLElement | string | (() => HTMLElement | null | undefined) | null; /** @deprecated Opens the popover on hover and focus rather than on click. Prefer a tooltip. */ hover?: boolean; /** Removes fixed-width and allows width to be defined by contents */ autoWidth?: boolean; /** Allows content to touch edges of popover container */ noPadding?: boolean; /** Hides the close button */ noClose?: boolean; /** Keeps the popover at its position even when it does not fit, rather than flipping it */ noFlip?: boolean; /** The order of the positions to try when the popover does not fit at its position */ flipBehavior?: Placement[]; /** Options of the flip middleware, replacing flipBehavior */ flipOptions?: FlipOptions; /** Options of the auto placement middleware, used when position is "auto" */ placementOptions?: AutoPlacementOptions; /** Keeps the popover open when a click occurs outside of it */ noHideOnOutsideClick?: boolean; /** * Popover position. Unless noFlip is set, it will change the position if there is not enough space for it, in the * order of flipBehavior. */ position?: Placement | 'auto'; /** Minimum width of the popover (default 6.25rem) */ minWidth?: string; /** Maximum width of the popover (default 18.75rem) */ maxWidth?: string; /** CSS fade transition animation duration */ animationDuration?: number; /** Accessible label for the close button. Defaults to the `popoverClose` message. */ closeBtnAriaLabel?: string; /** Distance of the popover to its target */ distance?: number; /** Accessible label for the popover, required when there is no header */ ariaLabel?: string; /** Sets the heading level to use for the popover header */ headerComponent?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; /** Severity variants for an alert popover. This modifies the color of the header to match the severity. */ alertSeverityVariant?: 'custom' | 'info' | 'warning' | 'success' | 'danger'; /** Text announced by screen readers to indicate the severity of an alert popover. Defaults to "{variant} alert:". */ alertSeverityScreenReaderText?: string; /** The z-index of the popover */ zIndex?: number; } declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: __VLS_WithSlots; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "update:open": (value: boolean) => any; } & { hidden: () => any; shown: () => any; hide: (event: Event) => any; show: (event: Event) => any; }, string, import("vue").PublicProps, Readonly & Readonly<{ onHidden?: (() => any) | undefined; onShown?: (() => any) | undefined; onHide?: ((event: Event) => any) | undefined; "onUpdate:open"?: ((value: boolean) => any) | undefined; onShow?: ((event: Event) => any) | undefined; }>, { minWidth: string; maxWidth: string; ouiaSafe: boolean; zIndex: number; animationDuration: number; flipBehavior: Placement[]; position: "auto" | Placement; distance: number; headerComponent: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; open: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { /** The trigger of the popover, unless triggerRef is set */ default?: (props?: Record) => VNode[]; /** Content of the popover header */ header?: (props: { hide: () => void; }) => VNode[]; /** Icon displayed in the popover header */ 'header-icon'?: (props?: Record) => VNode[]; /** Content of the popover body */ body?: (props: { hide: () => void; }) => VNode[]; /** Content of the popover footer */ footer?: (props: { hide: () => void; }) => VNode[]; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //# sourceMappingURL=Popover.vue.d.ts.map