import { ButtonProps } from 'antd'; export type TActionButton = { canDelete?: boolean; buttonProps?: ButtonProps; className?: string; type?: 'icon' | 'text' | 'both'; onDelete?: () => void; onSave?: () => void; onEdit?: () => void; onCancel?: () => void; }; /** * ActionButton 組件 * * @description 提供編輯、保存、取消和刪除功能的按鈕組合組件 * * @param {boolean} [isEditing=false] - 是否處於編輯模式 * @param {Function} [onEdit] - 點擊編輯按鈕時的回調函數 * @param {Function} [onSave] - 點擊保存按鈕時的回調函數 * @param {Function} [onCancel] - 點擊取消按鈕時的回調函數 * @param {Function} [onDelete] - 點擊刪除按鈕時的回調函數 * @param {boolean} [canDelete=true] - 是否顯示刪除按鈕 * @param {string} [className] - 容器的自定義 CSS 類名 * @param {ButtonProps} [buttonProps] - 所有按鈕的共用屬性 * @param {object} [buttonPropsMapping] - 各按鈕的個別屬性配置 * @param {'both'|'icon'|'text'} [type='both'] - 按鈕顯示類型:同時顯示圖標和文字、僅圖標或僅文字 * * @returns {JSX.Element} 返回按鈕組合組件 * * @example * // 基本用法 * setIsEditing(true)} * onSave={handleSave} * onCancel={() => setIsEditing(false)} * /> * * // 僅顯示圖標 * setIsEditing(true)} * onSave={handleSave} * onCancel={() => setIsEditing(false)} * /> */ export declare const ActionButton: import('react').MemoExoticComponent<({ canDelete, buttonProps, className, type, onDelete, onSave, onEdit, onCancel, }: TActionButton) => import("react").JSX.Element>;