import type { ContextMenuTypes, GetContextItem } from "../../../types/coremods/contextMenu"; import type { MenuProps } from "discord-client-types/discord_app/design/components/Menu/web/Menu"; interface MenuItem { getItem: GetContextItem; sectionId: number | ((props: ContextMenuProps) => number) | undefined; indexInSection: number | ((props: ContextMenuProps) => number); } export type ContextMenuProps = MenuProps & { _rpData: Array>; children: React.ReactElement | Array>; }; export declare const menuItems: Record; /** * Add an item to any context menu * @param navId The id of the menu you want to insert to * @param getItem A function that creates and returns the menu item * @param sectionId The number of the section to add to. Defaults to Replugged's section * @param indexInSection The index in the section to add to. Defaults to the end position * @returns A callback to de-register the function */ export declare function addContextMenuItem(navId: ContextMenuTypes, getItem: GetContextItem, sectionId: number | ((props: ContextMenuProps) => number) | undefined, indexInSection: number | ((props: ContextMenuProps) => number)): () => void; /** * Remove an item from a context menu * @param navId The id of the menu the function was registered to * @param getItem The function to remove */ export declare function removeContextMenuItem(navId: ContextMenuTypes, getItem: GetContextItem): void; /** * @internal * @hidden */ export declare function _insertMenuItems(props: ContextMenuProps): ContextMenuProps; export {};