import * as React from 'react'; import { ReactNode } from 'react'; import { CreateControllerProps } from './useCreateController'; import { Identifier, RaRecord } from '../../types'; /** * Call useCreateController and put the value in a CreateContext * * Base class for components, without UI. * * Accepts any props accepted by useCreateController: * - id: The record identifier * - resource: The resource * * @example // Custom edit layout * * const PostCreate = () => ( * * * * * ... * * * * Create instructions... * * *
* Post related links... *
*
* ); */ export declare const CreateBase: = any, ResultRecordType extends RaRecord = RecordType & { id: Identifier; }, MutationOptionsError = Error>({ children, loading, ...props }: CreateBaseProps) => string | number | boolean | Iterable | React.JSX.Element | null; export interface CreateBaseProps = any, ResultRecordType extends RaRecord = RecordType & { id: Identifier; }, MutationOptionsError = Error> extends CreateControllerProps { children: ReactNode; loading?: ReactNode; } //# sourceMappingURL=CreateBase.d.ts.map