import * as React from 'react'; import { Pressable } from 'react-native'; import type { SelectHandle } from '../store/SelectHandle'; import type { ZestUIComponentProps } from '../../types'; /** * A button that opens the select popup, and the element it is positioned against. * Renders a ``. * * Pass a `handle` to render a trigger outside of its `Select.Root`: there is no * context reaching across, so the handle is what connects the two. */ export declare function SelectTrigger(componentProps: SelectTrigger.Props): React.ReactElement>; export interface SelectTriggerState { disabled: boolean; open: boolean; pressed: boolean; readOnly: boolean; required: boolean; } export interface SelectTriggerProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; /** * A handle shared with a `Select.Root`, which is what lets this trigger live * outside of it. Create one with `Select.createHandle()`. * * The trigger's `nativeID` is the id a handle's `open(triggerId)` resolves. */ handle?: SelectHandle | undefined; /** * A payload handed to the root's children when they are a function. */ payload?: Payload | undefined; } export declare namespace SelectTrigger { type State = SelectTriggerState; type Props = SelectTriggerProps; } //# sourceMappingURL=SelectTrigger.d.ts.map