import * as React from 'react'; import { CrudFormSlotProps, CrudFormSlots } from "./CrudForm.js"; import { DataSourceCache } from "./cache.js"; import { type CRUDLocaleText } from "./localeText.js"; import type { DataModel, DataSource, OmitId } from "./types.js"; import { type PageContainerProps } from "../PageContainer/index.js"; export interface CreateProps { /** * Server-side [data source](https://mui.com/toolpad/core/react-crud/#data-sources). */ dataSource?: DataSource & Required, 'createOne'>>; /** * Initial form values. * @default {} */ initialValues?: Partial>; /** * Callback fired when the form is successfully submitted. */ onSubmitSuccess?: (formValues: Partial>) => void | Promise; /** * Whether the form fields should reset after the form is submitted. * @default false */ resetOnSubmit?: boolean; /** * [Cache](https://mui.com/toolpad/core/react-crud/#data-caching) for the data source. */ dataSourceCache?: DataSourceCache | null; /** * The title of the page. */ pageTitle?: string; /** * Locale text for the component. */ localeText?: CRUDLocaleText; /** * The components used for each slot inside. * @default {} */ slots?: { form?: CrudFormSlots; pageContainer?: React.JSXElementConstructor; }; /** * The props used for each slot inside. * @default {} */ slotProps?: { form?: CrudFormSlotProps; pageContainer?: PageContainerProps; }; } /** * * Demos: * * - [CRUD](https://mui.com/toolpad/core/react-crud/) * * API: * * - [Create API](https://mui.com/toolpad/core/api/create) */ declare function Create(props: CreateProps): React.JSX.Element; declare namespace Create { var propTypes: any; } export { Create };