import type { NewFormContext } from "../tui/new-form.js"; import { type SessionsTheme } from "../tui/theme.js"; import type { ManagedSession } from "../core/types.js"; export declare function buildNewFormContext(input: { cwd: string; sessions: ManagedSession[]; selected?: ManagedSession; historyCwds?: string[]; }): NewFormContext; export interface ThemeRefreshLoopOptions { initialTheme: SessionsTheme; load: () => Promise; apply: (theme: SessionsTheme) => void; intervalMs?: number; } export declare function startThemeRefreshLoop(options: ThemeRefreshLoopOptions): () => void; export declare function runTui(): Promise; export declare function resolveDashboardThemeSessionId(sessions: ManagedSession[], configuredId: string | undefined, selectedId: string | undefined): string | undefined; export declare function loadDashboardTheme(cwd: string, sessions: ManagedSession[], sessionId: string | undefined): Promise;