/** * Transcript density: one `/ui compact|comfortable` axis. * * Compact is the default after the chrome redesign. Comfortable only adds * room — a blank row between turns and a higher click-to-pager threshold on * expanded diffs — without touching GateModal, MetaBar, or the one-row * ToolCards. Thinking lands as a folded clock in both, so neither needs * a preview under the box. * @module codsh-bundle/src/density */ export { UI_PREFS_FILE } from './prefs.ts'; /** The two densities `/ui` switches. */ export type Density = 'compact' | 'comfortable'; /** Returning-user default: tight chrome, one-row cards. */ export declare const DEFAULT_DENSITY: Density; /** * Diff lines before a click opens the pager rather than expanding in place. * * ToolCards are one row either way. Ctrl-O still shows the full hunks; this * threshold only decides when the expanded form is large enough to read in * the pager. */ export declare const DIFF_SOFT_CAP: Record; /** * Parse a `/ui` argument. * @param raw - typed argument, possibly padded. * @returns the density, or undefined when it is not one of the two. */ export declare function parseDensity(raw: string): Density | undefined; /** * Report the current mode the way `/ui` with no argument prints it. * @param density - the live mode. * @returns one muted-ready line, no styling. */ export declare function densityReport(density: Density): string; /** * Read a persisted density from a prefs file. * @param path - JSON file carrying `"density": "compact" | "comfortable"`. * @returns the saved mode, or undefined when missing or unreadable. */ export declare function loadDensity(path: string): Promise; /** * Persist the live density for the next session, keeping the file's other keys. * @param path - the prefs file. * @param density - the mode to keep. */ export declare function saveDensity(path: string, density: Density): Promise;