/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import { ItemType } from 'antd/es/menu/interface';
import React from 'react';
type menuItemsKey = 'version' | 'profile' | 'password' | 'role' | 'language' | 'cache' | 'reboot' | 'signout' | 'divider_1' | 'divider_2' | 'divider_3' | 'divider_4';
interface OptionsOfAddMenuItem {
    before?: menuItemsKey;
    after?: menuItemsKey;
}
type Item = ItemType & {
    _options?: OptionsOfAddMenuItem;
};
export declare const useCurrentUserSettingsMenu: () => {
    getMenuItems: () => Item[];
    addMenuItem: (item: Item, options?: OptionsOfAddMenuItem) => void;
};
/**
 * 为整个 App 提供一个 `menuItems` 的 Ref 对象，用于在 `插件` 中添加菜单项
 */
export declare const CurrentUserSettingsMenuProvider: ({ children }: {
    children: any;
}) => React.JSX.Element;
export {};
