import React from 'react'; import { IViewField, IRow, IStackMode, VegaGlobalConfig, IChannelScales, IDarkMode, IConfigScaleSet } from '../interfaces'; export interface IReactVegaHandler { getSVGData: () => Promise; getCanvasData: () => Promise; downloadSVG: (filename?: string) => Promise; downloadPNG: (filename?: string) => Promise; } interface ReactVegaProps { name?: string; rows: Readonly; columns: Readonly; dataSource: readonly IRow[]; defaultAggregate?: boolean; stack: IStackMode; interactiveScale: boolean; geomType: string; color?: IViewField; opacity?: IViewField; size?: IViewField; shape?: IViewField; theta?: IViewField; radius?: IViewField; text?: IViewField; details?: Readonly; showActions: boolean; layoutMode: string; width: number; height: number; onGeomClick?: (values: any, e: any) => void; vegaConfig: VegaGlobalConfig; /** @default "en-US" */ locale?: string; useSvg?: boolean; dark?: IDarkMode; scales?: IChannelScales; scale?: IConfigScaleSet; onReportSpec?: (spec: string) => void; displayOffset?: number; } declare const ReactVega: React.ForwardRefExoticComponent>; export default ReactVega;