import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { PopoverAdapter } from "../../composables/usePopover/adapters/adapter.mjs"; import { PopoverReturn } from "../../composables/usePopover/index.mjs"; import { Ref, ShallowRef } from "vue"; //#region src/components/Tooltip/TooltipRoot.vue.d.ts type TooltipState = 'closed' | 'delayed-open' | 'instant-open'; interface TooltipRootProps extends AtomProps { /** Delay in ms before opening; falls back to the region delay when omitted */ openDelay?: number; /** Delay in ms before closing; falls back to the region delay when omitted */ closeDelay?: number; /** Whether the tooltip is disabled (also disabled when the region is) */ disabled?: boolean; /** Whether the content stays open while hovered, allowing pointer interaction */ interactive?: boolean; /** CSS anchor-positioning `position-area` for the content (default `top`) */ positionArea?: string; /** CSS anchor-positioning `position-try` fallbacks (default `most-height top`) */ positionTry?: string; /** Dependency-injection namespace (default `v0:tooltip`) */ namespace?: string; /** Positioning engine. @default CSS anchor positioning (`V0PopoverAdapter`) */ adapter?: PopoverAdapter; } interface TooltipRootSlotProps { /** Whether the tooltip is currently open */ isOpen: boolean; /** Whether the tooltip is disabled */ isDisabled: boolean; } interface TooltipRootContext { /** Unique popover id shared between anchor and content */ id: string; /** Open state, writable via v-model */ isOpen: ShallowRef; /** Whether the tooltip is disabled */ isDisabled: Readonly>; /** Whether the content is interactive (hoverable) */ isInteractive: Readonly>; /** * Current visual state for CSS `data-state` styling. `delayed-open` marks * an open that waited the full open delay; `instant-open` marks one opened * immediately through the region skip-window (or focus) — consumers can * animate the two reveals differently. */ dataState: Readonly>; /** * Start the open transition. Passing `instant` (or a region skip-window hit) * opens immediately, bypassing the open delay. */ open: (instant?: boolean) => void; /** Start the close transition */ close: () => void; /** Cancel any pending open/close transition */ cancel: () => void; /** Attributes to bind to the content element */ contentAttrs: PopoverReturn['contentAttrs']; /** Styles to bind to the content element */ contentStyles: PopoverReturn['contentStyles']; /** Styles to bind to the anchor element */ anchorStyles: PopoverReturn['anchorStyles']; /** Attach the anchor element to the popover */ attach: PopoverReturn['attach']; /** Register the activator/reference element with the positioning adapter */ attachAnchor: PopoverReturn['attachAnchor']; } declare const useTooltipRoot: (key: string, defaultValue?: TooltipRootContext | undefined) => TooltipRootContext, provideTooltipRoot: (key: string, context: TooltipRootContext, app?: import("vue").App) => TooltipRootContext; declare const _default: typeof __VLS_export; declare const __VLS_export: __VLS_WithSlots any; "update:model-value": (value: boolean) => any; }, string, import("vue").PublicProps, Readonly & Readonly<{ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; "onUpdate:model-value"?: ((value: boolean) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { default: (props: TooltipRootSlotProps) => any; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion export { TooltipRootContext, TooltipRootProps, TooltipRootSlotProps, TooltipState, _default as default, provideTooltipRoot, useTooltipRoot };