import { MenuItem } from "../config/types";
import { InsertOption } from "../types";
export declare function getVisibleInsertOptions(insertOptions?: InsertOption[]): InsertOption[];
export declare function buildInsertMenuItems(insertOptions: InsertOption[], onInsert: (option: InsertOption) => Promise<void>): MenuItem[];
/**
 * A flat-or-grouped view of the insert options for the anchored insert popover
 * ({@link InsertComponentMenu}). When the option set is small/ungrouped a single
 * section with no `name` is returned; otherwise options are split into labelled
 * sections using the same grouping rules as {@link buildInsertMenuItems}.
 */
export type InsertMenuSection = {
    name?: string;
    options: InsertOption[];
};
export declare function buildInsertMenuSections(insertOptions: InsertOption[]): InsertMenuSection[];
