import { Button, Dropdown } from '@heroui/react'; import { ComponentProps, ReactNode } from 'react'; import { AthenaTableActionFeedbackConfig } from '../utils/table-action-feedback.js'; export type TableRowActionTone = "default" | "danger" | "success" | "warning"; export interface TableRowActionItem { buttonVariant?: ComponentProps["variant"]; /** Optional toast feedback metadata (used by factories / builders). */ feedback?: AthenaTableActionFeedbackConfig; icon?: ReactNode; isDisabled?: boolean; key: string; label: string; menuItemVariant?: ComponentProps["variant"]; onAction: () => void | Promise; tone?: TableRowActionTone; } interface TableRowActionsMenuProps { /** Falsy entries are ignored, so callers can inline conditional actions. */ actions: (TableRowActionItem | false | null | undefined)[]; ariaLabel?: string; isDisabled?: boolean; isPending?: boolean; } export declare function TableRowActionsMenu({ actions, ariaLabel, isDisabled, isPending }: TableRowActionsMenuProps): import("react").JSX.Element | null; /** @deprecated Prefer `TableRowActionItem`. */ export type RowActionItem = TableRowActionItem; /** @deprecated Prefer `TableRowActionsMenu`. */ export { TableRowActionsMenu as RowActionsMenu };