import { ApiStatus } from './api';
export type ICardTypes = 'flat' | 'flat_with_list';
export type IFormType = 'create' | 'edit' | 'link';
export type IForms = {
    type: IFormType;
    id: string;
};
export type ICard = {
    id: string;
    title: string;
    priority: number;
    type: ICardTypes;
    externalResourceId?: string;
    connectorName?: string;
    connectorId?: string;
    forms: IForms[];
    logoUrl?: string;
    userAuthEnabled?: boolean;
};
export type IFlatDisArr = {
    label: string;
    value: string | null;
    errorMessage: string | null;
    statusCode: string | number;
    priority: number;
    deepLink: string | null;
    key: string;
    type?: 'date';
};
export type IListItemFieldData = {
    label: string;
    value: string | null;
    priority: number;
    deepLink?: string | null;
    key: string;
    type?: 'date';
};
export type IListItemArr = {
    externalResourceId?: string;
    data: IListItemFieldData[];
};
export type IListItemArrSlice = IListItemArr | IListItemFieldData[];
export type IListItems = {
    fields: IListItemArr[];
    errorMessage: string | null;
    statusCode: string | number;
};
export type IListItemsSlice = {
    fields: IListItemArrSlice[];
    errorMessage: string | null;
    statusCode: string | number;
};
export type IFlatDisplay = {
    externalResourceId?: string;
    data: IFlatDisArr[];
};
export type IFlatDisplaySlice = IFlatDisplay | IFlatDisArr[];
export type ISpecificCardData = {
    flatDisplay: IFlatDisplay;
    listItems: IListItems;
};
export type ISpecificCardDataSlice = {
    flatDisplay: IFlatDisplaySlice;
    listItems: IListItemsSlice;
};
export type ISpecificCard = {
    id: string;
    cardType: ICardTypes;
    cardTitle?: string;
    data: ISpecificCardData;
    connectorNames: string[];
    cardErrorMessage?: string;
    redirectToAdminTab?: boolean;
    logoUrl?: string;
};
export type ISpecificCardSlice = {
    id: string;
    cardType: ICardTypes;
    cardTitle?: string;
    data: ISpecificCardDataSlice;
    connectorNames: string[];
    cardErrorMessage?: string;
    redirectToAdminTab?: boolean;
    logoUrl?: string;
};
export type IEventData = {
    card_title?: string;
    card_state?: string;
    data_state?: string | number;
    connector_names?: string[];
};
export type ICardData = {
    status?: string;
    data?: {
        connectorNames?: string[];
    };
    [key: string]: unknown;
};
export type CreateObjectMetaData = undefined | {
    object_type?: string;
    fields_filled?: number;
};
export type IFormData = {
    [key: string]: {
        label: string;
        value?: string;
        type: 'date' | null;
    };
};
export type IResourceDetails = {
    formData: IFormData;
};
export type CardData = IFlatDisArr[] | IListItemFieldData[];
export type SpecificCardData = {
    [key: string]: ISpecificCard;
} | null;
export type SpecificConnectorApiStatus = {
    [key: string]: ApiStatus;
} | null;
export interface ConnectorAppMetrics {
    app_name?: string;
    cards_visible: number;
    empty_cards: number;
    cards_with_error: number;
    card_key: string[];
    card_title: string[];
}
//# sourceMappingURL=cards.d.ts.map