@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
40 lines • 1.26 kB
TypeScript
import { type Component, type Focusable } from "@earendil-works/pi-tui";
import type { Theme } from "../../../../modes/interactive/theme/theme.ts";
import type { KeybindingsManager } from "../../../keybindings.ts";
export declare const HELP_OVERLAY_MARGIN = 2;
export declare const HELP_OVERLAY_OPTIONS: {
readonly anchor: "top-center";
readonly width: "90%";
readonly minWidth: 60;
readonly maxHeight: "100%";
readonly margin: 2;
};
type HelpPanelOptions = {
readonly markdown: string;
readonly tui: {
readonly terminal: {
readonly rows: number;
};
requestRender(): void;
};
readonly theme: Theme;
readonly keybindings: KeybindingsManager;
readonly done: (result: void) => void;
};
export declare class HelpPanel implements Component, Focusable {
private readonly markdown;
private readonly options;
private offset;
private renderedLineCount;
private _focused;
constructor(options: HelpPanelOptions);
get focused(): boolean;
set focused(value: boolean);
render(width: number): string[];
handleInput(data: string): void;
invalidate(): void;
private viewportHeight;
private maxOffset;
}
export {};
//# sourceMappingURL=panel.d.ts.map