import { checkMacOSVersion } from "./check-macos-version.mjs"; import { showCursor } from "./cursor.mjs"; //#region index.d.ts declare const shapes: { diamond: string; dash: string; radioInactive: string; radioActive: string; backActive: string; backInactive: string; bar: string; leftT: string; rigthT: string; arrows: { left: string; right: string; }; corners: { tl: string; bl: string; tr: string; br: string; }; }; declare const status: { error: string; warning: string; info: string; success: string; cancel: string; }; declare const space: (n?: number) => string; declare const LOGGER_LEVELS: { readonly none: -1; readonly error: 0; readonly warn: 1; readonly info: 2; readonly log: 3; readonly debug: 4; }; type LoggerLevel = keyof typeof LOGGER_LEVELS; declare function setLogLevel(level: LoggerLevel): void; declare function getLogLevel(): LoggerLevel; declare const logRaw: (msg: string) => void; declare const log: (msg: string) => void; declare const newline: () => void; type FormatOptions = { linePrefix?: string; firstLinePrefix?: string; newlineBefore?: boolean; newlineAfter?: boolean; formatLine?: (line: string) => string; multiline?: boolean; }; declare const format: (msg: string, { linePrefix, firstLinePrefix, newlineBefore, newlineAfter, formatLine, multiline }?: FormatOptions) => string; declare const updateStatus: (msg: string, printNewLine?: boolean) => void; declare const startSection: (heading: string, subheading?: string, printNewLine?: boolean) => void; declare const endSection: (heading: string, subheading?: string) => void; declare const cancel: (msg: string, { shape, multiline }?: { shape?: string | undefined; multiline?: boolean | undefined; }) => void; declare const warn: (msg: string, { shape, multiline, newlineBefore }?: { shape?: string | undefined; multiline?: boolean | undefined; newlineBefore?: boolean | undefined; }) => void; declare const success: (msg: string, { shape, multiline }?: { shape?: string | undefined; multiline?: boolean | undefined; }) => void; declare const stripAnsi: (str: string) => string; declare const linkRegex: RegExp; declare const hyperlink: (url: string, label?: string) => string; declare const crash: (msg?: string, extra?: string) => never; declare const error: (msg?: string, extra?: string, corner?: string) => void; //#endregion export { LoggerLevel, cancel, checkMacOSVersion, crash, endSection, error, format, getLogLevel, hyperlink, linkRegex, log, logRaw, newline, setLogLevel, shapes, showCursor, space, startSection, status, stripAnsi, success, updateStatus, warn };