/**
 * 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 from 'react';
import type { CollectionFieldOptions_deprecated } from '../collection-manager';
import { VariablesContextType } from './types';
export declare const VariablesContext: React.Context<VariablesContextType>;
/**
 * @internal
 * Note: There can only be one VariablesProvider in the entire context. It cannot be used in plugins.
 */
declare const VariablesProvider: {
    ({ children, filterVariables }: any): React.JSX.Element;
    displayName: string;
};
export default VariablesProvider;
/**
 * Remove `through collection fields` from association fields.
 * If `through collection fields` exist in association fields when creating new records,
 * it will cause errors during submission, so they need to be removed.
 * @param value
 * @param associationField
 * @returns
 */
export declare function removeThroughCollectionFields(value: Record<string, any> | Record<string, any>[], associationField: CollectionFieldOptions_deprecated): Pick<Record<string, any>, never>;
