/** * The task detail: one record opened onto its numbers, its output tail, its fires * or the tool calls one iteration made. Pure drawing over the panel's state — the * tail is read by the panel and handed in, so nothing here touches a file. * * @author mystery4f <40482524+mystery4f@users.noreply.github.com> */ import { type IterationCall } from "../../tasks/loop/iteration.js"; import { type PanelTaskView } from "./model.js"; import type { PanelView } from "./view.js"; export declare function renderDetail(panel: PanelView, width: number): string[]; export declare function renderChainDetail(panel: PanelView, row: PanelTaskView, width: number): string[]; export declare function renderProcessDetail(panel: PanelView, width: number): string[]; export declare function outputBox(panel: PanelView, width: number, rows?: number): string[]; export declare function renderLoopDetail(panel: PanelView, row: PanelTaskView, width: number): string[]; export declare function renderCommandLoopDetail(panel: PanelView, row: PanelTaskView, width: number): string[]; export declare function renderIterationDetail(panel: PanelView, width: number): string[]; export declare function callLine(panel: PanelView, call: IterationCall, index: number, width: number): string; export declare function position(panel: PanelView): string; /** * How a pane's rows split between a detail's fields and the window under them. * * The window is what the reader came for — the tail, the calls, the fires — so it * takes `DETAIL_MIN_OUTPUT_LINES` first and grows only towards `cap`. The fields * take the rest of `DETAIL_FIELD_RESERVE` or less, and are what a pane too short * for both goes without. `below` counts the lines a page draws under the window * (a blank, a heading, a notice); the two box borders are added here. */ export declare function detailRows(height: number, below: number, cap?: number, least?: number): { readonly window: number; readonly fields: number; }; /** The window under a page whose body draws three lines below it. */ export declare function windowRowsFor(height: number, cap?: number, least?: number): number; /** * The fields that fit, in reading order. A page passes one group per line block, * and a group is kept or dropped whole so a field never leaves half a block * behind; what did not fit is named in one line at the end, because a page that * silently drops its own facts reads as a page that had none. */ export declare function fitFields(panel: PanelView, groups: readonly (readonly string[])[], room: number): string[]; export declare function window(panel: PanelView): [number, number]; export declare function field(panel: PanelView, label: string, value: string): string[]; /** A long value — a command, a path, a prompt — wrapped under its label on a * narrow pane and inline with it when the frame is wide, never truncated: the * reason this page was opened is usually in the part that would be cut. */ export declare function block(panel: PanelView, label: string, value: string): string[]; export declare function sessionField(panel: PanelView, row: PanelTaskView): string[]; export declare function updatedText(panel: PanelView, updatedAt: number): string;