import { ColorFunction } from "./types.mjs";

//#region src/server/colors/ansi256.d.ts
/**
 * Returns a function that wraps text with the given 8-bit (256-color) foreground.
 *
 * @param code - The 8-bit color code (0–255).
 * @returns A color function that wraps text with the chosen ANSI 256 foreground.
 *
 * @example
 * import { colors } from 'es-toolkit/server';
 *
 * const orange = colors.ansi256(208);
 * console.log(orange('hello'));
 */
declare function ansi256(code: number): ColorFunction;
//#endregion
export { ansi256 };