import type { ExecResult } from '../core/utils/async.js'; export declare enum TmuxLayout { EvenHorizontal = "even-horizontal", EvenVertical = "even-vertical", MainHorizontal = "main-horizontal", MainVertical = "main-vertical", Tiled = "tiled" } export declare class TmuxColor { private readonly value; private constructor(); toString(): string; static from(colorNumber: number): TmuxColor; static fromString(value: string): TmuxColor; static readonly Black: TmuxColor; static readonly Red: TmuxColor; static readonly Green: TmuxColor; static readonly Yellow: TmuxColor; static readonly Blue: TmuxColor; static readonly Magenta: TmuxColor; static readonly Cyan: TmuxColor; static readonly White: TmuxColor; static readonly Default: TmuxColor; } export declare enum TmuxStatusPosition { Top = "top", Bottom = "bottom" } export declare enum TmuxStatusJustify { Left = "left", Centre = "centre", Right = "right" } export declare enum TmuxPaneBorderStatus { Off = "off", Top = "top", Bottom = "bottom" } export declare enum TmuxOption { Status = "status", StatusInterval = "status-interval", StatusPosition = "status-position", StatusStyle = "status-style", StatusLeft = "status-left", StatusRight = "status-right", StatusJustify = "status-justify", Mouse = "mouse", ModeKeys = "mode-keys", PaneBorderStatus = "pane-border-status", PaneBorderStyle = "pane-border-style", PaneActiveBorderStyle = "pane-active-border-style", PaneBorderFormat = "pane-border-format", MonitorActivity = "monitor-activity", SynchronizePanes = "synchronize-panes", RemainOnExit = "remain-on-exit", AggressiveResize = "aggressive-resize", SessionGroup = "@session-group", YankAction = "@yank_action" } export declare enum TmuxKeyTable { Root = "root", Prefix = "prefix", CopyModeVi = "copy-mode-vi", CopyMode = "copy-mode" } export declare enum TmuxHook { AlertActivity = "alert-activity", SessionCreated = "session-created", SessionClosed = "session-closed", WindowLinked = "window-linked", WindowUnlinked = "window-unlinked", PaneExited = "pane-exited" } export interface TmuxSessionInfo { name: string; windows: number; created: number; attached: boolean; group?: string; } export interface TmuxPaneInfo { id: string; sessionName: string; windowIndex: number; paneIndex: number; command: string; title?: string; } export interface TmuxWindowInfo { sessionName: string; index: number; name: string; active: boolean; panes: number; } export interface TmuxStatusBarConfig { enabled?: boolean; position?: TmuxStatusPosition; interval?: number; justify?: TmuxStatusJustify; style?: { background?: TmuxColor; foreground?: TmuxColor; }; left?: string; right?: string; } export interface TmuxKeyBindingConfig { key: string; command: string; table?: TmuxKeyTable; repeat?: boolean; } export interface TmuxPaneBorderConfig { status?: TmuxPaneBorderStatus; style?: { inactive?: string; active?: string; }; format?: string; } export interface CreateSessionOptions { sessionName: string; workingDirectory?: string; windowName?: string; detached?: boolean; command?: string; } export interface CreateWindowOptions { sessionName: string; windowName?: string; workingDirectory?: string; command?: string; } export interface SplitPaneOptions { target: string; horizontal?: boolean; percentage?: number; workingDirectory?: string; command?: string; } export declare class TmuxDriver { static isAvailable(): Promise; static isInsideTmux(): boolean; static getVersion(): Promise; static listSessions(): Promise; static getSession(sessionName: string): Promise; static sessionExists(sessionName: string): Promise; static createSession(options: CreateSessionOptions): Promise; static killSession(sessionName: string): Promise; static attachSession(sessionName: string): Promise; static switchClient(sessionName: string): Promise; static createWindow(options: CreateWindowOptions): Promise; static listWindows(sessionName: string): Promise; static listPanes(sessionName: string): Promise; static sendKeys(target: string, keys: string[], enter?: boolean): Promise; static setOption(target: string | null, option: string, value: string, global?: boolean): Promise; static setWindowOption(target: string, option: string, value: string, global?: boolean): Promise; static getOption(target: string, option: string): Promise; static splitPane(options: SplitPaneOptions): Promise; static killPane(target: string, all?: boolean): Promise; static selectPane(target: string): Promise; static setPaneTitle(target: string, title: string): Promise; static bindKey(key: string, command: string, table?: string, repeat?: boolean): Promise; static unbindKey(key: string, table?: string): Promise; static setHook(hook: string, command: string): Promise; static displayMessage(message: string, target?: string): Promise; static isPaneRunningCommand(sessionName: string, command: string): Promise; static synchronizePanes(target: string, enabled: boolean): Promise; static setPaneBorderStatus(target: string, position: 'top' | 'bottom' | 'off'): Promise; static refreshClient(target?: string): Promise; static configureStatusBar(sessionName: string, config: TmuxStatusBarConfig): Promise; static configureKeyBindings(bindings: TmuxKeyBindingConfig[]): Promise; static configurePaneBorders(sessionName: string, config: TmuxPaneBorderConfig): Promise; static enableViCopyMode(sessionName: string): Promise; static createLayoutBuilder(sessionName: string): TmuxLayoutBuilder; static configureMonitoring(_sessionName: string, hooks: { [key in TmuxHook]?: string; }): Promise; static applyLayout(target: string, layout: TmuxLayout): Promise; static createMultiPaneWindow(sessionName: string, windowName: string, paneCount: number, layout: TmuxLayout): Promise; } export declare class TmuxLayoutBuilder { private sessionName; private panes; constructor(sessionName: string); addPane(options: { command?: string; workingDirectory?: string; title?: string; }): TmuxLayoutBuilder; build(windowName: string, layout: TmuxLayout): Promise; } //# sourceMappingURL=TmuxDriver.d.ts.map