import * as React from 'react'; import type { ReactNode } from 'react'; import { type ComponentsOverrides } from '@mui/material/styles'; import { type RaRecord } from 'ra-core'; import { ButtonProps } from './Button'; /** * Opens the Edit view for the current record. * * Reads the record and resource from the context. * * @example // basic usage * import { EditButton } from 'react-admin'; * * const CommentEditButton = () => ( * * ); */ export declare const EditButton: (inProps: EditButtonProps) => React.JSX.Element | null; interface Props { icon?: ReactNode; label?: string; record?: RecordType; resource?: string; scrollToTop?: boolean; } export type EditButtonProps = Props & ButtonProps; export declare const EditButtonClasses: { root: string; }; declare module '@mui/material/styles' { interface ComponentNameToClassKey { RaEditButton: 'root'; } interface ComponentsPropsList { RaEditButton: Partial; } interface Components { RaEditButton?: { defaultProps?: ComponentsPropsList['RaEditButton']; styleOverrides?: ComponentsOverrides>['RaEditButton']; }; } } export {}; //# sourceMappingURL=EditButton.d.ts.map