import * as React$1 from 'react'; import { ReactNode } from 'react'; import { DOMProps, AriaLabelingProps } from '@react-types/shared'; /** * Gets only the valid children of a component, * and ignores any nullish or falsy child. * * @param children the children */ declare function getValidChildren(children: React.ReactNode): React.ReactElement[]; declare const pickChildren: (children: T | undefined, targetChild: React.ElementType) => [T | undefined, T[] | undefined]; interface Options { /** * If the filter should be enabled. */ enabled?: boolean; /** * If labelling associated aria properties should be included in the filter. */ labelable?: boolean; /** * A Set of other property names that should be included in the filter. */ propNames?: Set; /** * A Set of other property names that should be removed from the filter. */ omitPropNames?: Set; /** * A Set of event names that should be excluded from the filter. */ omitEventNames?: Set; /** * Whether to omit data-* props. */ omitDataProps?: boolean; /** * Whether to omit event props. */ omitEventProps?: boolean; } /** * Filters out all props that aren't valid DOM props or defined via override prop obj. * @param props - The component props to be filtered. * @param opts - Props to override. */ declare function filterDOMProps(props: DOMProps & AriaLabelingProps, opts?: Options): DOMProps & AriaLabelingProps; declare const DOMPropNames: Set; declare const DOMEventNames: Set; type RenderFunction

= (props: P) => React$1.ReactNode; type RenderFnProps

= { Component: React$1.FunctionComponent

| React$1.ComponentClass

| string; props: P; renderCustom?: RenderFunction

; }; /** * Render a component with custom render function * * @param Component The component to be rendered * @param renderCustom The custom render function * @param props The props to be passed to the component * @returns React.ReactElement */ declare function renderFn

({ Component, props, renderCustom }: RenderFnProps

): React$1.ReactNode; export { DOMEventNames, DOMPropNames, filterDOMProps, getValidChildren, pickChildren, renderFn };