
import { CubeNotificationProps } from "../types.js";
import { CollectionChildren } from "../hooks/types.js";
import "../hooks/index.js";
import { Key } from "react";
import { CollectionElement } from "@react-types/shared";

//#region src/components/overlays/NewNotifications/NotificationsList/types.d.ts
type NotificationsListProps<T> = {
  onDismiss?: (id: Key) => void;
  items?: T[] | readonly T[];
  children: CollectionChildren<T>;
} & (NotificationsListFactory<T> | NotificationsListStatic);
type NotificationsListFactory<T> = {
  items: T[] | readonly T[];
  children: (item: T) => CollectionElement<CubeNotificationProps>;
};
type NotificationsListStatic = {
  items?: 'You must either use factory or static children';
  children: CollectionElement<CubeNotificationProps> | CollectionElement<CubeNotificationProps>[];
};
//#endregion
export { NotificationsListProps };
//# sourceMappingURL=types.d.ts.map