/** * Color depth detection and SGR emission. * * Covers cavekit-terminal-blend R7: emit truecolor when the terminal supports it, * 256-color when it doesn't, and 16-color as a last resort so sequences degrade * cleanly under tmux, screen, and linux-console. */ export type ColorDepth = "truecolor" | "256" | "16"; export declare function detectColorDepth(env?: NodeJS.ProcessEnv): ColorDepth; export declare function resetColorDepthCache(): void; /** * Emit the SGR escape sequence to set the given color as foreground or background * at the given color depth. Returns "" for invalid input (empty/undefined hex). */ export declare function hexToSgr(hex: string | undefined | null, depth: ColorDepth, kind: "fg" | "bg"): string; export declare function sgrReset(): string; //# sourceMappingURL=color-depth.d.ts.map