import React, { ForwardRefExoticComponent, RefAttributes } from "react";
import { IDataSourceType, IDataSourceConnectionInfo } from "@gooddata/sdk-backend-tiger";
import { IConnectionFormProps, IConnectionFormRef } from "../ConnectionForms/common/types";
import "./DataSourceTemplate.scss";
export interface IDataSourceTemplateProps {
    dataSourceId?: string;
    canDelete?: boolean;
    onDataSourceSaved?: (dataSourceInfo: IDataSourceConnectionInfo) => void;
    onDataSourceDeleted?: (dataSourceId: string) => void;
    onClosed?: () => void;
    isConnectDemoDataVisible?: boolean;
}
export declare function withDataSourceTemplate(Component: ForwardRefExoticComponent<IConnectionFormProps & RefAttributes<IConnectionFormRef>>, resetSelectedType: () => void, dataSourceType: IDataSourceType, dataSourceId?: string, isConnectDemoDataVisible?: boolean): React.FC<IDataSourceTemplateProps>;
