/** * Model-picked charts for multi-series assistant tables (`tui.autoGraph: * smart`). {@link judgeRequest} asks the judge role what only meaning can * decide — the chart kind, which columns to plot and which name the rows, how * rows group, order and compare (shading, reference row, ranking), which way * each measure is better, what competes, the focus row, and which computed * takeaway titles the chart — and {@link planFromAnswers} turns the answers * into a {@link ChartPlan}, each answer only above its confidence gate and the * TUI's local guess everywhere else. An on-device judge only picks the kind * (keyword answers), keeping the rest of the guess. */ import { type Answer, type JudgmentState, type Questions } from "@oh-my-pi/pi-ai"; import { type ChartPlan } from "@oh-my-pi/pi-tui/charts/chart-plan"; import type { TableChartRequest } from "@oh-my-pi/pi-tui/chat/table-chart"; import type { ChainJudge } from "../judgment/index.js"; /** * The judge's chart for `request`, or `null` when it sees none. * @throws when no judge candidate answers (the caller falls back to the guess). */ export declare function pickTableChart(request: TableChartRequest, judge: ChainJudge): Promise; /** * The judge request for `request`: the table and its column types as state, * and at most {@link MAX_QUESTIONS} questions keyed by id — each asked only * where its answer can change the chart. */ export declare function judgeRequest(request: TableChartRequest): { state: JudgmentState; questions: Questions; }; /** * The plan the judge's `answers` make for `request`, or `null` for no chart. * A missing or unsure answer keeps the local guess's part of the plan. */ export declare function planFromAnswers(request: TableChartRequest, answers: Readonly>): ChartPlan | null;