import React from 'react'; import { CartProps } from './Cart/Cart'; import { TopBarItemShape } from './SiteLink/SiteLink'; import { SearchProps } from './Search/Search'; import { LoginProps, AdditionalLoginLinkShape } from '../Login/Login'; import { UserMenuLink } from '../Login/UserMenu'; import { MenuItemShape } from './Menu/MenuItem'; import { LinkAdapter } from '../Link/Link'; declare type MenuItemWithoutLevelAndId = Omit & { menuItems?: MenuItemWithoutLevelAndId[]; }; export declare type NavigationProps = { /** If applied, adds a cart icon with a number */ cart?: CartProps; /** Sets anchor tag to the logo with the href and aria-label */ logo: { /** Where does clicking on the logo take you to */ link: string; /** Aria label for the logo link */ linkAriaLabel: string; }; /** Market segment links */ segments?: TopBarItemShape[]; /** Language links */ languages?: TopBarItemShape[]; /** Search parameters */ search?: Omit; /** Login form parameters */ login: LoginProps & { onLogout: () => void; }; /** Is user logged in */ userMenu: false | { /** Username showed in profile drawer when logged-in */ username: string; /** User's Login History Key*/ userloginHistoryKey?: string; /** User Login History showed when user is logged in */ userloginHistory?: string; /** User Login History Link */ userloginHistoryLink?: string; /** Link showed when user is logged in */ userMenuLinks: UserMenuLink[]; /** Logout button label showed in drawer when logged-in */ logoutButtonLabel: string; /** User initials showed in avatar when logged-in */ userInitials: string; /** Additional links on the bottom of the logged in menu */ additionalLinks?: AdditionalLoginLinkShape[]; /** Additional links alignment */ additionalLinkAlignLeft?: boolean; }; /** Menu items */ menuItems?: Array; /** Custom link or for injecting third party routing link */ linkAdapter?: LinkAdapter; loginPageUrl?: string; }; declare const Navigation: React.FunctionComponent; export default Navigation;