import { Candle } from '@tradejs/types'; interface PinePlotPoint { title?: string; time?: number; value?: unknown; options?: Record; } interface PineContextLike { plots?: Record; result?: Record; [key: string]: unknown; } interface RunPineScriptParams { candles: Candle[]; script: string; symbol?: string; timeframe?: string; inputs?: Record; limit?: number; } declare const getPinePlotSeries: (context: PineContextLike, plotName: string) => PinePlotPoint[]; declare const getLatestPineRawPlotValue: (context: PineContextLike, plotName: string) => unknown; declare const getLatestPineNumberPlotValue: (context: PineContextLike, plotName: string) => number | null; declare const getLatestPineBooleanPlotValue: (context: PineContextLike, plotName: string) => boolean; declare const getLatestPineNumberPlotValues: (context: PineContextLike, plotNames: readonly TPlotName[]) => Record; declare const getLatestPineBooleanPlotValues: (context: PineContextLike, plotNames: readonly TPlotName[]) => Record; declare const toFiniteNumber: (value: unknown) => number | undefined; declare const toPineBoolean: (value: unknown) => boolean; declare const loadPineScriptFile: (filePath: string, fallback?: string) => string; declare const createPineScriptLoader: (baseDir: string) => ((fileNameOrPath: string, fallback?: string) => string); declare const runPineScript: ({ candles, script, symbol, timeframe, inputs, limit, }: RunPineScriptParams) => Promise; export { type PineContextLike, type PinePlotPoint, type RunPineScriptParams, createPineScriptLoader, getLatestPineBooleanPlotValue, getLatestPineBooleanPlotValues, getLatestPineNumberPlotValue, getLatestPineNumberPlotValues, getLatestPineRawPlotValue, getPinePlotSeries, loadPineScriptFile, runPineScript, toFiniteNumber, toPineBoolean };