import { ReactElement } from 'react'; import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types'; import { NavigationOptionProps } from './NavigationOption'; import { NavigationHeaderProps } from './NavigationHeader'; import { NavigationFooterProps } from './NavigationFooter'; import { NavigationOptionCategoryProps } from './NavigationOptionCategory'; export type NavigationChild = ReactElement | ReactElement | ReactElement | ReactElement | null | undefined | false; export type NavigationChildren = NavigationChild | NavigationChild[]; export interface NavigationProps extends Omit, 'onClick'> { /** * Current active key. */ activatedPath?: string[]; /** * Strict children with `NavigationOption`, `NavigationHeader` or `NavigationFooter`. */ children?: NavigationChildren; /** * Navigation display type. * @default false (expanded) */ collapsed?: boolean; /** * When true, href must match the current pathname exactly to be activated. * When false (default), any href that is a prefix of the current pathname will be activated. * @default false */ exactActivatedMatch?: boolean; /** * Whether to show search input */ filter?: boolean; /** * Called when collapsed state changes. */ onCollapseChange?: (collapsed: boolean) => void; /** * Called when a navigation option is clicked. */ onOptionClick?: (activePath?: string[]) => void; /** * Custom component for rendering navigation options which have an href prop. */ optionsAnchorComponent?: React.ElementType; } declare const Navigation: import("react").ForwardRefExoticComponent>; export default Navigation;