import { ReactElement } from 'react'; import PropTypes from 'prop-types'; import { CreateProps } from '../types'; /** * Page component for the Create view * * The `` component renders the page title and actions. * 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 * * @example * * // in src/posts.js * import * as React from "react"; * import { Create, SimpleForm, TextInput } from '../../app'; * * export const PostCreate = (props) => ( * * * * * * ); * * // in src/App.js * import * as React from "react"; * import { Admin, Resource } from '../../app'; * * import { PostCreate } from './posts'; * * const App = () => ( * * * * ); * export default App; */ export declare const Create: { (props: CreateProps & { 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; resource: PropTypes.Requireable; title: PropTypes.Requireable; record: PropTypes.Requireable; hasList: PropTypes.Requireable; successMessage: PropTypes.Requireable; onSuccess: PropTypes.Requireable<(...args: any[]) => any>; onFailure: PropTypes.Requireable<(...args: any[]) => any>; transform: PropTypes.Requireable<(...args: any[]) => any>; }; }; export default Create;