import { FernNavigation } from "../.."; import { NodeCollector } from "../NodeCollector"; export type Node = Node.Found | Node.Redirect | Node.NotFound; export declare namespace Node { interface Found { type: "found"; node: FernNavigation.NavigationNodePage; parents: readonly FernNavigation.NavigationNodeParent[]; breadcrumb: readonly FernNavigation.BreadcrumbItem[]; root: FernNavigation.RootNode; products: readonly FernNavigation.ProductNode[]; currentProduct: FernNavigation.ProductNode | undefined; /** * This is true if the current product is the default product node (without the product slug prefix) */ isCurrentProductDefault: boolean; versions: readonly FernNavigation.VersionNode[]; currentVersion: FernNavigation.VersionNode | undefined; /** * This is true if the current version is the default version node (without the version slug prefix) */ isCurrentVersionDefault: boolean; variants: readonly FernNavigation.VariantNode[]; currentVariant: FernNavigation.VariantNode | undefined; /** * This is true if the current variant is the default variant node (without the variant slug prefix) */ isCurrentVariantDefault: boolean; currentTab: FernNavigation.TabNode | FernNavigation.ChangelogNode | undefined; tabs: readonly FernNavigation.TabChild[]; sidebar: FernNavigation.SidebarRootNode | undefined; apiReference: FernNavigation.ApiReferenceNode | undefined; next: FernNavigation.NavigationNodeNeighbor | undefined; prev: FernNavigation.NavigationNodeNeighbor | undefined; collector: NodeCollector; landingPage: FernNavigation.LandingPageNode | undefined; /** * This is the part of the slug after the version (or basepath) prefix. * * For example, if the original slug is "docs/v1.0.0/foo/bar", the unversionedSlug is "foo/bar". */ unversionedSlug: FernNavigation.Slug; } interface Redirect { type: "redirect"; redirect: FernNavigation.Slug; } interface NotFound { type: "notFound"; redirect: FernNavigation.Slug | undefined; authed: boolean | undefined; } } export declare function findNode(root: FernNavigation.RootNode, slug: FernNavigation.Slug): Node; //# sourceMappingURL=findNode.d.ts.map