/** * Terminal theme detection for Mastra Code TUI. * * Detection priority: * 1. MASTRA_THEME env var (explicit override) * 2. OSC 11 query — asks the terminal for its actual background color * 3. COLORFGBG env var (set by some terminal emulators) * 4. Default: 'dark' */ import type { ThemeMode } from './theme.js'; /** * Detect the terminal's color scheme. * Returns 'dark' or 'light'. Does not check persisted settings — * the caller should check settings first and only call this for 'auto' mode. */ export interface ThemeDetectionResult { mode: ThemeMode; /** The actual terminal background hex color, if detected via OSC 11. */ detectedBgHex?: string; } export declare function detectTerminalTheme(): Promise; //# sourceMappingURL=detect-theme.d.ts.map