import { type ReactNode } from 'react'; import { type ItemElement, type ItemIconSlot, type ItemOrSection, type SectionElement, type TooltipOptions } from './itemUtils'; /** * If the given content is a string, wrap it in an Icon component. Otherwise, * return the original content. If the key is not found in the dhIcons object, * the vsBlank icon will be used. * @param maybeIconKey The content to wrap * @param slot The slot to use for the Icon component * @returns The wrapped content or original content if not a string */ export declare function wrapIcon(maybeIconKey: ReactNode, slot: ItemIconSlot): ReactNode; /** * Ensure all primitive children are wrapped in `Item` elements and that all * `Item` element content is wrapped in `ItemContent` elements to handle text * overflow consistently and to support tooltips. * @param itemsOrSections The items or sections to wrap * @param tooltipOptions The tooltip options to use when wrapping items * @returns The wrapped items or sections */ export declare function wrapItemChildren(itemsOrSections: ItemOrSection | ItemOrSection[], tooltipOptions: TooltipOptions | null): ItemElement | SectionElement | (ItemElement | SectionElement)[]; /** * If the given content is a primitive type, wrap it in a Text component. * @param content The content to wrap * @param slot The slot to use for the Text component * @returns The wrapped content or original content if not a primitive type */ export declare function wrapPrimitiveWithText(content?: ReactNode, slot?: string): ReactNode; //# sourceMappingURL=itemWrapperUtils.d.ts.map