import * as solid_js from 'solid-js'; import { FlowComponent } from 'solid-js'; import { MaybeAccessor } from '@kobalte/utils'; import { D as DomCollectionItem } from '../../types-6adf33e1.js'; interface CreateDomCollectionProps { /** The controlled items state of the collection. */ items?: MaybeAccessor | undefined>; /** Event handler called when the items state of the collection changes. */ onItemsChange?: (items: Array) => void; } declare function createDomCollection(props?: CreateDomCollectionProps): { DomCollectionProvider: FlowComponent<{}, solid_js.JSX.Element>; }; interface CreateDomCollectionItemProps { /** A function to map a data source item to a dom collection item. */ getItem: () => T; /** Whether the item should be registered to the state. */ shouldRegisterItem?: MaybeAccessor; } declare function createDomCollectionItem(props: CreateDomCollectionItemProps): void; interface DomCollectionContextValue { registerItem: (item: T) => () => void; } declare const DomCollectionContext: solid_js.Context | undefined>; declare function useOptionalDomCollectionContext(): DomCollectionContextValue | undefined; declare function useDomCollectionContext(): DomCollectionContextValue; export { CreateDomCollectionItemProps, CreateDomCollectionProps, DomCollectionContext, DomCollectionContextValue, DomCollectionItem, createDomCollection, createDomCollectionItem, useDomCollectionContext, useOptionalDomCollectionContext };