import { StrategyFigureAnnotation, StrategyFigureLine, StrategyFigurePoints, StrategyFigureZone, OrderLogData, StrategyEntryModelFigures, TrendLine, Signal } from '@tradejs/types'; import { Chart } from 'klinecharts'; type MarkerShape = 'RECT' | 'DIAMOND' | 'STAR' | 'CIRCLE' | 'SQUARE' | 'TRIANGLE'; interface MarkerMeta { shape: MarkerShape; color: string; timestamp: number; value: number; type: string; profit: number; amount: number; tradeIndex: number; } interface EntryLineExtendData { line: StrategyFigureLine; } interface EntryPointsExtendData { points: StrategyFigurePoints; } interface EntryZoneExtendData { zone: StrategyFigureZone; } interface EntryAnnotationExtendData { annotation: StrategyFigureAnnotation; } type Coordinate$3 = { x: number; y: number; }; type CreatePointFiguresParams$3 = { coordinates: Coordinate$3[]; overlay: { extendData?: EntryAnnotationExtendData; }; }; declare const createEntryAnnotationPointFigure: ({ coordinates, overlay, }: CreatePointFiguresParams$3) => { type: string; key: string; attrs: { x: number; y: number; text: string; align: string; baseline: string; }; styles: { style: string; color: string; size: number; weight: number; backgroundColor: string; borderColor: string; borderSize: number; borderRadius: number; paddingLeft: number; paddingRight: number; paddingTop: number; paddingBottom: number; }; ignoreEvent: boolean; }[]; type Coordinate$2 = { x: number; y: number; }; type CreatePointFiguresParams$2 = { coordinates: Coordinate$2[]; overlay: { extendData?: EntryLineExtendData; }; }; declare const createEntryLinePointFigure: ({ coordinates, overlay, }: CreatePointFiguresParams$2) => { type: string; attrs: { coordinates: Coordinate$2[]; }; styles: { color: string; size: number; style: "solid" | "dashed"; }; }[]; type Coordinate$1 = { x: number; y: number; }; type CreatePointFiguresParams$1 = { coordinates: Coordinate$1[]; overlay: { extendData?: EntryPointsExtendData; }; }; declare const createEntryPointsPointFigure: ({ coordinates, overlay, }: CreatePointFiguresParams$1) => any[]; type Coordinate = { x: number; y: number; }; type CreatePointFiguresParams = { coordinates: Coordinate[]; overlay: { extendData?: EntryZoneExtendData; }; }; declare const createEntryZonePointFigure: ({ coordinates, overlay, }: CreatePointFiguresParams) => { type: string; attrs: { x: number; y: number; width: number; height: number; }; styles: { color: string; borderColor: string; size: number; }; }[]; type FigureOverlayRef = { name: 'BacktestEntryLine' | 'BacktestEntryPoints' | 'BacktestEntryZone' | 'BacktestEntryAnnotation'; id: string; }; declare const ensureBaseFigureOverlaysRegistered: () => void; declare const convertTrendLineToFigures: (trendLine: TrendLine) => StrategyEntryModelFigures; declare const normalizeSignalFigures: (signal?: Signal | null) => StrategyEntryModelFigures | undefined; declare const collectSignalFiguresFromOrderLog: (events: OrderLogData) => Array<{ figures: StrategyEntryModelFigures; signalId?: string; index: number; }>; declare const drawSignalFigures: ({ chart, idPrefix, figures, }: { chart: Chart; idPrefix: string; figures: StrategyEntryModelFigures; }) => FigureOverlayRef[]; declare const removeSignalFigures: (chart: Chart, overlays: FigureOverlayRef[]) => void; export { type EntryAnnotationExtendData, type EntryLineExtendData, type EntryPointsExtendData, type EntryZoneExtendData, type FigureOverlayRef, type MarkerMeta, type MarkerShape, collectSignalFiguresFromOrderLog, convertTrendLineToFigures, createEntryAnnotationPointFigure, createEntryLinePointFigure, createEntryPointsPointFigure, createEntryZonePointFigure, drawSignalFigures, ensureBaseFigureOverlaysRegistered, normalizeSignalFigures, removeSignalFigures };