import { ButtonProps as MuiButtonProps } from '@mui/material'; declare module '@mui/material/Button' { interface ButtonPropsColorOverrides { inherit: false; } } export interface ErkButtonProps extends Omit { /** Button text */ text?: string; /** The color of the button */ color?: 'primary' | 'secondary' | 'error' | 'warning'; /** Button Click Handle */ onClick?: React.MouseEventHandler; /** If button is disabled */ disabled?: boolean; /** If the button es loading */ loading?: boolean; /** The href to redirect */ buttonRef?: React.Ref; } /** * Generic capta button */ declare function ErkButton({ text, color, loading, children, disabled, buttonRef, ...props }: ErkButtonProps): JSX.Element; export default ErkButton;