/** Background treatment applied to tool-call cards. */ export type ToolBackground = 'none' | 'subtle' | 'strong'; /** * What the fullscreen transcript's right gutter shows: * - `timeline`: Grok-style turn rail — one tick per user turn (conversation * order, not scroll proportion), active turn highlighted, click to jump; * - `scrollbar`: classic proportional thumb — position/size of the visible * window over the whole content, click the track to scroll there; * - `hidden`: no gutter; the transcript takes the full width. */ export type ScrollGutterMode = 'timeline' | 'scrollbar' | 'hidden'; /** Individually selectable fields in the status footer. */ export interface StatusBarConfig { /** Prefer the compact, single-line presentation when space permits. */ compact: boolean; /** Platform account-wide tokens-today row; contextUsage controls its context section. */ tokenDashboard: boolean; /** Human-readable name of the live model. */ model: boolean; /** Reasoning effort / thinking mode. */ thinking: boolean; /** Session working directory. */ cwd: boolean; /** Current context consumption, in the dashboard or the standalone status field. */ contextUsage: boolean; /** Prompt-cache hit rate. */ cache: boolean; /** Running input/output token totals. */ tokens: boolean; /** Live and recent output speed. */ tps: boolean; /** Current git branch. */ gitBranch: boolean; /** Current session title. */ sessionTitle: boolean; /** Short session id (# + first 8 chars), matching the session log filename. */ sessionId: boolean; /** Compact goal chip (phase glyph + rounds) while a goal exists. */ goal: boolean; /** Non-default session mode. */ mode: boolean; /** Segmented context progress bar on its own footer row. */ contextBar: boolean; /** Idle working-activity summary. */ activity: boolean; /** Mini trajectory wake rendered at the footer's right edge. */ trajectory: boolean; /** Idle `? for shortcuts` reminder; shortcut keys remain available when hidden. */ shortcutHint: boolean; } /** Default footer shows account-wide tokens today and current context usage. */ export declare const DEFAULT_STATUS_BAR: Readonly; /** Normalize untrusted/config-layer values without mutating the input. */ export declare function normalizeToolBackground(value: unknown): ToolBackground; /** Same normalize contract as toolBackground; `timeline` is the default. */ export declare function normalizeScrollGutter(value: unknown): ScrollGutterMode; /** Merge a partial settings value over the stable status-bar defaults. */ export declare function normalizeStatusBar(value: unknown): StatusBarConfig; /** * Format context-window usage for future status-line consumers. * Invalid or unavailable inputs intentionally produce no field. */ export declare function formatContextUsage(used: number | undefined, contextWindow: number | undefined, compact?: boolean): string | undefined; /** * Root page inset (settings `dsh-tui.pageMargin`): some terminals carry * their own viewport padding (Windows Terminal's 8px default, GUI * emulators), others — bare WSL, tmux, SSH — have none, so the UI text * touches the screen edges. A setting is either a preset name * (none/slim/normal/roomy) or a custom spec (see {@link PageMarginSpec}). * The resolved geometry is what `PageMargin` (the root inset box above * Chat) renders; the channel carries the setting for tests, the module * store below is what the box itself subscribes to (the channel's version * bump only re-renders below Chat). */ export type PageMarginMode = 'none' | 'slim' | 'normal' | 'roomy'; /** Custom spec: `NxM` — N blank columns per side, M blank rows top/bottom * (e.g. `3x1`). */ export type PageMarginSpec = `${number}x${number}`; /** A stored page-margin setting: a preset name or a custom spec. */ export type PageMarginSetting = PageMarginMode | PageMarginSpec; /** Page inset per preset: `{ x }` = blank columns per side, `{ y }` = blank * rows top/bottom. `normal` is the default and matches the original * hard-coded inset (2 columns / 1 row). */ export declare const PAGE_MARGIN_PRESETS: Readonly>; export declare const DEFAULT_PAGE_MARGIN: PageMarginMode; /** Custom-spec bounds: beyond this a layout is either useless (a 40-col * terminal would starve) or pure waste. */ export declare const PAGE_MARGIN_MAX_X = 8; export declare const PAGE_MARGIN_MAX_Y = 4; export declare function isPageMarginMode(value: string): value is PageMarginMode; /** Parse a custom spec (canonicalizes `N` → `Nx1`); undefined when invalid * or out of bounds. */ export declare function parsePageMarginSpec(text: string): PageMarginSpec | undefined; /** Normalize untrusted/config-layer values without mutating the input: * preset names and valid custom specs pass through, everything else falls * back to the default preset. */ export declare function normalizePageMargin(value: unknown): PageMarginSetting; /** Resolve a stored setting to its geometry (presets via the table, custom * specs via their numbers; anything unparseable → the default preset). */ export declare function resolvePageMargin(setting: PageMarginSetting): { readonly x: number; readonly y: number; }; /** Subscribe to page-margin setting changes; returns the unsubscribe fn. */ export declare function subscribePageMargin(listener: () => void): () => void; /** Current applied setting (normalized; safe for useSyncExternalStore — * a primitive string identity is stable). */ export declare function getPageMarginSetting(): PageMarginSetting; /** Apply a new setting (normalized, no-op when unchanged). Returns the * value that ended up applied — useful for the plugin to mirror the * channel. */ export declare function applyPageMargin(setting: unknown): PageMarginSetting; //# sourceMappingURL=tuiDisplayPrefs.d.ts.map