import { t as NonInteractiveError } from "../NonInteractiveError-CSLT5y93.js";
import { n as colorizeJson, t as getTimer } from "../timer-Dwu2TIgB.js";
import boxen, { Boxes, CustomBorderStyle, Options as BoxenOptions, Spacing } from "boxen";
import logSymbols from "log-symbols";
import * as inquirer from "@inquirer/prompts";
import { Separator } from "@inquirer/prompts";
import { Options, Ora, PromiseOptions, Spinner as Spinner$1 } from "ora";
type LogFn = (message?: string) => void;
interface Flow {
  /** A copyable command belonging to the preceding action. */
  command(command: string): void;
  /** `│` — a blank rail line separating steps. */
  gap(): void;
  /** `◆` — an outcome the user should act on or remember. */
  highlight(text: string): void;
  /** `┌` — opening line of the story. */
  intro(text: string): void;
  /** `│  <text>` — a continuation line belonging to the previous step. */
  line(text: string): void;
  /** A copy-safe URL. Long URLs are never hard-wrapped. */
  link(url: string, options?: {
    label?: string;
    outro?: boolean;
  }): void;
  /** `●` — a step happening behind the scenes, or a tip. */
  note(text: string): void;
  /** `└` — closing line of the story. */
  outro(text: string): void;
  /** `◇` — a completed step or produced value. */
  result(text: string): void;
  /**
   * An in-flight step. Resolve it with `succeed(text)` (persists as a `◇` line) or `fail(text)`;
   * renders on stderr so machine-readable stdout is never corrupted.
   */
  spin(text: string): {
    fail(text: string): void;
    succeed(text: string): void;
  };
}
/** Create a {@link Flow} that writes rail lines through `log`. */
declare function createFlow(log: LogFn): Flow;
declare const checkbox: typeof inquirer.checkbox;
declare const confirm: typeof inquirer.confirm;
declare const editor: typeof inquirer.editor;
declare const expand: typeof inquirer.expand;
declare const input: typeof inquirer.input;
declare const number: typeof inquirer.number;
declare const password: typeof inquirer.password;
declare const rawlist: typeof inquirer.rawlist;
declare const search: typeof inquirer.search;
declare const select: typeof inquirer.select;
declare function spinner(options?: Options | string): Ora;
declare function spinnerPromise<T>(action: ((instance: Ora) => PromiseLike<T>) | PromiseLike<T>, options?: PromiseOptions<T> | string): Promise<T>;
type Spinner = Spinner$1;
type SpinnerInstance = Ora;
type SpinnerOptions = Options;
type SpinnerPromiseOptions<T> = PromiseOptions<T>;
export { type BoxenOptions, type Boxes, type CustomBorderStyle, type Flow, NonInteractiveError, Separator, type Spacing, type Spinner, type SpinnerInstance, type SpinnerOptions, type SpinnerPromiseOptions, boxen, checkbox, colorizeJson, confirm, createFlow, editor, expand, getTimer, input, logSymbols, number, password, rawlist, search, select, spinner, spinnerPromise };
//# sourceMappingURL=ux.d.ts.map