import * as React from 'react'; import { Pressable } from 'react-native'; import type { ToastRootState } from '../root/ToastRoot'; import type { ZestUIComponentProps } from '../../types'; /** * Performs an action when pressed. * Renders a ``. * * **Diverges from the web deliberately.** Upstream reads the button's props off * the toast object (`actionProps`), so a toast pushed from outside React can * carry its own handler. That type is `React.ComponentPropsWithoutRef<'button'>` * — DOM props — so zest drops it: wire this part up with `onPress` where you * render it, or put what you need on the toast's `data` and read it from there. */ export declare function ToastAction(componentProps: ToastAction.Props): React.ReactElement>; export interface ToastActionState extends ToastRootState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the button is currently pressed. */ pressed: boolean; } export interface ToastActionProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; } export declare namespace ToastAction { type State = ToastActionState; type Props = ToastActionProps; } //# sourceMappingURL=ToastAction.d.ts.map