import { Category } from '@jetshop/core/types'; import React from 'react'; import { MenuContainerRender } from './MenuContainer'; import { RouteChildrenProps } from 'react-router'; export interface RecursiveTreeProps { /** The base category to render */ category: Category; children(args: RecursiveTreeRender): React.ReactNode; initialOpenMatchingCategories?: boolean; } export interface RecursiveTreeRender { /** Execute to fetch the next 3 levels of subcategories */ fetchMore(): void; /** Props passed through from MenuContainer UI component */ menuContainerProps: MenuContainerRender; /** Whether or not the current category has subcategories */ hasSubcategories: boolean; /** An array of subcategories at the current level */ subcategories: Category[]; /** The current category being rendered */ category: Category; /** The current category level */ level: number; /** Execute to recursively render subcategories in place */ renderSubnav: React.ReactNode[]; } declare const _default: React.ComponentClass, keyof RecursiveTreeProps>, any> & import("react-router").WithRouterStatics<({ children, category, initialOpenMatchingCategories, ...rest }: RecursiveTreeProps & RouteChildrenProps<{}, unknown>) => React.JSX.Element>; export default _default;