Skip to main content
Core TypeScript types for the @mariozechner/pi-tui package.

Import

Component Types

Component

Base component interface.

Focusable

Interface for components that can receive focus.

Terminal Types

Terminal

Terminal abstraction interface.

Layout Types

OverlayOptions

Options for overlay positioning.

SizeValue

OverlayAnchor

OverlayMargin

OverlayHandle

Opaque handle for overlay management.

Editor Types

EditorOptions

EditorTheme

EditorKeybindingsConfig

List Types

SelectItem

SelectListTheme

SettingItem

SettingsListTheme

Markdown Types

MarkdownTheme

DefaultTextStyle

Image Types

ImageOptions

ImageTheme

ImageProtocol

TerminalCapabilities

CellDimensions

Keyboard Types

Key

Keyboard input representation.

KeyEventType

KeyId

Autocomplete Types

AutocompleteProvider

AutocompleteItem

SlashCommand

Fuzzy Matching Types

FuzzyMatch

Stdin Buffer Types

StdinBufferOptions

StdinBufferEventMap

Example: Type-Safe Component