/** * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. * * Camunda licenses this file to you under the MIT; you may not use this file * except in compliance with the MIT License. */ /** * Map every entry of a (possibly nested, drill-in) popup menu, preserving the * tree structure. * * @param entries popup menu entries keyed by id * @param fn * * @return a new entries object */ export function mapPopupEntries(entries: Object, fn: (entry: Object, id: string) => Object): Object; /** * Find a popup menu entry by id at any depth of a (possibly nested) menu. * * @param entries popup menu entries keyed by id * @param id * * @return the entry, or null if not found */ export function findPopupEntry(entries: Object, id: string): Object | null;