/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
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>;
/**
 * 用来消除普通区块（非关系区块）中可能存在的 CollectionField 上下文，因为普通区块就是一个区块，不应该和任何字段有关联
 * @param props
 * @returns
 */
export declare const SanitizedCollectionProvider: FC<CollectionProviderProps>;
export declare function useCollection<Mixins = {}>(): (Mixins & Collection) | undefined;
export declare const useCollectionFields: (predicate?: GetCollectionFieldPredicate) => import("./Collection").CollectionFieldOptions[];
