import { BaseKey, BaseRecord, HttpError, UseFormProps } from "@pankod/refine-core"; import { ButtonProps } from "../../../components/antd"; import { useTableProps, useTableReturnType } from "../useTable"; import { UseFormReturnType } from "../../form/useForm"; export declare type useEditableTableReturnType = useTableReturnType & UseFormReturnType & { saveButtonProps: ButtonProps & { onClick: () => void; }; cancelButtonProps: ButtonProps & { onClick: () => void; }; editButtonProps: (id: BaseKey) => ButtonProps & { onClick: () => void; }; isEditing: (id: BaseKey) => boolean; }; declare type useEditableTableProps = useTableProps & UseFormProps; /** * `useEditeableTable` allows you to implement edit feature on the table with ease, * on top of all the features that {@link https://refine.dev/docs/api-references/hooks/table/useTable `useTable`} provides. * `useEditableTable` return properties that can be used on Ant Design's {@link https://ant.design/components/table/ ``} * and {@link https://ant.design/components/form/ ``} components. * * @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/table/useEditableTable} for more details. */ export declare const useEditableTable: (props?: useEditableTableProps) => useEditableTableReturnType; export {}; //# sourceMappingURL=useEditableTable.d.ts.map