/** * Bounded read-only inspector for this session's goal. * * The explicit report for the bare `/goal` gesture. It owns no authority of its * own: {@link GoalInspection} is derived fresh from the durable projection and * the live activation service on every paint, and this module only decides how * those facts read on a terminal. There is nothing to mutate here — pausing, * resuming, editing, and clearing are argument-bearing forms that go to the * Harness command unchanged — so the overlay offers no such gesture. * * The objective is model-authored prose and the blocker is a domain string, both * untrusted for terminal purposes. They are escaped before measuring and before * styling, and the complete objective is wrapped rather than truncated: a goal * that is 200 rows long is still readable by scrolling, and half a sentence * reads as a different goal. * @module dshline/goals/overlay */ import type { TuiOverlay } from '../slots.ts'; import type { GoalInspection } from './model.ts'; /** Inputs the goal inspector needs from its owner. */ export interface GoalOverlaySpec { /** The current reading, read fresh on every paint. */ readonly reading: () => GoalInspection; /** Redraw after a keystroke that scrolled. */ readonly invalidate: () => void; /** Remove this temporary overlay. */ readonly close: () => void; } /** * Create the bounded read-only goal inspector. * @param spec - the authoritative reading, redraw request, and close control. * @returns a live-region overlay that never writes the transcript. */ export declare function createGoalOverlay(spec: GoalOverlaySpec): TuiOverlay; //# sourceMappingURL=overlay.d.ts.map