/**
 * 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/react';
import React from 'react';
import { CollectionRecord } from '../data-source';
export declare const FormBlockContext: React.Context<{
    [key: string]: any;
    form?: any;
    type?: 'update' | 'create';
    action?: string;
    field?: any;
    service?: any;
    resource?: any;
    updateAssociationValues?: any;
    formBlockRef?: any;
    collectionName?: string;
    params?: any;
    formRecord?: CollectionRecord;
}>;
/**
 * @internal
 * 获取表单区块的类型：update 表示是表单编辑区块，create 表示是表单新增区块
 * @returns
 */
export declare const useFormBlockType: () => {
    type: 'update' | 'create';
};
export declare const useIsDetailBlock: () => boolean;
export declare const FormBlockProvider: React.FunctionComponent<any>;
/**
 * @internal
 * @returns
 */
export declare const useFormBlockContext: () => {
    [key: string]: any;
    form?: any;
    type?: 'update' | 'create';
    action?: string;
    field?: any;
    service?: any;
    resource?: any;
    updateAssociationValues?: any;
    formBlockRef?: any;
    collectionName?: string;
    params?: any;
    formRecord?: CollectionRecord;
};
/**
 * @internal
 */
export declare const useFormBlockProps: () => {
    form: any;
};
/**
 * @internal
 */
export declare const findFormBlock: (schema: Schema) => Schema<any, any, any, any, any, any, any, any, any>;
