import { ColumnDef } from '@al/design-patterns'; import { MapMarkerSerie, TimelineConfig } from '@al/ng-visualizations-components'; import { AlHtmlMatch } from './al-html-to-json.parser'; export interface AlBaseContentDescriptor { type: "markdown" | "json-viewer" | "map" | "table" | "image" | "timeline" | "error" | string; origin?: AlHtmlMatch; } export interface AlMarkdownContentDescriptor extends AlBaseContentDescriptor { markdown: string; } export interface AlMapContentDescriptor extends AlBaseContentDescriptor { markerSeries: MapMarkerSerie[]; title: string; legendTitle?: string; showLegend?: boolean; showClusterCount?: boolean; showClusterCoverage?: boolean; } export interface AlTableContentDescriptor extends AlBaseContentDescriptor { title: string; columns: ColumnDef[]; data: any[]; } export interface AlImageContentDescriptor extends AlBaseContentDescriptor { source: string; title?: string; width?: string | number; height?: string | number; } export interface AlJsonContentDescriptor extends AlBaseContentDescriptor { data: any; expanded?: boolean; } export interface AlErrorContentDescriptor extends AlBaseContentDescriptor { error: string; } export interface AlTimelineContentDescriptor extends AlBaseContentDescriptor { timelineConfig: TimelineConfig; } export declare type AlAnyContentDescriptor = Partial; export declare class AlContentInterpreter { context: ContextType; constructor(context: ContextType); digest(match: AlHtmlMatch): Promise; protected digestJsonContent(match: AlHtmlMatch): Promise<{ type: string; origin: AlHtmlMatch; error: string; } | { type: string; origin: AlHtmlMatch; data: any; }>; protected digestTable(match: AlHtmlMatch): Promise<{ type: string; origin: AlHtmlMatch; error: string; } | { type: string; origin: AlHtmlMatch; columns: ColumnDef[]; data: any[]; }>; protected digestMap(match: AlHtmlMatch): Promise; protected digestImage(match: AlHtmlMatch): Promise; protected digestTimeline(match: AlHtmlMatch): Promise; protected generateError(match: AlHtmlMatch, error: string): Promise<{ type: string; origin: AlHtmlMatch; error: string; }>; }