import * as React from 'react'; import { ComponentsOverrides } from '@mui/material/styles'; import { type ButtonProps } from './Button'; /** * Opens the List view of a given resource * * @example // basic usage * import { ListButton } from 'react-admin'; * * const CommentListButton = () => ( * * ); * * @example // linking back to the list from the Edit view * import { TopToolbar, ListButton, ShowButton, Edit } from 'react-admin'; * * const PostEditActions = () => ( * * * * * ); * * export const PostEdit = (props) => ( * } {...props}> * ... * * ); */ export declare const ListButton: (inProps: ListButtonProps) => React.JSX.Element | null; interface Props { icon?: React.ReactNode; label?: string; resource?: string; scrollToTop?: boolean; } export type ListButtonProps = Props & ButtonProps; declare const PREFIX = "RaListButton"; declare module '@mui/material/styles' { interface ComponentNameToClassKey { [PREFIX]: 'root'; } interface ComponentsPropsList { [PREFIX]: Partial; } interface Components { [PREFIX]?: { defaultProps?: ComponentsPropsList[typeof PREFIX]; styleOverrides?: ComponentsOverrides>[typeof PREFIX]; }; } } export {}; //# sourceMappingURL=ListButton.d.ts.map