import type { SciChartPieSurface } from "../Charting/Visuals/SciChartPieSurface/SciChartPieSurface"; import type { TWebAssemblyChart } from "../Charting/Visuals/SciChartSurface"; import type { SciChartSurfaceBase } from "../Charting/Visuals/SciChartSurfaceBase"; import type { TWebAssemblyChart3D } from "../Charting3D/Visuals/SciChart3DSurface"; import { ESciChartSurfaceType } from "../types/SciChartSurfaceType"; import type { TSciChart } from "../types/TSciChart"; import type { ISciChart2DDefinition, ISciChartPieDefinition, ISciChart3DDefinition } from "./types/SurfaceDefinitions"; type TSpreadSurfaceDefinition = ({ type?: ESciChartSurfaceType.Default2D; } & ISciChart2DDefinition) | ({ type: ESciChartSurfaceType.Pie2D; } & ISciChartPieDefinition) | ({ type: ESciChartSurfaceType.Polar2D; } & ISciChart2DDefinition) | ({ type: ESciChartSurfaceType.Default3D; } & ISciChart3DDefinition); export type TSurfaceDefinition = { type?: ESciChartSurfaceType.Default2D; options?: ISciChart2DDefinition; } | { type: ESciChartSurfaceType.Pie2D; options?: ISciChartPieDefinition; } | { type: ESciChartSurfaceType.Polar2D; options?: ISciChart2DDefinition; } | { type: ESciChartSurfaceType.Default3D; options?: ISciChart3DDefinition; } | TSpreadSurfaceDefinition; /** * Builds a 2D {@link SciChartSurface} using a {@link ISciChart2DDefinition} which can be pure data. * @remarks This method is async and must be awaited * @param divElementId The Div Element ID where the {@link SciChartSurface} will reside * @param definition the {@link ISciChart2DDefinition} * * --- * 📚 Docs: {@link https://www.scichart.com/documentation/js/current/2d-charts/builder-api/simple-chart/} */ export declare function buildChart(divElementId: string | HTMLDivElement, definition: string | { type?: ESciChartSurfaceType.Default2D; options?: ISciChart2DDefinition; } | ISciChart2DDefinition): Promise; /** * Builds a Polar {@link SciChartPolarSurface} using a {@link ISciChart2DDefinition} which can be pure data. * @remarks This method is async and must be awaited * @param divElementId The Div Element ID where the {@link SciChartPolarSurface} will reside * @param definition the {@link ISciChart2DDefinition} * * --- * 📚 Docs: {@link https://www.scichart.com/documentation/js/current/2d-charts/builder-api/polar-chart/} */ export declare function buildChart(divElementId: string | HTMLDivElement, definition: string | { type: ESciChartSurfaceType.Polar2D; options?: ISciChart2DDefinition; } | (ISciChart2DDefinition & { type: ESciChartSurfaceType.Polar2D; })): Promise; /** * Builds a Pie {@link SciChartPieSurface} using a {@link ISciChartPieDefinition} which can be pure data. * @remarks This method is async and must be awaited * @param divElementId The Div Element ID where the {@link SciChartPieSurface} will reside * @param definition the {@link ISciChartPieDefinition} * * --- * 📚 Docs: {@link https://www.scichart.com/documentation/js/current/2d-charts/builder-api/pie-chart/} */ export declare function buildChart(divElementId: string | HTMLDivElement, definition: string | { type: ESciChartSurfaceType.Pie2D; options?: ISciChartPieDefinition; } | (ISciChartPieDefinition & { type: ESciChartSurfaceType.Pie2D; })): Promise; /** * Builds a 3D {@link SciChart3DSurface} using a {@link ISciChartDefinition3D} which can be pure data. * @remarks This method is async and must be awaited * @param divElementId The Div Element ID where the {@link SciChart3DSurface} will reside * @param definition the {@link ISciChart3DDefinition} * * --- * 📚 Docs: {@link https://www.scichart.com/documentation/js/current/2d-charts/builder-api/default-3d-chart/} */ export declare function buildChart(divElementId: string | HTMLDivElement, definition: string | { type: ESciChartSurfaceType.Default3D; options?: ISciChart3DDefinition; } | (ISciChart3DDefinition & { type: ESciChartSurfaceType.Default3D; })): Promise; /** * Configures an existing surface using a definition. * This is useful if you need to use the wasmContext in methods or classes you use in your definition * @param sciChartSurface * @param wasmContext The webassemply context. Pass undefined for a pie surface. * @param definition */ export declare const configureChart: (sciChartSurface: SciChartSurfaceBase, wasmContext: TSciChart, definition: string | TSurfaceDefinition) => void; /** * This is just something to call to ensure that all the registrations are run before a surface is created */ /** * Registers every built-in type — an alias of {@link registerAllTypes}, kept for compatibility. * The Builder is lean by default; call this (or registerAllTypes) once for the pre-v6 * register-everything behaviour. */ export declare const ensureRegistrations: () => void; export { build2DChart, build2DPolarChart, buildPieChart, build3DChart } from "./buildSurface"; export { buildSeries, buildSeries3D } from "./buildSeries"; export { buildDataSeries, buildDataSeries3D } from "./buildDataSeries"; export { buildModifiers, buildModifiers3D } from "./buildModifiers"; export { buildAxes, buildAxis3D } from "./buildAxis"; export { buildAnnotations } from "./buildAnnotations"; export { chartReviver } from "./helpers/chartReviver"; export { registerType, registerWasmType, registerFunction } from "../Core/classFactory";