import { BaseKey } from '@refinedev/core'; import { ComponentType } from 'react'; import { ButtonProps as TdButtonProps, LinkProps as TdLinkProps } from 'tdesign-react/esm'; import { ModalProps } from '../modal'; type Extends = TdButtonProps | TdLinkProps; interface ExtendedActionProps { title?: string; resource?: string; action?: string; Cp?: ComponentType; } export type ActionProps = ExtendedActionProps & T; export declare const Action: ({ title, resource, action, Cp, ...props }: ActionProps) => import("react/jsx-runtime").JSX.Element; export declare const CreateAction: ({ resource, action, ...props }: ActionProps) => import("react/jsx-runtime").JSX.Element; export type ActionIDProps = ActionProps & { rowId: string; }; export declare const ShowAction: ({ resource, action, rowId, ...props }: ActionIDProps) => import("react/jsx-runtime").JSX.Element; export declare const EditAction: ({ resource, action, rowId, ...props }: ActionIDProps) => import("react/jsx-runtime").JSX.Element; export type ConfirmActionProps = ActionProps & { onConfirm?: () => void; }; export declare const ConfirmAction: ({ title, resource, action, onConfirm, Cp, ...props }: ConfirmActionProps) => import("react/jsx-runtime").JSX.Element; export type ConfirmActionIdProps = ConfirmActionProps & { rowId: BaseKey; params?: Record; }; export declare const DeleteAction: ({ resource, action, rowId, params, onConfirm, ...props }: ConfirmActionIdProps) => import("react/jsx-runtime").JSX.Element; export type ConfirmActionIdsProps = ConfirmActionProps & { rowIds: BaseKey[]; params?: Record; }; export declare const DeleteManyAction: ({ resource, action, rowIds, params, onConfirm, ...props }: ConfirmActionIdsProps) => import("react/jsx-runtime").JSX.Element; export type ModalActionProps = ActionProps & { modal?: ModalProps; rowId?: BaseKey; component?: () => Promise<{ default: ComponentType; }>; componentProps?: Record; }; export declare const ActionModal: ({ resource, action, rowId, component, componentProps, modal, title, Cp, ...props }: ModalActionProps) => import("react/jsx-runtime").JSX.Element; export declare const CreateActionModal: ({ action, title, ...props }: ModalActionProps) => import("react/jsx-runtime").JSX.Element; export declare const ShowActionModal: ({ action, title, ...props }: ModalActionProps) => import("react/jsx-runtime").JSX.Element; export declare const EditActionModal: ({ action, title, ...props }: ModalActionProps) => import("react/jsx-runtime").JSX.Element; export type ExportActionProps = ActionProps & { resourceExport?: string; map?: (item: Record) => Record; filter?: Record; }; export declare const ExportAction: ({ resource, action, resourceExport, title, map, filter, Cp, ...props }: ExportActionProps) => import("react/jsx-runtime").JSX.Element; export {};