| import * as _radix_ui_react_context from '@radix-ui/react-context'; |
| import React from 'react'; |
| import { Slot } from '@radix-ui/react-slot'; |
|
|
| type SlotProps = React.ComponentPropsWithoutRef<typeof Slot>; |
| interface CollectionProps extends SlotProps { |
| scope: any; |
| } |
| declare function createCollection<ItemElement extends HTMLElement, ItemData = {}>(name: string): readonly [{ |
| readonly Provider: React.FC<{ |
| children?: React.ReactNode; |
| scope: any; |
| }>; |
| readonly Slot: React.ForwardRefExoticComponent<CollectionProps & React.RefAttributes<HTMLElement>>; |
| readonly ItemSlot: React.ForwardRefExoticComponent<React.PropsWithoutRef<ItemData & { |
| children: React.ReactNode; |
| scope: any; |
| }> & React.RefAttributes<ItemElement>>; |
| }, (scope: any) => () => ({ |
| ref: React.RefObject<ItemElement | null>; |
| } & ItemData)[], _radix_ui_react_context.CreateScope]; |
|
|
| export { type CollectionProps, createCollection }; |
|
|