logsdx
Version:
<div align="center"><img alt="logsdx" width="300" src="https://github.com/user-attachments/assets/cc2a3b55-5bfd-44e8-a330-bfa146b50059" /></div>
13 lines (12 loc) • 844 B
TypeScript
import { stripAnsi as stripAnsiLib } from "../utils/strip-ansi";
import type { StyleCode } from "./types";
export declare function escapeHtml(text: string): string;
export declare function hexToRgb(hex: string): readonly [number, number, number];
export declare const stripAnsi: typeof stripAnsiLib;
export declare function hasStyleCode(styleCodes: ReadonlyArray<StyleCode> | undefined, code: StyleCode): boolean;
export declare function parseColorFgBg(colorFgBg: string): number | undefined;
export declare function isLightBgColor(bgColor: number): boolean;
export declare function repeatString(str: string, count: number): string;
export declare function calculateCenterPadding(totalWidth: number, textLength: number): readonly [number, number];
export declare function isBrowser(): boolean;
export declare function hasMatchMedia(): boolean;