import * as React from 'react'; import { type RaRecord, UsePrevNextControllerProps } from 'ra-core'; import { type SxProps, type ComponentsOverrides, type Theme } from '@mui/material'; /** * A component used to render the previous and next buttons in a Show or Edit view. * * The `` component renders navigation buttons linking to * the next and previous records of the current resource, the current index * and the total number of records. * * It uses usePrevNextController to fetch the list of records. * * `` can be used anywhere a record context is provided * (often inside a `` or `` component). * * @example navigate to edit view by default * * * @example navigate to show view * * * @example custom storeKey * * * @example limit the number of records to fetch * * * @example customize filters and sort order * * * @example customize style * * * @example in an edit view * import * as React from "react"; * import { Edit, PrevNextButtons, ShowButton, SimpleForm, TopToolbar } from 'react-admin'; * * const MyTopToolbar = ({ children }) => ( * * {children} * * ); * * export const PostEdit = () => ( * * * * * } * > * ... * * ); */ export declare const PrevNextButtons: (inProps: PrevNextButtonProps) => React.JSX.Element; export interface PrevNextButtonProps extends UsePrevNextControllerProps { sx?: SxProps; } export declare const PrevNextButtonClasses: { root: string; }; declare module '@mui/material/styles' { interface ComponentNameToClassKey { RaPrevNextButton: 'root'; } interface ComponentsPropsList { RaPrevNextButton: Partial; } interface Components { RaPrevNextButton?: { defaultProps?: ComponentsPropsList['RaPrevNextButton']; styleOverrides?: ComponentsOverrides>['RaPrevNextButton']; }; } } //# sourceMappingURL=PrevNextButtons.d.ts.map