/**
 * 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 { Schema } from '@formily/json-schema';
import { FC } from 'react';
import { CollectionFieldOptions_deprecated } from '../../../collection-manager';
interface Props {
    collectionField?: CollectionFieldOptions_deprecated;
    schema?: any;
    collectionName?: string;
    noDisabled?: boolean;
    /** 消费变量值的字段 */
    targetFieldSchema?: Schema;
}
interface CurrentRecordContextProps {
    recordData: any;
    collectionName: string;
}
export declare const CurrentRecordContextProvider: FC<CurrentRecordContextProps>;
export declare const useCurrentRecord: () => CurrentRecordContextProps;
/**
 * @deprecated
 * 该 hook 已废弃，请使用 `useCurrentRecordVariable` 代替
 *
 * 变量：`当前记录`
 * @param props
 * @returns
 */
export declare const useRecordVariable: (props: Props) => import("../type").Option;
/**
 * 变量：`当前记录`的上下文
 * @returns
 */
export declare const useCurrentRecordContext: () => {
    /** 变量值 */
    currentRecordCtx: any;
    /** 用于判断是否需要显示配置项 */
    shouldDisplayCurrentRecord: boolean;
    /** 当前记录对应的 collection name */
    collectionName: string;
    /** 块类型 */
    blockType: string;
    dataSource: string;
};
/**
 * 变量：`当前记录`
 * @param props
 * @returns
 */
export declare const useCurrentRecordVariable: (props?: Props) => {
    /** 变量配置 */
    currentRecordSettings: import("../type").Option;
    /** 变量值 */
    currentRecordCtx: any;
    /** 用于判断是否需要显示配置项 */
    shouldDisplayCurrentRecord: boolean;
    /** 当前记录对应的 collection name */
    collectionName: string;
};
export {};
