/** * @tsports/termenv - TypeScript port of termenv * * This is the main export file for the TypeScript-native API. * Port of github.com/muesli/termenv Go package to TypeScript. * * @packageDocumentation * @version 1.0.0 * @author TSports Team * @since 1.0.0 * * @example * ```typescript * import { colorProfile, string, rgbColor } from '@tsports/termenv'; * * const profile = colorProfile(); * const styled = string('Hello World') * .foreground(rgbColor('#FF0000')) * .bold(); * console.log(styled.toString()); * ``` */ export { HyperlinkControl, hyperlink } from './hyperlink.js'; export { NotificationControl, notify } from './notification.js'; export { defaultOutputInstance, newOutput, OutputImpl, setDefaultOutput, withColorCache, withEnvironment, withProfile, withTTY, withUnsafe, } from './output.js'; export { ProfileUtils } from './profile.js'; export { EraseLineMode, EraseMode, ScreenControl, SEQUENCES } from './screen.js'; export { Style } from './style.js'; export type { Color, Environ, File, Output, OutputOption, } from './types.js'; export { ANSI256Color, ANSIBlack, ANSIBlue, ANSIBrightBlack, ANSIBrightBlue, ANSIBrightCyan, ANSIBrightGreen, ANSIBrightMagenta, ANSIBrightRed, ANSIBrightWhite, ANSIBrightYellow, ANSIColor, ANSICyan, ANSIGreen, ANSIMagenta, ANSIRed, ANSIWhite, ANSIYellow, convertToRGB, InvalidColorError, NoColor, Profile, RGBColor, StatusReportError, TermEnvError, } from './types.js'; import { ANSI256Color, ANSIColor, type Color, NoColor, type Profile, RGBColor } from './types.js'; /** * String returns a new styled string for the default output */ export declare function string(...strings: string[]): import('./style.js').Style; /** * ColorProfile returns the supported color profile for the default output */ export declare function colorProfile(): Profile; /** * EnvColorProfile returns the color profile based on environment variables for the default output */ export declare function envColorProfile(): Profile; /** * EnvNoColor returns true if the environment variables explicitly disable color output */ export declare function envNoColor(): boolean; /** * HasDarkBackground returns true if the terminal has a dark background */ export declare function hasDarkBackground(): boolean; /** * ForegroundColor returns the terminal's default foreground color */ export declare function foregroundColor(): Color; /** * BackgroundColor returns the terminal's default background color */ export declare function backgroundColor(): Color; /** * NoColor creates a NoColor instance */ export declare function noColor(): NoColor; /** * ANSIColor creates an ANSI color (0-15) */ export declare function ansiColor(value: number): ANSIColor; /** * ANSI256Color creates an ANSI256 color (0-255) */ export declare function ansi256Color(value: number): ANSI256Color; /** * RGBColor creates an RGB color from hex string */ export declare function rgbColor(hex: string): RGBColor; /** * Color creates a color from string, supporting hex colors and ANSI color codes */ export declare function color(s: string): Color | null; /** * ProfileName returns the name of the profile as a string */ export declare function profileName(profile: Profile): string; /** * MoveCursor moves the cursor to the given position */ export declare function moveCursor(row: number, column: number): void; /** * CursorUp moves the cursor up n lines */ export declare function cursorUp(n?: number): void; /** * CursorDown moves the cursor down n lines */ export declare function cursorDown(n?: number): void; /** * ClearScreen clears the entire screen */ export declare function clearScreen(): void; /** * ClearLine clears the current line */ export declare function clearLine(): void; /** * HideCursor hides the cursor */ export declare function hideCursor(): void; /** * ShowCursor shows the cursor */ export declare function showCursor(): void; /** * AltScreen switches to the alternate screen */ export declare function altScreen(): void; /** * ExitAltScreen exits the alternate screen */ export declare function exitAltScreen(): void; /** * SetWindowTitle sets the terminal window title */ export declare function setWindowTitle(title: string): void; /** * EnableMouse enables mouse support */ export declare function enableMouse(): void; /** * DisableMouse disables mouse support */ export declare function disableMouse(): void; /** * CreateHyperlink creates a clickable hyperlink (convenience function, doesn't write to output) */ export declare function createHyperlink(link: string, name: string): string; /** * WriteHyperlink writes a hyperlink to the default output */ export declare function writeHyperlink(link: string, name: string): void; /** * CreateNotification creates a notification string (convenience function, doesn't write to output) */ export declare function createNotification(title: string, body: string): string; /** * SendNotification sends a notification to the terminal */ export declare function sendNotification(title: string, body: string): void; //# sourceMappingURL=index.d.ts.map