logsdx
Version:
<div align="center"><img alt="logsdx" width="300" src="https://github.com/user-attachments/assets/cc2a3b55-5bfd-44e8-a330-bfa146b50059" /></div>
50 lines (49 loc) • 2.06 kB
TypeScript
import type { ColorDefinition, BackgroundInfo, MatchType } from "./types";
import type { Theme } from "../types";
export declare const DEFAULT_THEME_NAME = "default";
export declare const DEFAULT_THEME_COLOR = "white";
export declare const TAB_SIZE = 4;
export declare const NBSP = " ";
export declare const BR = "<br>";
export declare const EMPTY_STRING = "";
export declare const LINE_HIGHLIGHT_BG = "\u001B[48;5;236m";
export declare const RESET = "\u001B[0m";
export declare const WHITESPACE_MATCH_TYPES: ReadonlySet<MatchType>;
export declare const TRIMMED_SPACE_MATCH_TYPES: ReadonlySet<MatchType>;
export declare const CSS_BOLD = "font-weight: bold";
export declare const CSS_ITALIC = "font-style: italic";
export declare const CSS_UNDERLINE = "text-decoration: underline";
export declare const CSS_DIM = "opacity: 0.8";
export declare const CLASS_BOLD = "logsdx-bold";
export declare const CLASS_ITALIC = "logsdx-italic";
export declare const CLASS_UNDERLINE = "logsdx-underline";
export declare const CLASS_DIM = "logsdx-dim";
export declare function supportsColors(): boolean;
export declare const DARK_TERMINALS: ReadonlyArray<string>;
export declare const LIGHT_TERMINALS: ReadonlyArray<string>;
export declare const DEFAULT_DARK_BACKGROUND: BackgroundInfo;
export declare const DEFAULT_AUTO_BACKGROUND: BackgroundInfo;
export declare const TEXT_COLORS: Record<string, ColorDefinition>;
export declare function getColorDefinition(colorName: string, theme?: Theme): ColorDefinition | undefined;
export declare const BACKGROUND_COLORS: Record<string, ColorDefinition>;
export declare const STYLE_CODES: {
reset: string;
bold: string;
dim: string;
italic: string;
underline: string;
blink: string;
inverse: string;
hidden: string;
strikethrough: string;
resetBold: string;
resetDim: string;
resetItalic: string;
resetUnderline: string;
resetBlink: string;
resetInverse: string;
resetHidden: string;
resetStrikethrough: string;
resetColor: string;
resetBackground: string;
};