import React, { ReactNode } from 'react'; type MainLevelCommonProps = { /** * The id of the side navigation main level */ id: string; /** * href attribute of the side navigation main level */ href?: string; /** * Optional icon of the side navigation main level */ icon?: React.ReactNode; /** * Index of the side navigation main level. The parent SideNavigation component uses this property to index main levels */ index?: number; /** * Label of the side navigation main level */ label: string; /** * A border that distinguishes the main level from the previous item */ withDivider?: boolean; /** * Additional class names to apply to the side navigation main level */ className?: string; /** * Override or extend the styles applied to the component */ style?: React.CSSProperties; /** * Children components for the main level. Usually subLevels */ children?: ReactNode; /** * Callback function fired when the main level is clicked */ onClick?: (event: React.MouseEvent | React.MouseEvent | React.KeyboardEvent | React.KeyboardEvent) => void; }; type MainLevelLinkProps = { /** * href attribute of the side navigation main level */ href?: string; active?: boolean; external?: undefined; openInNewTab?: undefined; openInNewTabLabel?: undefined; openInExternalDomainAriaLabel?: undefined; }; type MainLevelExternalLinkProps = { /** * href attribute of the side navigation main level */ href?: string; /** * Boolean indicating whether the main level link will lead user to external domain. */ external?: boolean; /** * Boolean indicating whether the main level link will open in new tab or not. */ openInNewTab?: boolean; /** * The aria-label for opening main level link in a new tab */ openInNewTabLabel?: string; /** * The aria-label for opening main level link in an external domain */ openInExternalDomainAriaLabel?: string; active?: undefined; }; type MainLevelAccordionProps = { href?: undefined; active?: undefined; external?: undefined; openInNewTab?: undefined; openInNewTabLabel?: undefined; openInExternalDomainAriaLabel?: undefined; }; export type MainLevelProps = MainLevelCommonProps & (MainLevelLinkProps | MainLevelExternalLinkProps | MainLevelAccordionProps); export declare const MainLevel: { ({ active, children, className, href, icon, id, index, label, withDivider, external, openInNewTab, openInNewTabLabel, openInExternalDomainAriaLabel, onClick, style, ...rest }: MainLevelProps): React.JSX.Element; componentName: string; }; export {};