/** * Relay's terminal palette: Relay blue (#0A84FF) for the wordmark, the active * option, the spinner and the check; dim for hints and paths; red for errors. * No other hue anywhere (owner ruling, _artifacts/cli-connect-design-20260912.md, * item 7). * * Whether colour is painted at all is decided from an environment handed in, * never from a library's process-wide guess, so a test can decide it too. The * order is picocolors' (src/index.js): NO_COLOR wins, then FORCE_COLOR, then a * terminal that is not `dumb`. The depth is supports-color's: FORCE_COLOR=3 or * COLORTERM=truecolor|24bit paints 24-bit, anything else the 256-colour cube. */ export type ColourDepth = "none" | "256" | "truecolor"; export interface ColourInput { env: NodeJS.ProcessEnv; /** Whether the stream the text goes to is a terminal. */ isTTY: boolean; } export declare const colourDepth: ({ env, isTTY }: ColourInput) => ColourDepth; export interface Palette { depth: ColourDepth; blue(value: string): string; dim(value: string): string; red(value: string): string; underline(value: string): string; /** The cursor block a placeholder starts with, the way clack draws it. */ inverse(value: string): string; } export declare const palette: (input: ColourInput) => Palette; /** The prompts and the steps go to stderr, so that stream decides for the process. */ export declare const processPalette: () => Palette; export declare const relayBlue: (value: string) => string; export declare const dim: (value: string) => string; export declare const error: (value: string) => string; export declare const handle: (value: string) => string; export declare const link: (value: string) => string; export declare const active: (value: string) => string; //# sourceMappingURL=ui-colour.d.ts.map