import { ReactNode } from 'react'; /** * Flattens a React node tree by one level, unwrapping Fragments. * * Accepts a single element, a Fragment, or an array and returns a flat array * of `ReactNode` items. Useful in components that need to identify or count * specific child types via type guards. * * @param node - React node to flatten. * @returns Flat array of React nodes with top-level Fragments unwrapped. * * @example * const items = flatChildren(actions).filter(isDialogAction); * * @category Utils */ export declare const flatChildren: (node: ReactNode) => ReactNode[];