import { type Scope } from "@loke/ui/context"; import { type Slot } from "@loke/ui/slot"; import React from "react"; type SlotProps = React.ComponentPropsWithoutRef; interface CollectionProps extends SlotProps { scope: Scope; } declare function createCollection(name: string): readonly [{ readonly ItemSlot: React.ForwardRefExoticComponent & React.RefAttributes>; readonly Provider: React.FC<{ children?: React.ReactNode; scope: Scope; }>; readonly Slot: React.ForwardRefExoticComponent>; }, (scope: Scope) => () => ({ ref: React.RefObject; } & ItemData)[], import("@loke/ui/context").CreateScope]; export type { CollectionProps }; export { createCollection };