export function itemFactory(item: any, props?: {}, config?: { items: ({ matcher: (item: any) => boolean; component: any; props: { icon: string; placeholder: string; treeCollapsible: boolean; style?: undefined; }; } | { matcher: (item: any) => boolean; component: any; props: { icon: string; placeholder: string; treeCollapsible?: undefined; style?: undefined; }; } | { matcher: (item: any) => boolean; component: any; props: { icon: string; placeholder: string; style: string; treeCollapsible?: undefined; }; })[]; }): React.JSX.Element | null; export function treeItemFactory(item: any, props?: {}, config?: { items: ({ matcher: (item: any) => boolean; component: any; props: { icon: string; placeholder: string; treeCollapsible: boolean; style?: undefined; }; } | { matcher: (item: any) => boolean; component: any; props: { icon: string; placeholder: string; treeCollapsible?: undefined; style?: undefined; }; } | { matcher: (item: any) => boolean; component: any; props: { icon: string; placeholder: string; style: string; treeCollapsible?: undefined; }; })[]; }): React.JSX.Element | null; import React from 'react';