import * as React from 'react'; import { OmitPolyfill } from '../common'; export type SidebarItemNextWithAsProp = | SidebarItemNextAsButtonProps | SidebarItemNextAsAnchorProps | SidebarItemNextGenericProps | SidebarItemNextAsComponentProps; type SidebarItemNextAsButtonProps = React.ButtonHTMLAttributes & T & { as?: 'button'; onClick?: React.MouseEventHandler; }; type SidebarItemNextAsAnchorProps = React.AnchorHTMLAttributes & T & { as: 'a'; onClick?: React.MouseEventHandler; }; type SidebarItemNextGenericProps = T & { as: keyof OmitPolyfill; onClick?: React.MouseEventHandler; [additionalProps: string]: any; }; type SidebarItemNextAsComponentProps = T & { as: React.ComponentType; onClick?: React.MouseEventHandler; [additionalProps: string]: any; }; export type SidebarItemNextProps = SidebarItemNextWithAsProp<{ children?: React.ReactNode; dataHook?: string; className?: string; suffix?: React.ReactNode; prefix?: React.ReactNode; disabled?: boolean; onClick?: React.MouseEventHandler; itemKey?: string; role?: string; }>; declare const SidebarItemNext: React.FC; export default SidebarItemNext;