/** * Group flat create/append entries into the given category tree. * * Leaves reuse the existing entries by id (preserving their actions); empty * categories are dropped. Entries the static tree does not cover (e.g. the Templates * group) stay not touched at the top level. * * @param items category tree * @param entries flat entries keyed by id * @param config * * @return grouped entries */ export function groupMenuEntries(items: Array, entries: Object, config: { idPrefix: string; translate: Function; }): Object;