import * as React from 'react'; import { Pressable } from 'react-native'; import type { PopoverHandle } from '../store/PopoverHandle'; import type { ZestUIComponentProps } from '../../types'; /** * A button that opens the popover, and the element it is positioned against. * Renders a ``. */ export declare function PopoverTrigger(componentProps: PopoverTrigger.Props): React.ReactElement>; export interface PopoverTriggerState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the popover is currently open. */ open: boolean; /** * Whether the trigger is currently pressed. */ pressed: boolean; } export interface PopoverTriggerProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; /** * A handle shared with a `Popover.Root`, which is what lets this trigger live * outside of it. Create one with `Popover.createHandle()`. * * The trigger's `nativeID` is the id a handle's `open(triggerId)` resolves. */ handle?: PopoverHandle | undefined; /** * A payload handed to the root's children when they are a function. */ payload?: Payload | undefined; } export declare namespace PopoverTrigger { type State = PopoverTriggerState; type Props = PopoverTriggerProps; } //# sourceMappingURL=PopoverTrigger.d.ts.map