/** * SPDX-FileCopyrightText: © 2021 Liferay, Inc. * SPDX-License-Identifier: BSD-3-Clause */ import React from 'react'; import { ChildrenFunction as ChildrenFunctionBase } from '../collection'; import { Expand, LoadMore, Selection } from './context'; export declare type ChildrenFunction> = ChildrenFunctionBase; export interface ICollectionProps> { children: React.ReactNode | ChildrenFunction; /** * Property to set the initial value of `items`. */ defaultItems?: Array; /** * Property to inform the dynamic data of the tree. */ items?: Array; } declare type Props = { as?: 'div' | React.ComponentType | React.ForwardRefExoticComponent; }; export declare function Collection>({ as, children, items, ...otherProps }: Props & ICollectionProps): JSX.Element; export declare function removeItemInternalProps>(props: T): T; export {};