import type { DataObject } from "@olenbetong/appframe-data"; import type { AppMenuLink } from "./types.js"; /** Fields required from `aviw_Personnel_Employees_Lookup`. */ export type AppMenuUser = { PrimKey: string; PersonID: string; FirstName: string | null; LastName: string | null; Fullname: string | null; ImageHash: number | null; }; /** Same entries as the sidebar user disclosure menu. */ export declare function defaultUserMenuItems(): AppMenuLink[]; export type AppMenuUserMenuProps = { /** * Data object over `aviw_Personnel_Employees_Lookup` filtered to the current * user (`PersonID = af.userSession.login`). See `AppMenuUser`. */ dataObject: DataObject; /** Overrides the default menu entries. */ items?: AppMenuLink[]; /** Shown below the name. Defaults to `af.userSession.domain`. */ subtitle?: string; }; /** * Disclosure menu showing the signed in user's photo and full name, with the * account related links from the old sidebar. * * Users without an employee record still get the menu, using the name from the * Appframe user session, so log out and password changes stay reachable. */ export declare function AppMenuUserMenu({ dataObject, items, subtitle }: AppMenuUserMenuProps): import("react").JSX.Element;