import type { Writable } from "node:stream";
import type { ChannelSetupLog } from "./channel-setup-prompter.js";
import { type PromptColors } from "./prompt-ui.js";
interface PromptOutput extends Writable {
    readonly isTTY?: boolean;
    readonly columns?: number;
}
/**
 * A running spinner anchored to the rail. Call {@link RailSpinner.stop}
 * once the awaited work settles to remove it; the call is idempotent.
 */
export interface RailSpinner {
    /** Stops the animation and erases the spinner so the next output starts clean. */
    stop(): void;
}
/**
 * Spinner frames cycled by {@link RailLog.spinner}: a single braille cell that
 * "breathes". Each frame lights or clears exactly one dot, walking between a
 * sparse and a near-full cell and back. The walk never reaches the solid cell
 * and the sequence is a closed loop (every step, including the wrap from the
 * last frame to the first, changes by one dot), so it reads as continuous
 * motion instead of something that fills up and stops. Frozen as a static
 * sequence so the frames stay deterministic and testable; the invariant is
 * checked in the colocated test.
 */
export declare const SPINNER_FRAMES: readonly ["⠨", "⠸", "⢸", "⢺", "⢾", "⢿", "⢾", "⢼", "⢸", "⠸", "⠨", "⠪", "⠮", "⠯", "⢯", "⢿", "⠿", "⠾", "⠺", "⠪"];
/** A rail log whose current command detail can be cleared before the next prompt is drawn. */
export interface RailLog extends ChannelSetupLog {
    section?(title: string, lines: readonly string[]): void;
    /**
     * Shows a section-like spinner (leading rail + a breathing braille cell +
     * message) while a network or other async wait is in flight, then clears it
     * on {@link RailSpinner.stop} so it leaves no trace. Non-TTY output prints the
     * message once and the returned `stop` is a no-op.
     */
    spinner(message: string): RailSpinner;
    settle(): void;
}
/** Options for the shared live rail log used by both Eve onboarding entry points. */
export interface RailLogOptions {
    colors: PromptColors;
    output: PromptOutput;
}
/**
 * Renders setup status rows and keeps child command noise inside one live detail row.
 *
 * A TTY sees the latest dim command line below the current status while the command
 * runs. Successful progression removes that transient detail. Warnings and errors
 * commit the captured command transcript before the diagnostic. Non-TTY output is
 * append-only because cursor redraw sequences would corrupt captured logs.
 */
export declare function createRailLog(options: RailLogOptions): RailLog;
export {};
