import type { RgbColor } from "@earendil-works/pi-tui";
export type TerminalTheme = "dark" | "light";
export declare function parseAutoThemeSetting(themeSetting: string | undefined): {
    lightTheme: string;
    darkTheme: string;
} | undefined;
export declare function resolveThemeSetting(themeSetting: string | undefined, terminalTheme: TerminalTheme): string | undefined;
export interface TerminalThemeDetection {
    theme: TerminalTheme;
    source: "terminal background" | "COLORFGBG" | "fallback";
    detail: string;
    confidence: "high" | "low";
}
export interface TerminalThemeDetectionOptions {
    env?: NodeJS.ProcessEnv;
}
export interface TerminalBackgroundThemeDetector {
    queryTerminalBackgroundColor({ timeoutMs }: {
        timeoutMs: number;
    }): Promise<RgbColor | undefined>;
}
export interface TerminalBackgroundThemeDetectionOptions extends TerminalThemeDetectionOptions {
    ui: TerminalBackgroundThemeDetector;
    timeoutMs: number;
}
export declare function getThemeForRgbColor(rgb: RgbColor): TerminalTheme;
export declare function detectTerminalBackgroundFromEnv(options?: TerminalThemeDetectionOptions): TerminalThemeDetection;
export declare function detectTerminalBackgroundTheme({ ui, timeoutMs, env, }: TerminalBackgroundThemeDetectionOptions): Promise<TerminalThemeDetection>;
export declare function getDefaultTheme(): string;
//# sourceMappingURL=terminal-detection.d.ts.map