import { DeclarativeAttribute, DeclarativeDataset, DeclarativeFact, DeclarativeLdm, DeclarativeReference, GrainIdentifier, AnalyzeCsvResponseConfig } from "@gooddata/api-client-tiger";
import { IWorkspaceDescriptor } from "@gooddata/sdk-backend-spi";
import { IDataSourceConnectionInfo } from "@gooddata/sdk-backend-tiger";
export interface ICsvAnalyzeContext {
    dataSource: IDataSourceConnectionInfo;
    workspace?: IWorkspaceDescriptor;
    ldm?: DeclarativeLdm;
    dataset?: DeclarativeDataset;
    csvAnalyzedData: IAnalyzedData;
}
export interface IDatasetIdentifier {
    id: string;
    title: string;
}
export interface IDatasetField {
    id: string;
    title: string;
    reference: DeclarativeReference | undefined;
}
export interface IAnalyzedData {
    csvFileName: string;
    columns: IAnalyzedColumn[];
    previewData: string[][];
    csvLocation: string;
    csvConfig?: AnalyzeCsvResponseConfig;
    mappedDataset?: IDatasetIdentifier;
}
export interface IAnalyzedColumn {
    name: string;
    dataType: string;
    fieldType: DataType;
    formats: string[];
    mappedField?: IDatasetField;
}
export interface IDatasetFields {
    grain: Map<string, GrainIdentifier>;
    attributes: Map<string, DeclarativeAttribute>;
    facts: Map<string, DeclarativeFact>;
    dates: Map<string, DeclarativeDataset>;
    references: Map<string, DeclarativeReference>;
}
export declare enum DataType {
    PRIMARY = "primary",
    ATTRIBUTE = "attribute",
    FACT = "fact",
    DATE = "date",
    REFERENCE = "reference"
}
