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 Templates: ({ style, form }: {
    style?: {};
    form: any;
}) => React.JSX.Element;
export declare function fetchTemplateData(api: any, template: {
    collection: string;
    dataId: number;
    fields: string[];
}, t: any): Promise<any>;
