import { type BuiltInFunctionTable, type NodeExpr } from './AST.js'; import { Scope } from './Scope.js'; import { CallFrame } from './CallFrame.js'; /** Serializable host-neutral plot preparation. Renderer adapters own materialization. */ export type PlotTrace = Record; /** Serializable visualization payload; hosts interpret trace, layout and config records. */ export type PlotOutputRequest = { readonly type: 'plot' | 'plot3' | 'surf' | 'plot2d' | 'histogram'; readonly data: PlotTrace[]; readonly layout: Record; readonly config: Record; }; /** Minimal interpreter surface needed to capture plots without owning a renderer. */ export type PlotInterpreter = { readonly context: { readonly currentScope: Scope; readonly callStack: CallFrame[]; }; Evaluator(expr: NodeExpr, scope?: Scope): NodeExpr; }; /** * Create native plotting functions bound to one interpreter workspace. * @param interpreter Owning evaluator and scope stack used for synchronous sampling. * @param output Optional synchronous sink for prepared visualization requests. * @returns Built-in function table; rendering remains the host's responsibility. */ export declare const createPlotFunctionTable: (interpreter: PlotInterpreter, output?: (request: PlotOutputRequest) => void) => BuiltInFunctionTable;