import React from 'react'; import { NavElement, URLS } from '../../types'; interface OnPremUserMenuProps { /** * The current user's first and last name, or username if unavailable. */ name: string; /** * Whether or not the OnPremUserMenu is expanded. */ open: boolean; /** * A function to update the open state of the OnPremUserMenu. */ setOpen: React.Dispatch>; /** * Object that supplies URL overrides to OnPremUserMenu component. * Shape: { onPrem: { profile, mfa, personalization, invitations, organizations, publicApiAccess, featureRequest }} */ urls: Pick; /** * Whether or not multifactor authentication is permitted in the current enivronment. */ mfa: boolean; /** * Determines what nav item is currently active. */ activeNav?: NavElement; /** * Callback invoked after the user clicks log out. */ onLogout?: React.MouseEventHandler; } /** * # OnPremUserMenu * * OnPremUserMenu component * * ``` ``` * @param props.name The current user's first and last name, or username if unavailable. * @param props.open Whether or not the OnPremUserMenu is expanded. * @param props.setOpen A function to update the open state of the OnPremUserMenu. * @param props.urls Object that supplies URL overrides to UserMenu component. * @param props.mfa Whether or not multifactor authentication is permitted in the current enivronment. * @param props.activeNav Determines what nav item is currently active. * @param props.onLogout Callback fired when a user logs out. */ export declare function OnPremUserMenu({ name, open, setOpen, urls, mfa, activeNav, onLogout: onLogoutProp, }: OnPremUserMenuProps): JSX.Element; export {}; //# sourceMappingURL=OnPremUserMenu.d.ts.map