@reliverse/rempts 1.7.52 → 1.7.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/bin/libs/animate/animate-mod.d.ts +14 -0
  2. package/bin/libs/animate/animate-mod.js +60 -0
  3. package/bin/libs/anykey/anykey-mod.d.ts +12 -0
  4. package/bin/libs/anykey/anykey-mod.js +125 -0
  5. package/bin/libs/cancel/cancel.d.ts +45 -0
  6. package/bin/libs/cancel/cancel.js +72 -0
  7. package/bin/libs/confirm/confirm-alias.d.ts +2 -0
  8. package/bin/libs/confirm/confirm-alias.js +2 -0
  9. package/bin/libs/confirm/confirm-mod.d.ts +5 -0
  10. package/bin/libs/confirm/confirm-mod.js +179 -0
  11. package/bin/libs/date/date.d.ts +2 -0
  12. package/bin/libs/date/date.js +214 -0
  13. package/bin/libs/editor/editor-mod.d.ts +25 -0
  14. package/bin/libs/editor/editor-mod.js +1133 -0
  15. package/bin/libs/figures/figures-mod.d.ts +461 -0
  16. package/bin/libs/figures/figures-mod.js +285 -0
  17. package/bin/libs/group/group-mod.d.ts +33 -0
  18. package/bin/libs/group/group-mod.js +89 -0
  19. package/bin/libs/input/input-alias.d.ts +5 -0
  20. package/bin/libs/input/input-alias.js +4 -0
  21. package/bin/libs/input/input-mod.d.ts +16 -0
  22. package/bin/libs/input/input-mod.js +372 -0
  23. package/bin/libs/intro/intro-alias.d.ts +3 -0
  24. package/bin/libs/intro/intro-alias.js +3 -0
  25. package/bin/libs/intro/intro-mod.d.ts +20 -0
  26. package/bin/libs/intro/intro-mod.js +77 -0
  27. package/bin/libs/launcher/command-runner.d.ts +31 -0
  28. package/bin/libs/launcher/command-runner.js +229 -0
  29. package/bin/libs/launcher/launcher-alias.d.ts +2 -0
  30. package/bin/libs/launcher/launcher-alias.js +2 -0
  31. package/bin/libs/launcher/launcher-mod.d.ts +66 -0
  32. package/bin/libs/launcher/launcher-mod.js +975 -0
  33. package/bin/libs/launcher/launcher-types.d.ts +176 -0
  34. package/bin/libs/launcher/launcher-types.js +0 -0
  35. package/bin/libs/log/log-alias.d.ts +1 -0
  36. package/bin/libs/log/log-alias.js +2 -0
  37. package/bin/libs/msg-fmt/colors.d.ts +30 -0
  38. package/bin/libs/msg-fmt/colors.js +42 -0
  39. package/bin/libs/msg-fmt/logger.d.ts +17 -0
  40. package/bin/libs/msg-fmt/logger.js +103 -0
  41. package/bin/libs/msg-fmt/mapping.d.ts +3 -0
  42. package/bin/libs/msg-fmt/mapping.js +41 -0
  43. package/bin/libs/msg-fmt/messages.d.ts +35 -0
  44. package/bin/libs/msg-fmt/messages.js +305 -0
  45. package/bin/libs/msg-fmt/terminal.d.ts +15 -0
  46. package/bin/libs/msg-fmt/terminal.js +60 -0
  47. package/bin/libs/msg-fmt/variants.d.ts +11 -0
  48. package/bin/libs/msg-fmt/variants.js +52 -0
  49. package/bin/libs/multiselect/multiselect-alias.d.ts +2 -0
  50. package/bin/libs/multiselect/multiselect-alias.js +2 -0
  51. package/bin/libs/multiselect/multiselect-prompt.d.ts +2 -0
  52. package/bin/libs/multiselect/multiselect-prompt.js +340 -0
  53. package/bin/libs/next-steps/next-steps.d.ts +13 -0
  54. package/bin/libs/next-steps/next-steps.js +24 -0
  55. package/bin/libs/number/number-mod.d.ts +28 -0
  56. package/bin/libs/number/number-mod.js +194 -0
  57. package/bin/libs/outro/outro-alias.d.ts +3 -0
  58. package/bin/libs/outro/outro-alias.js +3 -0
  59. package/bin/libs/outro/outro-mod.d.ts +8 -0
  60. package/bin/libs/outro/outro-mod.js +55 -0
  61. package/bin/libs/reliarg/reliarg-mod.d.ts +76 -0
  62. package/bin/libs/reliarg/reliarg-mod.js +276 -0
  63. package/bin/libs/results/results.d.ts +7 -0
  64. package/bin/libs/results/results.js +27 -0
  65. package/bin/libs/select/nummultiselect-prompt.d.ts +6 -0
  66. package/bin/libs/select/nummultiselect-prompt.js +101 -0
  67. package/bin/libs/select/numselect-prompt.d.ts +7 -0
  68. package/bin/libs/select/numselect-prompt.js +111 -0
  69. package/bin/libs/select/select-alias.d.ts +9 -0
  70. package/bin/libs/select/select-alias.js +9 -0
  71. package/bin/libs/select/select-prompt.d.ts +5 -0
  72. package/bin/libs/select/select-prompt.js +308 -0
  73. package/bin/libs/select/toggle-prompt.d.ts +5 -0
  74. package/bin/libs/select/toggle-prompt.js +207 -0
  75. package/bin/libs/spinner/spinner-alias.d.ts +2 -0
  76. package/bin/libs/spinner/spinner-alias.js +2 -0
  77. package/bin/libs/spinner/spinner-mod.d.ts +106 -0
  78. package/bin/libs/spinner/spinner-mod.js +255 -0
  79. package/bin/libs/task/progress.d.ts +2 -0
  80. package/bin/libs/task/progress.js +57 -0
  81. package/bin/libs/task/task-spin.d.ts +15 -0
  82. package/bin/libs/task/task-spin.js +106 -0
  83. package/bin/libs/utils/colorize.d.ts +2 -0
  84. package/bin/libs/utils/colorize.js +122 -0
  85. package/bin/libs/utils/errors.d.ts +1 -0
  86. package/bin/libs/utils/errors.js +17 -0
  87. package/bin/libs/utils/prevent.d.ts +8 -0
  88. package/bin/libs/utils/prevent.js +62 -0
  89. package/bin/libs/utils/prompt-end.d.ts +8 -0
  90. package/bin/libs/utils/prompt-end.js +34 -0
  91. package/bin/libs/utils/stream-text.d.ts +18 -0
  92. package/bin/libs/utils/stream-text.js +137 -0
  93. package/bin/libs/utils/system.d.ts +6 -0
  94. package/bin/libs/utils/system.js +7 -0
  95. package/bin/libs/utils/validate.d.ts +21 -0
  96. package/bin/libs/utils/validate.js +17 -0
  97. package/bin/libs/visual/visual-mod.d.ts +6 -0
  98. package/bin/libs/visual/visual-mod.js +13 -0
  99. package/bin/mod.d.ts +53 -0
  100. package/bin/mod.js +107 -0
  101. package/bin/types.d.ts +371 -0
  102. package/bin/types.js +0 -0
  103. package/package.json +34 -59
  104. package/dist-npm/bin/mod.d.mts +0 -1753
  105. package/dist-npm/bin/mod.mjs +0 -6779
@@ -0,0 +1,176 @@
1
+ export type EmptyArgs = Record<string, never>;
2
+ export interface BaseArgProps {
3
+ description?: string;
4
+ required?: boolean;
5
+ allowed?: readonly string[];
6
+ }
7
+ export interface BaseArgDefinition {
8
+ type: string;
9
+ description?: string;
10
+ required?: boolean;
11
+ default?: any;
12
+ allowed?: readonly any[];
13
+ dependencies?: string[];
14
+ }
15
+ export type PositionalArgDefinition = BaseArgDefinition & {
16
+ type: "positional";
17
+ default?: string;
18
+ allowed?: readonly string[];
19
+ };
20
+ export type BooleanArgDefinition = BaseArgDefinition & {
21
+ type: "boolean";
22
+ default?: boolean;
23
+ allowed?: readonly boolean[];
24
+ alias?: string;
25
+ };
26
+ export type StringArgDefinition = BaseArgDefinition & {
27
+ type: "string";
28
+ default?: string;
29
+ allowed?: readonly string[];
30
+ alias?: string;
31
+ };
32
+ export type NumberArgDefinition = BaseArgDefinition & {
33
+ type: "number";
34
+ default?: number;
35
+ allowed?: readonly number[];
36
+ alias?: string;
37
+ };
38
+ export type ArrayArgDefinition = BaseArgDefinition & {
39
+ type: "array";
40
+ default?: string | readonly string[];
41
+ allowed?: readonly string[];
42
+ alias?: string;
43
+ };
44
+ export type ArgDefinition = PositionalArgDefinition | BooleanArgDefinition | StringArgDefinition | NumberArgDefinition | ArrayArgDefinition;
45
+ export type ArgDefinitions = Record<string, ArgDefinition>;
46
+ export interface CommandMeta {
47
+ name: string;
48
+ version?: string;
49
+ description?: string;
50
+ hidden?: boolean;
51
+ aliases?: string[];
52
+ }
53
+ /**
54
+ * A subcommand can be either:
55
+ * 1) A string path to a module with a default export of type Command.
56
+ * 2) A lazy import function returning a Promise that resolves to
57
+ * { default: Command<any> } or directly to a Command instance.
58
+ */
59
+ export type CommandSpec = string | (() => Promise<{
60
+ default: Command<any>;
61
+ } | Command<any>>);
62
+ export type CommandsMap = Record<string, CommandSpec>;
63
+ export interface CommandContext<ARGS> {
64
+ args: ARGS;
65
+ raw: string[];
66
+ }
67
+ export type CommandRun<ARGS> = (ctx: CommandContext<ARGS>) => void | Promise<void>;
68
+ export type CommandHook<ARGS> = (ctx: CommandContext<ARGS>) => void | Promise<void>;
69
+ export interface DefineCommandOptions<A extends ArgDefinitions = EmptyArgs> {
70
+ meta?: CommandMeta;
71
+ args?: A;
72
+ run?: CommandRun<InferArgTypes<A>>;
73
+ /**
74
+ * Object subcommands for this command.
75
+ */
76
+ commands?: CommandsMap;
77
+ /**
78
+ * @deprecated Use `commands` instead. Will be removed in a future major version.
79
+ */
80
+ subCommands?: CommandsMap;
81
+ /**
82
+ * Called before the command runs. Receives `{ args, raw }` (parsed args and raw argv).
83
+ */
84
+ onCmdInit?: CommandHook<InferArgTypes<A>>;
85
+ /**
86
+ * Called after the command finishes. Receives `{ args, raw }` (parsed args and raw argv).
87
+ */
88
+ onCmdExit?: CommandHook<InferArgTypes<A>>;
89
+ /**
90
+ * @deprecated Use onCmdInit instead
91
+ */
92
+ setup?: CommandHook<InferArgTypes<A>>;
93
+ /**
94
+ * @deprecated Use onCmdExit instead
95
+ */
96
+ cleanup?: CommandHook<InferArgTypes<A>>;
97
+ /**
98
+ * Called once per CLI process, before any command/run() is executed
99
+ */
100
+ onLauncherInit?: () => void | Promise<void>;
101
+ /**
102
+ * Called once per CLI process, after all command/run() logic is finished
103
+ */
104
+ onLauncherExit?: () => void | Promise<void>;
105
+ }
106
+ export interface Command<A extends ArgDefinitions = EmptyArgs> {
107
+ meta?: CommandMeta;
108
+ args: A;
109
+ run?: CommandRun<InferArgTypes<A>>;
110
+ /**
111
+ * Object subcommands for this command.
112
+ */
113
+ commands?: CommandsMap;
114
+ /**
115
+ * @deprecated Use `commands` instead. Will be removed in a future major version.
116
+ */
117
+ subCommands?: CommandsMap;
118
+ /**
119
+ * Called before the command runs. Receives `{ args, raw }` (parsed args and raw argv).
120
+ */
121
+ onCmdInit?: CommandHook<InferArgTypes<A>>;
122
+ /**
123
+ * Called after the command finishes. Receives `{ args, raw }` (parsed args and raw argv).
124
+ */
125
+ onCmdExit?: CommandHook<InferArgTypes<A>>;
126
+ /**
127
+ * @deprecated Use onCmdInit instead
128
+ */
129
+ setup?: CommandHook<InferArgTypes<A>>;
130
+ /**
131
+ * @deprecated Use onCmdExit instead
132
+ */
133
+ cleanup?: CommandHook<InferArgTypes<A>>;
134
+ /**
135
+ * Called once per CLI process, before any command/run() is executed
136
+ */
137
+ onLauncherInit?: () => void | Promise<void>;
138
+ /**
139
+ * Called once per CLI process, after all command/run() logic is finished
140
+ */
141
+ onLauncherExit?: () => void | Promise<void>;
142
+ }
143
+ type ExtractAllowed<T extends ArgDefinition> = T extends {
144
+ type: "positional";
145
+ allowed: readonly (infer U)[];
146
+ } ? U : T extends {
147
+ type: "positional";
148
+ } ? string : T extends {
149
+ type: "boolean";
150
+ allowed: readonly (infer U)[];
151
+ } ? U : T extends {
152
+ type: "boolean";
153
+ } ? boolean : T extends {
154
+ type: "string";
155
+ allowed: readonly (infer U)[];
156
+ } ? U : T extends {
157
+ type: "string";
158
+ } ? string : T extends {
159
+ type: "number";
160
+ allowed: readonly (infer U)[];
161
+ } ? U : T extends {
162
+ type: "number";
163
+ } ? number : T extends {
164
+ type: "array";
165
+ allowed: readonly (infer U)[];
166
+ } ? U[] : T extends {
167
+ type: "array";
168
+ } ? string[] : never;
169
+ export type InferArgTypes<A extends ArgDefinitions> = {
170
+ [K in keyof A]: ExtractAllowed<A[K]>;
171
+ };
172
+ export interface FileBasedOptions {
173
+ enable: boolean;
174
+ cmdsRootPath: string;
175
+ }
176
+ export {};
File without changes
@@ -0,0 +1 @@
1
+ export declare const log: import("@reliverse/relinka").RelinkaFunction;
@@ -0,0 +1,2 @@
1
+ import { relinka } from "@reliverse/relinka";
2
+ export const log = relinka;
@@ -0,0 +1,30 @@
1
+ import type { ColorName, OutputColor, StandardColor } from "../../types";
2
+ /**
3
+ * Maps complex colors (gradients, bright, background) to standard terminal colors.
4
+ * Used by ora spinners and other terminal utilities that only support basic colors.
5
+ *
6
+ * Handles:
7
+ * - Gradient colors -> solid colors (e.g., retroGradient -> cyan)
8
+ * - Bright colors -> base colors (e.g., redBright -> red)
9
+ * - Background colors -> foreground colors (e.g., bgRed -> red)
10
+ * - Special colors -> undefined (reset, inverse, dim, none)
11
+ *
12
+ * @param color The complex color to convert
13
+ * @returns A standard terminal color or undefined for special colors
14
+ */
15
+ export declare function toBaseColor(color?: ColorName): StandardColor | undefined;
16
+ /**
17
+ * Maps any color type to a standard solid color for consistent display.
18
+ * Similar to toBaseColor but always returns a color (never undefined).
19
+ *
20
+ * Handles:
21
+ * - Gradient colors -> solid colors (e.g., retroGradient -> cyan)
22
+ * - Bright colors -> base colors (e.g., redBright -> red)
23
+ * - Background colors -> foreground colors (e.g., bgRed -> red)
24
+ * - Special colors (reset, inverse, none) -> dim
25
+ * - Undefined -> dim
26
+ *
27
+ * @param color The color to convert
28
+ * @returns A standard terminal color, defaulting to "dim" for special cases
29
+ */
30
+ export declare function toSolidColor(color?: ColorName): OutputColor;
@@ -0,0 +1,42 @@
1
+ const GRADIENT_COLOR_MAP = {
2
+ retroGradient: "cyan",
3
+ viceGradient: "green",
4
+ gradientGradient: "blue",
5
+ rainbowGradient: "blue",
6
+ cristalGradient: "blue",
7
+ mindGradient: "blue",
8
+ passionGradient: "blue"
9
+ };
10
+ const SPECIAL_COLORS = ["reset", "inverse", "none"];
11
+ function stripBrightModifier(color) {
12
+ return color.replace("Bright", "");
13
+ }
14
+ function stripBgModifier(color) {
15
+ return color.replace("bg", "").toLowerCase();
16
+ }
17
+ function stripColorModifiers(color) {
18
+ if (color.includes("Bright")) {
19
+ return stripBrightModifier(color);
20
+ }
21
+ if (color.startsWith("bg")) {
22
+ return stripBgModifier(color);
23
+ }
24
+ return color;
25
+ }
26
+ export function toBaseColor(color) {
27
+ if (!color || color === "dim" || SPECIAL_COLORS.includes(color)) {
28
+ return;
29
+ }
30
+ if (color in GRADIENT_COLOR_MAP) {
31
+ return GRADIENT_COLOR_MAP[color];
32
+ }
33
+ if (color.includes("Bright") || color.startsWith("bg")) {
34
+ const baseColor = stripColorModifiers(color);
35
+ return baseColor;
36
+ }
37
+ return color;
38
+ }
39
+ export function toSolidColor(color) {
40
+ const baseColor = toBaseColor(color);
41
+ return baseColor ?? "dim";
42
+ }
@@ -0,0 +1,17 @@
1
+ import type { AllKinds, StreamOptions } from "../../types";
2
+ /**
3
+ * Logs messages with configurable styling and formatting.
4
+ * Doesn't support streaming functionality.
5
+ */
6
+ export declare function relinkaByRemptsDeprecated(kind: AllKinds, title: string, content?: string, hint?: string): void;
7
+ /**
8
+ * Asynchronous version of relinka that supports streaming functionality.
9
+ * Use this when you want animated text output with optional spinner.
10
+ *
11
+ * Streaming is controlled by the streamOpts parameter:
12
+ * - Use { useSpinner: true } for spinner animation
13
+ * - Use { delay: number } for character-by-character streaming
14
+ * - Content and hint are optional regardless of streaming
15
+ */
16
+ export declare const relinkaAsyncByRemptsDeprecated: (kind: AllKinds, title: string, content?: string, hint?: string, streamOpts?: StreamOptions) => Promise<void>;
17
+ export declare const throwError: (error: unknown) => never;
@@ -0,0 +1,103 @@
1
+ import { streamText, streamTextWithSpinner } from "../utils/stream-text.js";
2
+ import { toSolidColor } from "./colors.js";
3
+ import { msg } from "./messages.js";
4
+ const verboseLogging = false;
5
+ const MESSAGE_CONFIGS = {
6
+ log: {
7
+ type: "M_INFO",
8
+ titleColor: "retroGradient",
9
+ titleTypography: "bold"
10
+ },
11
+ info: {
12
+ type: "M_INFO",
13
+ titleColor: "retroGradient",
14
+ titleTypography: "bold"
15
+ },
16
+ success: {
17
+ type: "M_INFO",
18
+ titleColor: "viceGradient",
19
+ titleTypography: "bold"
20
+ },
21
+ warn: {
22
+ type: "M_ERROR",
23
+ titleColor: "yellowBright",
24
+ titleTypography: "bold"
25
+ },
26
+ error: {
27
+ type: "M_ERROR",
28
+ titleColor: "yellowBright",
29
+ titleTypography: "bold"
30
+ }
31
+ };
32
+ export function relinkaByRemptsDeprecated(kind, title, content, hint) {
33
+ const isVerbose = kind.endsWith("-verbose");
34
+ const baseKind = isVerbose ? kind.replace("-verbose", "") : kind;
35
+ if (isVerbose && !verboseLogging) {
36
+ return;
37
+ }
38
+ const config = MESSAGE_CONFIGS[baseKind];
39
+ msg({
40
+ ...config,
41
+ title: isVerbose ? `[debug] ${title}` : title,
42
+ content: content ?? "",
43
+ contentColor: "dim",
44
+ contentTypography: "italic",
45
+ hint: hint ?? ""
46
+ });
47
+ }
48
+ export const relinkaAsyncByRemptsDeprecated = async (kind, title, content, hint, streamOpts) => {
49
+ const isVerbose = kind.endsWith("-verbose");
50
+ const baseKind = isVerbose ? kind.replace("-verbose", "") : kind;
51
+ if (isVerbose && !verboseLogging) {
52
+ return;
53
+ }
54
+ const config = MESSAGE_CONFIGS[baseKind];
55
+ if (!streamOpts) {
56
+ msg({
57
+ ...config,
58
+ title: isVerbose ? `[debug] ${title}` : title,
59
+ content: content ?? "",
60
+ contentColor: "dim",
61
+ contentTypography: "italic",
62
+ hint: hint ?? ""
63
+ });
64
+ return;
65
+ }
66
+ const titleText = isVerbose ? `[debug] ${title}` : title;
67
+ if (streamOpts.useSpinner) {
68
+ await streamTextWithSpinner({
69
+ text: titleText,
70
+ color: toSolidColor(config.titleColor),
71
+ delay: streamOpts.delay,
72
+ spinnerFrames: streamOpts.spinnerFrames,
73
+ spinnerDelay: streamOpts.spinnerDelay
74
+ });
75
+ } else {
76
+ await streamText({
77
+ text: titleText,
78
+ color: toSolidColor(config.titleColor),
79
+ delay: streamOpts.delay
80
+ });
81
+ }
82
+ if (content) {
83
+ await streamText({
84
+ text: content,
85
+ color: toSolidColor(config.contentColor) ?? "dim",
86
+ delay: streamOpts.delay
87
+ });
88
+ }
89
+ if (hint) {
90
+ await streamText({
91
+ text: hint,
92
+ color: "dim",
93
+ delay: streamOpts.delay
94
+ });
95
+ }
96
+ };
97
+ export const throwError = (error) => {
98
+ msg({
99
+ type: "M_ERROR",
100
+ title: error instanceof Error ? `\u{1F914} Failed to set up the project: ${error.message}` : "\u{1F914} An unknown error occurred."
101
+ });
102
+ process.exit(1);
103
+ };
@@ -0,0 +1,3 @@
1
+ import type { ColorName, TypographyName } from "../../types";
2
+ export declare const colorMap: Record<ColorName, (text: string) => string>;
3
+ export declare const typographyMap: Record<TypographyName, (text: string) => string>;
@@ -0,0 +1,41 @@
1
+ import { re } from "@reliverse/relico";
2
+ import gradient, { cristal, mind, passion, rainbow, retro, vice } from "gradient-string";
3
+ export const colorMap = {
4
+ // @reliverse/relico
5
+ none: (text) => text,
6
+ reset: re.reset,
7
+ bgCyan: re.bgCyan,
8
+ bgCyanBright: re.bgCyanBright,
9
+ black: re.black,
10
+ blue: re.blue,
11
+ blueBright: re.blueBright,
12
+ cyan: re.cyan,
13
+ cyanBright: re.cyanBright,
14
+ dim: re.dim,
15
+ gray: re.gray,
16
+ green: re.green,
17
+ greenBright: re.greenBright,
18
+ inverse: (text) => re.bold(re.inverse(text)),
19
+ magenta: re.magenta,
20
+ magentaBright: re.magentaBright,
21
+ red: re.red,
22
+ redBright: re.redBright,
23
+ white: re.white,
24
+ yellow: re.yellow,
25
+ yellowBright: re.yellowBright,
26
+ // gradient-string
27
+ cristalGradient: cristal,
28
+ gradientGradient: gradient(["red", "yellow", "green", "cyan", "blue", "magenta"]),
29
+ mindGradient: mind,
30
+ passionGradient: passion,
31
+ rainbowGradient: rainbow,
32
+ retroGradient: retro,
33
+ viceGradient: vice
34
+ };
35
+ export const typographyMap = {
36
+ none: (text) => text,
37
+ bold: re.bold,
38
+ italic: re.italic,
39
+ strikethrough: re.strikethrough,
40
+ underline: re.underline
41
+ };
@@ -0,0 +1,35 @@
1
+ import type { ColorName, FmtMsgOptions, Symbols } from "../../types";
2
+ export declare const symbols: Symbols;
3
+ /**
4
+ * Returns a colored vertical bar symbol. Prevents gradient colors for bars.
5
+ */
6
+ export declare const bar: ({ borderColor }?: {
7
+ borderColor?: ColorName;
8
+ }) => string;
9
+ /**
10
+ * Main formatter function: builds the final text output based on FmtMsgOptions.
11
+ */
12
+ export declare function fmt(opts: FmtMsgOptions): {
13
+ text: string;
14
+ lineCount: number;
15
+ };
16
+ /**
17
+ * Logs a formatted message to the console and records how many lines it occupies.
18
+ */
19
+ export declare function msg(opts: FmtMsgOptions): void;
20
+ /**
21
+ * Undo the last printed message by deleting its lines from the terminal.
22
+ * @param count How many messages to undo. Defaults to 1.
23
+ */
24
+ export declare function msgUndo(count?: number): void;
25
+ /**
26
+ * Undo all printed messages so far.
27
+ */
28
+ export declare function msgUndoAll(): void;
29
+ /**
30
+ * Prints: "│ <text>" (two spaces after the bar).
31
+ * If text is empty, it just prints "│".
32
+ * If indent is 1, it prints "│ <text>" (one space).
33
+ * If indent is 2, it prints "│ <text>" (two spaces), etc.
34
+ */
35
+ export declare function printLineBar(text: string, indent?: number): void;