import React, { FC, ReactNode } from 'react';
import type { Collection, CollectionOptions, GetCollectionFieldPredicate } from './Collection';
export declare const CollectionContext: React.Context<Collection>;
export interface CollectionProviderProps {
    name: string | CollectionOptions;
    children?: ReactNode;
    allowNull?: boolean;
}
export declare const CollectionProvider: FC<CollectionProviderProps>;
export declare function useCollection<Mixins = {}>(): (Mixins & Collection) | undefined;
export declare const useCollectionFields: (predicate?: GetCollectionFieldPredicate) => import("./Collection").CollectionFieldOptions[];
