import React from 'react';
import { GeneralField } from '@tachybase/schema';
/**
 * @deprecated
 */
export declare const BlockResourceContext: React.Context<any>;
export declare const BlockAssociationContext: React.Context<any>;
/**
 * @deprecated
 */
export declare const BlockRequestContext_deprecated: React.Context<{
    block?: string;
    props?: any;
    field?: GeneralField;
    service?: any;
    resource?: any;
    allowedActions?: any;
    __parent?: any;
    updateAssociationValues?: any[];
}>;
export declare const useBlockResource: () => any;
export declare const MaybeCollectionProvider: (props: any) => any;
/**
 * @deprecated
 * @param props
 * @returns
 */
export declare const BlockRequestProvider_deprecated: (props: any) => React.JSX.Element;
/**
 * @deprecated
 */
export declare const useBlockRequestContext: () => {
    block?: string;
    props?: any;
    field?: GeneralField;
    service?: any;
    resource?: any;
    allowedActions?: any;
    __parent?: any;
    updateAssociationValues?: any[];
};
export declare const RenderChildrenWithAssociationFilter: React.FC<any>;
export declare const useBlockContext: () => {
    /** 用以区分卡片的标识 */
    name: string;
};
/**
 * @deprecated use `DataBlockProvider` instead
 */
export declare const BlockProvider: (props: {
    name: string;
    resource: any;
    collection?: any;
    association?: any;
    dataSource?: string;
    params?: any;
    children?: any;
    parentRecord?: any;
    /** @deprecated */
    useSourceId?: any;
    /** @deprecated */
    useParams?: any;
}) => React.JSX.Element;
export declare const useBlockAssociationContext: () => any;
export declare const useFilterByTk: () => any;
/**
 * @deprecated
 * 已弃用，应使用 useSourceIdFromParentRecord
 * @returns
 */
export declare const useSourceIdFromRecord: () => any;
export declare const useSourceIdFromParentRecord: () => any;
export declare const useParamsFromRecord: () => {
    filterByTk: any;
};
export declare const RecordLink: (props: any) => React.JSX.Element;
