import * as _radix_ui_react_context from '@radix-ui/react-context'; import React from 'react'; import { Slot } from '@radix-ui/react-slot'; type SlotProps$1 = React.ComponentPropsWithoutRef; interface CollectionProps$1 extends SlotProps$1 { scope: any; } declare function createCollection$1(name: string): readonly [{ readonly Provider: React.FC<{ children?: React.ReactNode; scope: any; }>; readonly Slot: React.ForwardRefExoticComponent>; readonly ItemSlot: React.ForwardRefExoticComponent & React.RefAttributes>; }, (scope: any) => () => ({ ref: React.RefObject; } & ItemData)[], _radix_ui_react_context.CreateScope]; declare class OrderedDict extends Map { #private; constructor(iterable?: Iterable | null | undefined); set(key: K, value: V): this; insert(index: number, key: K, value: V): this; with(index: number, key: K, value: V): OrderedDict; before(key: K): [K, V] | undefined; /** * Sets a new key-value pair at the position before the given key. */ setBefore(key: K, newKey: K, value: V): this; after(key: K): [K, V] | undefined; /** * Sets a new key-value pair at the position after the given key. */ setAfter(key: K, newKey: K, value: V): this; first(): [K, V] | undefined; last(): [K, V] | undefined; clear(): void; delete(key: K): boolean; deleteAt(index: number): boolean; at(index: number): V | undefined; entryAt(index: number): [K, V] | undefined; indexOf(key: K): number; keyAt(index: number): K | undefined; from(key: K, offset: number): V | undefined; keyFrom(key: K, offset: number): K | undefined; find(predicate: (entry: [K, V], index: number, dictionary: OrderedDict) => boolean, thisArg?: any): [K, V] | undefined; findIndex(predicate: (entry: [K, V], index: number, dictionary: OrderedDict) => boolean, thisArg?: any): number; filter(predicate: (entry: [K, V], index: number, dict: OrderedDict) => entry is [KK, VV], thisArg?: any): OrderedDict; filter(predicate: (entry: [K, V], index: number, dictionary: OrderedDict) => unknown, thisArg?: any): OrderedDict; map(callbackfn: (entry: [K, V], index: number, dictionary: OrderedDict) => U, thisArg?: any): OrderedDict; reduce(callbackfn: (previousValue: [K, V], currentEntry: [K, V], currentIndex: number, dictionary: OrderedDict) => [K, V]): [K, V]; reduce(callbackfn: (previousValue: [K, V], currentEntry: [K, V], currentIndex: number, dictionary: OrderedDict) => [K, V], initialValue: [K, V]): [K, V]; reduce(callbackfn: (previousValue: U, currentEntry: [K, V], currentIndex: number, dictionary: OrderedDict) => U, initialValue: U): U; reduceRight(callbackfn: (previousValue: [K, V], currentEntry: [K, V], currentIndex: number, dictionary: OrderedDict) => [K, V]): [K, V]; reduceRight(callbackfn: (previousValue: [K, V], currentEntry: [K, V], currentIndex: number, dictionary: OrderedDict) => [K, V], initialValue: [K, V]): [K, V]; reduceRight(callbackfn: (previousValue: [K, V], currentValue: U, currentIndex: number, dictionary: OrderedDict) => U, initialValue: U): U; toSorted(compareFn?: (a: [K, V], b: [K, V]) => number): OrderedDict; toReversed(): OrderedDict; toSpliced(start: number, deleteCount?: number): OrderedDict; toSpliced(start: number, deleteCount: number, ...items: [K, V][]): OrderedDict; slice(start?: number, end?: number): OrderedDict; every(predicate: (entry: [K, V], index: number, dictionary: OrderedDict) => unknown, thisArg?: any): boolean; some(predicate: (entry: [K, V], index: number, dictionary: OrderedDict) => unknown, thisArg?: any): boolean; } type SlotProps = React.ComponentPropsWithoutRef; interface CollectionProps extends SlotProps { scope: any; } interface BaseItemData { id?: string; } type ItemDataWithElement = ItemData & { element: ItemElement; }; type ItemMap = OrderedDict>; declare function createCollection(name: string): readonly [{ readonly Provider: React.FC<{ children?: React.ReactNode; scope: any; state?: [ItemMap: ItemMap, SetItemMap: React.Dispatch>>]; }>; readonly Slot: React.ForwardRefExoticComponent>; readonly ItemSlot: React.ForwardRefExoticComponent & React.RefAttributes>; }, { createCollectionScope: _radix_ui_react_context.CreateScope; useCollection: (scope: any) => ItemMap; useInitCollection: () => [ItemMap, React.Dispatch>>]; }]; export { type CollectionProps$1 as CollectionProps, createCollection$1 as createCollection, type CollectionProps$1 as unstable_CollectionProps, createCollection as unstable_createCollection };