import { VirtualItem } from '@tanstack/react-virtual'; import React from 'react'; import { Generic } from '@workday/canvas-kit-react/common'; import { Item, useBaseListModel } from './useBaseListModel'; export declare const ListRenderItemContext: React.Context<{ item?: Item | undefined; virtual?: VirtualItem | undefined; }>; /** * This hook is meant to be used inside the render function of `List` style components. It is used * by `ListBox`. This hook gives list-based components their static and dynamic APIs to handle list * items. This hook should only be used if you want to implement your own List. For example, * `Tabs.List` uses this hook, but `Menu.List` uses `ListBox` which uses this hook. * * ```tsx * const MyList = createContainer('ul')({ * modelHook: useListModel, * })((elemProps, Element, model) => { * return {useListRenderItems(model, elemProps.children)}; * }); ``` */ export declare function useListRenderItems(model: ReturnType, children: ((item: Generic, index: number) => React.ReactNode) | React.ReactNode): React.ReactNode; //# sourceMappingURL=useListRenderItem.d.ts.map