/**
 * 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 { Form } from '@formily/core';
import { ISchema } from '@formily/json-schema';
import { TFunction } from 'react-i18next';
import { DataSource } from '../../data-source/DataSource';
import { CollectionManager } from '../../collection/CollectionManager';
import { DataSourceManager } from '../../data-source/DataSourceManager';
import { useActionContext } from '../../../schema-component/antd/action';
import { Collection } from '../../collection/Collection';
import { InheritanceCollectionMixin } from '../../../collection-manager';
export interface CollectionFieldContext {
    fieldSchema: ISchema;
    collection?: InheritanceCollectionMixin & Collection;
    dataSource: DataSource;
    form: Form<any>;
    actionContext: ReturnType<typeof useActionContext>;
    t: TFunction<'translation', undefined>;
    collectionManager: CollectionManager;
    dataSourceManager: DataSourceManager;
    compile: (source: any, ext?: any) => any;
    targetCollection?: Collection;
}
export declare function useCollectionFieldContext(): CollectionFieldContext;
