import React from 'react';
import { Schema } from '@tachybase/schema';
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: (shouldClearInitialValues?: boolean) => {
    form: any;
};
/**InternalFormBlockProvider
 * @internal
 */
export declare const findFormBlock: (schema: Schema) => Schema<any, any, any, any, any, any, any, any, any>;
