import * as React from 'react'; import { Pressable } from 'react-native'; import type { TooltipHandle } from '../store/TooltipHandle'; import type { ZestUIComponentProps } from '../../types'; /** * The element the tooltip describes, and the element it is positioned against. * Renders a ``. * * Pass a `handle` to render the trigger outside of its `Tooltip.Root`: there is * no context reaching across, so the handle is what connects the two. */ export declare function TooltipTrigger(componentProps: TooltipTrigger.Props): React.ReactElement>; export interface TooltipTriggerState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the tooltip is currently open. */ open: boolean; /** * Whether the trigger is currently pressed. */ pressed: boolean; } export interface TooltipTriggerProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. A disabled * `Tooltip.Root` disables its triggers too. * @default false */ disabled?: boolean | undefined; /** * Whether to open the tooltip on a long press instead of a press, leaving the * plain press free for the trigger's own action. * @default false */ longPress?: boolean | undefined; /** * A handle shared with a `Tooltip.Root`, which is what lets this trigger live * outside of it. Create one with `Tooltip.createHandle()`. * * The trigger's `nativeID` is the id a handle's `open(triggerId)` resolves. */ handle?: TooltipHandle | undefined; /** * A payload handed to the root's children when they are a function. */ payload?: Payload | undefined; } export declare namespace TooltipTrigger { type State = TooltipTriggerState; type Props = TooltipTriggerProps; } //# sourceMappingURL=TooltipTrigger.d.ts.map