import { ReactElement } from 'react'; import PropTypes from 'prop-types'; import { EditProps } from '../types'; /** * Page component for the Edit view * * The `` component renders the page title and actions, * fetches the record from the data provider. * It is not responsible for rendering the actual form - * that's the job of its child component (usually ``), * to which it passes the `record` as prop. * * The component accepts the following props: * * - actions * - aside * - component * - successMessage * - title * - mutationMode * - undoable (deprecated) * * @example * * // in src/posts.js * import * as React from "react"; * import { Edit, SimpleForm, TextInput } from '../../app'; * * export const PostEdit = (props) => ( * * * * * * ); * * // in src/App.js * import * as React from "react"; * import { Admin, Resource } from '../../app'; * * import { PostEdit } from './posts'; * * const App = () => ( * * * * ); * export default App; */ export declare const Edit: { (props: EditProps & { children: ReactElement; }): ReactElement; propTypes: { actions: PropTypes.Requireable; aside: PropTypes.Requireable; children: PropTypes.Requireable; classes: PropTypes.Requireable; className: PropTypes.Requireable; hasCreate: PropTypes.Requireable; hasEdit: PropTypes.Requireable; hasShow: PropTypes.Requireable; hasList: PropTypes.Requireable; id: PropTypes.Validator; mutationMode: PropTypes.Requireable; onSuccess: PropTypes.Requireable<(...args: any[]) => any>; onFailure: PropTypes.Requireable<(...args: any[]) => any>; resource: PropTypes.Requireable; successMessage: PropTypes.Requireable; title: PropTypes.Requireable; transform: PropTypes.Requireable<(...args: any[]) => any>; undoable: PropTypes.Requireable; }; };