/** * The list page: its header, page band, counts, rows and the frame around them. * Pure drawing over the panel's state — nothing here reads a file, signals a * process or moves a selection, so a renderer can be read on its own. * * @author mystery4f <40482524+mystery4f@users.noreply.github.com> */ import type { ThemeColor } from "@earendil-works/pi-coding-agent"; import type { ChainTask, CmdLoopTask, Task } from "../../tasks/base/task.js"; import { type PanelTab, type PanelTaskView } from "./model.js"; import type { PanelView } from "./view.js"; export declare function renderList(panel: PanelView, width: number): string[]; export declare function listHeader(panel: PanelView, width: number): string[]; export declare function tabBand(panel: PanelView): string; export declare function liveCount(panel: PanelView, tab: PanelTab): number; export declare function countsLine(panel: PanelView): string; export declare function listFooter(_panel: PanelView, room: number): string; /** * The line above the keys when pi is waiting on a command this extension can let * go. Absent for a source that cannot see foreground runs, and for zero: the * panel never draws an empty hint. */ export declare function foregroundHint(panel: PanelView): string | undefined; export declare function listFrame(panel: PanelView, body: string[], width: number): string[]; export declare function listRow(panel: PanelView, row: PanelTaskView, selected: boolean, width: number, nameRoom: number): string; export declare function fireStrip(panel: PanelView, task: CmdLoopTask, room: number): string; export declare function stepRecord(panel: PanelView, id: string): Task | undefined; export declare function chainPlace(_panel: PanelView, task: ChainTask): string; export declare function chainCells(panel: PanelView, row: PanelTaskView, room?: number): { plain: string; themed: string; }; export declare function highlight(panel: PanelView, text: string, colour: ThemeColor, positions: readonly number[]): string; export declare function selectedIndex(panel: PanelView): number; export declare function foreign(panel: PanelView, row: PanelTaskView | undefined): boolean;