import { c as TerminalAppearance } from "./detect-Db6GbKOm.js"; import { c as Color, d as RgbColor, t as ColorProfile } from "./color-profile-CyeHnG1T.js"; //#region src/color/paint.d.ts type ColorInput = Color | string; type InterpolationSpace = "oklab" | "lab" | "rgb" | "hsv"; type GradientStop = { readonly offset?: number; readonly color: ColorInput; }; type LinearGradient = { readonly type: "linear-gradient"; readonly stops: readonly GradientStop[]; /** Degrees clockwise: 0 points left-to-right, 90 top-to-bottom. */ readonly angle: number; readonly space: InterpolationSpace; }; /** A one-dimensional gradient wrapped clockwise around a rectangle's edge. */ type PerimeterGradient = { readonly type: "perimeter-gradient"; readonly stops: readonly GradientStop[]; /** Rotation in terminal cells, starting at the top-left corner. */ readonly offset: number; readonly space: InterpolationSpace; }; type AdaptiveColor = { readonly type: "adaptive-color"; readonly light: ColorInput; readonly dark: ColorInput; }; type ProfileColor = { readonly type: "profile-color"; readonly colors: Partial>; readonly fallback: ColorInput; }; type Paint = ColorInput | LinearGradient | PerimeterGradient | AdaptiveColor | ProfileColor; type PaintContext = { readonly appearance?: TerminalAppearance; readonly profile?: ColorProfile; readonly palette?: readonly { r: number; g: number; b: number; }[]; }; declare const rgb: (red: number, green: number, blue: number, alpha?: number) => RgbColor; declare const ansi: (index: number) => Color; declare const ansi256: (index: number) => Color; declare const namedIndexes: { readonly black: 0; readonly red: 1; readonly green: 2; readonly yellow: 3; readonly blue: 4; readonly magenta: 5; readonly cyan: 6; readonly white: 7; readonly blackBright: 8; readonly gray: 8; readonly grey: 8; readonly redBright: 9; readonly greenBright: 10; readonly yellowBright: 11; readonly blueBright: 12; readonly magentaBright: 13; readonly cyanBright: 14; readonly whiteBright: 15; }; type NamedColor = keyof typeof namedIndexes; declare const named: (color: NamedColor) => Color; declare const adaptive: (light: ColorInput, dark: ColorInput) => AdaptiveColor; declare const perProfile: (colors: Partial>, fallback: ColorInput) => ProfileColor; declare const linearGradient: (stops: readonly (GradientStop | ColorInput)[], options?: { angle?: number; space?: InterpolationSpace; }) => LinearGradient; declare const perimeterGradient: (stops: readonly ColorInput[], options?: { offset?: number; space?: InterpolationSpace; }) => PerimeterGradient; //#endregion export { perimeterGradient as _, LinearGradient as a, PaintContext as c, adaptive as d, ansi as f, perProfile as g, named as h, InterpolationSpace as i, PerimeterGradient as l, linearGradient as m, ColorInput as n, NamedColor as o, ansi256 as p, GradientStop as r, Paint as s, AdaptiveColor as t, ProfileColor as u, rgb as v };