import type { ItemState } from '@redocly/theme/core/types'; /** * Removes separators marked with `hideWhenEmpty` (set by OpenAPI sidebar * generation) whose section is empty — i.e. the separator has no non-separator * sibling before the next separator or the end of the array. RBAC filtering and * empty-group pruning already ran server-side, so an empty section here means * the item immediately after the separator is another separator or absent. * * Authored separators carry no `hideWhenEmpty` flag and are always kept, * including deliberate consecutive separators. */ export declare function hideEmptyFlaggedSeparators(items: ItemState[]): ItemState[]; //# sourceMappingURL=hide-empty-separators.d.ts.map