/**
 * 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 { CollectionFieldOptions_deprecated } from '../../../collection-manager';
interface Props {
    collectionField?: CollectionFieldOptions_deprecated;
    schema?: any;
    /** @deprecated */
    collectionName?: string;
    noDisabled?: boolean;
    /** 消费变量值的字段 */
    targetFieldSchema?: Schema;
}
/**
 * @deprecated
 * 该 hook 已废弃，请使用 `useCurrentParentRecordVariable` 代替
 *
 * @param props
 * @returns
 */
export declare const useParentRecordVariable: (props: Props) => import("../type").Option;
/**
 * 变量：`上级记录`的上下文
 * @returns
 */
export declare const useCurrentParentRecordContext: () => {
    currentParentRecordCtx: {};
    shouldDisplayCurrentParentRecord: import("../../../data-source").CollectionFieldOptions;
    collectionName: string;
    dataSource: string;
};
/**
 * 变量：`上级记录`
 * @param props
 * @returns
 */
export declare const useCurrentParentRecordVariable: (props?: Props) => {
    currentParentRecordSettings: import("../type").Option;
    currentParentRecordCtx: {};
    shouldDisplayCurrentParentRecord: import("../../../data-source").CollectionFieldOptions;
    collectionName: string;
    dataSource: string;
};
export {};
