import React from "react"; import { MenuProps } from "antd"; import { UserInfo } from "../../tmpl/interface"; import { LocaleContext } from "../../locale/LocaleProvider"; import { LocaleType } from "../../locale/langMp"; interface UserBarProps { backgroudColor?: string; showUserInfo?: boolean; showChangePassword?: boolean; menu?: MenuProps; } interface UserBarState extends UserInfo { context: Array; } declare class UserBar extends React.PureComponent { state: { id: any; name: any; roles: any[]; context: any; cleanCachable: boolean; gtmplSourceId: any; changePasswordable: any; changePersonalInfoable: any; viewPersonalInfoable: any; }; static contextType: React.Context<{ locale: LocaleType; langPkg: any; availableLang: string[]; changeLocale: (locale: LocaleType) => void; siderCollapsed: boolean; changeSiderCollapsed: () => void; t: (...strs: string[]) => string; translate: (...strs: string[]) => string; getServiceLangStr?: () => string; compactTheme?: boolean; changeCompactTheme?: () => void; screenfull?: boolean; changeScreenfull?: () => void; }>; context: React.ContextType; static defaultProps: { backgroudColor: string; showUserInfo: boolean; showChangePassword: boolean; }; componentDidMount(): Promise; cleanCache: () => void; getContext: () => string | React.JSX.Element; toSetContext: () => void; getTitle: () => React.JSX.Element; render(): React.JSX.Element; } export default UserBar; //# sourceMappingURL=user-bar.d.ts.map