import * as React from 'react'; import { ReactNode } from 'react'; import { CreateControllerProps, CreateControllerResult } from "./useCreateController.cjs"; import { Identifier, RaRecord } from "../../types.cjs"; /** * 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, render, loading, authLoading, ...props }: CreateBaseProps) => React.JSX.Element; export interface CreateBaseProps = any, ResultRecordType extends RaRecord = RecordType & { id: Identifier; }, MutationOptionsError = Error> extends CreateControllerProps { children?: ReactNode; render?: (props: CreateControllerResult) => ReactNode; authLoading?: ReactNode; /** * @deprecated use authLoading instead */ loading?: ReactNode; } //# sourceMappingURL=CreateBase.d.ts.map