import { default as PropTypes } from 'prop-types';
import { To } from 'react-router-dom';
import { ButtonProps, LocationDescriptor } from './Button';
import * as React from 'react';
/**
* Opens the Create view of a given resource
*
* Renders as a regular button on desktop, and a Floating Action Button
* on mobile.
*
* @example // basic usage
* import { CreateButton } from 'react-admin';
*
* const CommentCreateButton = () => (
*
* );
*/
declare function CreateBtn(props: CreateButtonProps): import("react/jsx-runtime").JSX.Element;
declare namespace CreateBtn {
var propTypes: {
resource: PropTypes.Requireable;
className: PropTypes.Requireable;
icon: PropTypes.Requireable;
label: PropTypes.Requireable;
};
}
interface Props {
resource?: string;
icon?: React.ReactElement;
scrollToTop?: boolean;
to?: LocationDescriptor | To;
state?: any;
}
interface DisableFloatingButtonProps {
disableFloatingButton?: boolean;
}
type CreateButtonProps = DisableFloatingButtonProps & Props & Omit;
declare const CreateButtonClasses: {
root: string;
floating: string;
};
declare const CreateButton: React.MemoExoticComponent;
export { CreateButton, CreateButtonClasses };
export type { CreateButtonProps };
//# sourceMappingURL=CreateButton.d.ts.map