import { PropsWithChildren, RefCallback, RefObject } from 'react';
declare const createCollection: () => {
    CollectionProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element | null;
    CollectionItem: ({ children }: PropsWithChildren) => import("react").ReactElement<{
        ref: RefCallback<HTMLElement>;
        item_attr: string;
    }, string | import("react").JSXElementConstructor<any>> | null;
    useCollection: () => {
        collectionRef: {
            current: null;
        };
        itemMap: Map<any, any>;
        getItems: () => Element[];
    } | {
        getItems: () => Element[];
        collectionRef: RefObject<HTMLElement>;
        itemMap: Map<RefObject<HTMLElement>, {
            ref: RefObject<HTMLElement>;
        }>;
    };
};
export default createCollection;
