import { ButtonCommonProps } from "@trackunit/react-components"; import { ReactElement } from "react"; import { ActionModel } from "./Actions"; interface ActionButtonProps extends ButtonCommonProps { /** * The action model defining what the action. */ action: ActionModel; } /** * The button to show in the ActionSheet. * Should not be used outside the ActionSheet component. * * @param {ActionButtonProps} props - The properties for the action button. * @param {ActionModel} props.action - The action model defining what action to perform. * @param {string} [props.id] - The optional ID for the button. * @param {...any} [props.rest] - Any additional button properties. * @returns {ReactElement} - The action button component. */ export declare const ActionButton: ({ action, id, ...rest }: ActionButtonProps) => ReactElement; /** * Converts an action model to a MenuItem component. * These should be shown in the more menu. * Should not be used outside the ActionSheet component. * * @param {ActionModel} action - The action model to convert. * @param {string} [dataTestId] - Optional data test ID. * @returns {ReactElement} - The MenuItem component for the given action. */ export declare const actionDataToMenuItem: (action: ActionModel, dataTestId?: string) => import("react/jsx-runtime").JSX.Element; /** * Converts an action model to an ActionButton component. * These should be shown in the ActionSheet. * Should not be used outside the ActionSheet component. * * @param action - The action model to convert. * @returns {*} The ActionButton component for the given action. */ export declare const actionDataToActionButton: (action: ActionModel) => import("react/jsx-runtime").JSX.Element; export {};