/**
 * mailpouch — Terminal UI
 *
 * Provides interactive configuration management when a browser is not
 * available. Detects the environment at runtime and selects the best
 * rendering mode:
 *
 *   browser  — start HTTP server + auto-open system browser
 *   ansi     — full-colour interactive TUI with arrow-key navigation
 *   plain    — readline numbered-menu TUI (no escape codes)
 *   none     — print status summary and exit (piped / non-interactive)
 *
 * No external dependencies — uses only Node.js built-ins.
 */
export interface EnvCapabilities {
    isTTY: boolean;
    hasAnsi: boolean;
    hasDisplay: boolean;
    platform: NodeJS.Platform;
    /** Preferred display mode given the above */
    mode: "browser" | "ansi" | "plain" | "none";
}
export declare function detectEnvironment(): EnvCapabilities;
export declare function openBrowser(url: string): boolean;
export declare function printNonInteractive(): void;
export declare function runAnsiTUI(serverPort: number, startServerFn: (port: number) => void): Promise<void>;
export declare function runPlainTUI(serverPort: number, startServerFn: (port: number) => void): Promise<void>;
//# sourceMappingURL=tui.d.ts.map