import type { TmuxSessionConfig, TmuxWindowConfig } from './config.mts'; import type { TmuxRun } from './runner.mts'; export type SessionContext = { config: TmuxSessionConfig; root: string; session: string; /** Variables injected into every window, e.g. the log level. */ extraEnv: Record; tmux: TmuxRun; hasChildren: (pid: string) => boolean; out: (text: string) => void; err: (text: string) => void; }; export declare function windowCwd(context: SessionContext, window: TmuxWindowConfig): string; export declare function commandFor(context: SessionContext, window: TmuxWindowConfig): string; export declare function decorateWindow(context: SessionContext, name: string): boolean; /** Respawn dead windows (or recreate missing ones). False when any step fails. */ export declare function restoreDeadWindows(context: SessionContext): boolean;