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