UNPKG

@mintlify/common

Version:

Commonly shared code within Mintlify

9 lines (8 loc) 507 B
import { DecoratedNavigationConfig } from '@mintlify/validation'; /** * Generates a map from page paths to their hidden status based on navigation hierarchy. * A page is hidden if any parent group/division has hidden: true * Assumes page hrefs in navWithPageContext have a leading / but config page paths do not. * Outputted dictionary will NOT have a leading / in the dictionary keys. */ export declare function generatePathToHiddenDict(decoratedNav: DecoratedNavigationConfig): Map<string, boolean>;