import { FCWithSlotMarker, WithSlotMarker } from "../utils/types/Slots.js"; import { ForwardRefComponent } from "../utils/polymorphic.js"; import { DistributiveOmit, PolymorphicProps } from "../utils/modern-polymorphic.js"; import { ActionListTrailingActionProps } from "../ActionList/TrailingAction.js"; import { ActionListGroupHeadingProps } from "../ActionList/Group.js"; import { ActionListDividerProps } from "../ActionList/Divider.js"; import { ActionListDescriptionProps } from "../ActionList/Description.js"; import { ActionListLeadingVisualProps, ActionListTrailingVisualProps, VisualProps } from "../ActionList/Visuals.js"; import React from "react"; import { Icon } from "@primer/octicons-react"; //#region src/NavList/NavList.d.ts type NavListHeadingLevels = 'h2' | 'h3'; type NavListProps = { children: React.ReactNode; } & React.ComponentProps<'nav'>; type NavListHeadingProps = { /** Semantic heading level for the NavList. Also sets the default level for child group headings, which render one level deeper. */as?: NavListHeadingLevels; /** Visually hide the heading while keeping it available to assistive technology. */ visuallyHidden?: boolean; } & React.ComponentPropsWithoutRef<'h2'>; type NavListItemProps = PolymorphicProps; type NavListSubNavProps = { children: React.ReactNode; }; type NavListLeadingVisualProps = ActionListLeadingVisualProps; type NavListTrailingVisualProps = ActionListTrailingVisualProps; type NavListDividerProps = ActionListDividerProps; type NavListGroupProps = React.HTMLAttributes & { children: React.ReactNode; title?: string; hideDivider?: boolean; }; type GroupItem = { text: string; trailingVisual?: Icon | string; leadingVisual?: Icon; trailingAction?: ActionListTrailingActionProps; 'data-expand-focus-target'?: string; } & Omit; type NavListGroupExpandProps = { label?: string; pages?: number; items: GroupItem[]; renderItem?: (item: GroupItem) => React.ReactNode; }; type NavListGroupHeadingProps = ActionListGroupHeadingProps; declare const NavList: React.ForwardRefExoticComponent & React.RefAttributes> & { Description: FCWithSlotMarker>; Heading: FCWithSlotMarker; Item: ((props: DistributiveOmit & { children: React.ReactNode; defaultOpen?: boolean; href?: string; 'aria-current'?: "page" | "step" | "location" | "date" | "time" | "true" | "false" | boolean; inactiveText?: string; tooltipText?: string; }, "as"> & { as?: As | undefined; } & React.RefAttributes) => React.ReactNode) & { displayName: string; }; SubNav: ForwardRefComponent<"ul", NavListSubNavProps>; LeadingVisual: FCWithSlotMarker>; TrailingVisual: FCWithSlotMarker>; TrailingAction: ForwardRefComponent<"a" | "button", ActionListTrailingActionProps>; Divider: FCWithSlotMarker>; Group: React.FC; GroupExpand: React.ForwardRefExoticComponent>; GroupHeading: WithSlotMarker>; }; //#endregion export { NavList, NavListDividerProps, NavListGroupExpandProps, NavListGroupHeadingProps, NavListGroupProps, NavListHeadingProps, NavListItemProps, NavListLeadingVisualProps, NavListProps, NavListSubNavProps, NavListTrailingVisualProps };