/**
 * 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 React from 'react';
export interface ITemplate {
    config?: {
        [key: string]: {
            /** 设置的数据范围 */
            filter?: any;
            /** 设置的标题字段 */
            titleField?: string;
        };
    };
    items: {
        key: string;
        title: string;
        collection: string;
        dataId?: number;
        fields: string[];
        default?: boolean;
        dataScope?: object;
        titleField?: string;
    }[];
    /** 是否在 Form 区块显示模板选择器 */
    display: boolean;
}
export declare const useFormDataTemplates: () => any;
export declare const Templates: React.MemoExoticComponent<({ style, form }: {
    style?: React.CSSProperties;
    form?: any;
}) => React.JSX.Element>;
export declare function fetchTemplateData(api: any, template: {
    collection: string;
    dataId: number;
    fields: string[];
}, headers?: any): Promise<any>;
