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