/** * OpenCode-style right sidebar (layout from OpenCode's routes/session/sidebar.tsx): * 48 columns, panel background, 1 row / 2 columns of padding, one blank row between sections, * bold section titles with muted detail lines, and the directory + version pinned to the bottom. * * New session * * 󰚩 Anthropic Opus 5.5 * Context ━━━━━━━━━━━━━━━━━━━ 4% * 40k of 1M tokens * Plan ━━━━━━━━━━━━━━━━━━━ 71% * ↑ 38k ↓ 1.2k ⟳ 26k $0.04 * * • Host devcontainer * • MCP 6/6 * • LSP idle * * ~/git/pi-chassis * ● pi 1.1.0 · chassis 0.1.0 · build * * In fullscreen it sits in an HStack next to pi's layout root (see layout.ts), so it spans the * terminal height; a component only reports its own lines, so the panel is padded to that height. */ import type { Theme } from "@earendil-works/pi-coding-agent"; import { truncateToWidth } from "@earendil-works/pi-tui"; import type { UiState } from "./state.ts"; export declare const SIDEBAR_WIDTH = 48; /** The git branch icon in the current icon set (Octicons U+F418 with a Nerd Font; none without one). */ export declare const branchGlyph: () => string; /** A worktree icon after the branch when the session runs in a linked git worktree. */ export declare const worktreeTag: (theme: Theme, git: { worktree?: boolean; } | undefined) => string; /** * Marker for a plain setStatus() line from an extension that isn't a widget, by status key * (one cell wide). Keys not listed here get the bullet. */ export declare const statusMark: (key: string) => string; /** A clickable sidebar row: its line in the rendered panel (0 is the top padding row). */ export interface SidebarHit { y: number; widgetId: string; /** Index into the widget's `detail` lines. */ index: number; } /** `hits`, when given, is filled with the clickable rows of this render (cleared first). */ export declare function renderSidebar(state: UiState, theme: Theme, width: number, height: number, piVersion: string, hits?: SidebarHit[]): string[]; export { truncateToWidth };