import * as React from 'react'; import { UpdateWithConfirmButtonProps } from './UpdateWithConfirmButton'; import { UpdateWithUndoButtonProps } from './UpdateWithUndoButton'; /** * Updates the current record. * * To be used inside the prop or prop. * * @example // basic usage * import * as React from 'react'; * import { Edit, TopToolbar, UpdateButton } from 'react-admin'; * * const PostEditActions = () => ( * * * * ); * * export const PostEdit = () => ( * }> * ... * * ); */ export declare const UpdateButton: (props: UpdateButtonProps) => React.JSX.Element; export type UpdateButtonProps = ({ mutationMode?: 'undoable'; } & UpdateWithUndoButtonProps) | ({ mutationMode?: 'pessimistic' | 'optimistic'; } & UpdateWithConfirmButtonProps); declare const PREFIX = "RaUpdateButton"; declare module '@mui/material/styles' { interface ComponentsPropsList { [PREFIX]: Partial; } interface Components { [PREFIX]?: { defaultProps?: ComponentsPropsList[typeof PREFIX]; }; } } export {}; //# sourceMappingURL=UpdateButton.d.ts.map