/** * OSC (Operating System Command) escape sequences for terminal features. * * Provides utilities for creating clickable hyperlinks in terminal output using * OSC 8 sequences, detecting terminal hyperlink support across various terminal * emulators, and auto-linkifying URLs in text. * * The hyperlink detection logic is adapted from supports-hyperlinks by Sindre * Sorhus, used under the MIT License. * * @license MIT (supports-hyperlinks portions) * @packageDocumentation * @see {@link https://github.com/chalk/supports-hyperlinks} */ /** * Detect if the terminal supports hyperlinks (OSC 8). Based on the logic from * supports-hyperlinks package but implemented inline without dependencies. * * @function * @group Terminal */ export declare const supportsHyperlinks: (stream?: NodeJS.WriteStream) => boolean; /** * Create an OSC 8 hyperlink. The link text is displayed, and clicking it opens * the URL in supported terminals. * * @function * @group Terminal */ export declare const link: (text: string, url: string) => string; /** * Auto-linkify URLs in text. If terminal supports hyperlinks, URLs become * clickable. Otherwise, text is returned unchanged. * * @function * @group Terminal */ export declare const linkifyUrls: (text: string, stream?: NodeJS.WriteStream) => string; //# sourceMappingURL=osc.d.ts.map