UNPKG

@promptbook/wizard

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

16 lines (15 loc) 663 B
import type { AsciiArtColorDepth } from './convertImageDataToAsciiArt'; /** * Detects the ANSI color depth supported by the current terminal. * * Prefers 24-bit true color when the environment advertises it (modern terminals such as * Windows Terminal, ConEmu, VS Code, mintty, iTerm2, and WezTerm) and falls back to the * portable 256-color palette otherwise. * * Note: `$` is used to indicate that this function is not a pure function - it reads the process environment * * @returns Color depth usable by `convertImageDataToAsciiArt` * * @private within the repository */ export declare function $detectTerminalAnsiColorDepth(): AsciiArtColorDepth;