/** * Terminal styling helpers used across all CLI commands. * * @docLink cli/dev-guide#helpers */ export declare const S: { brand: (s: string) => string; cmd: (s: string) => string; heading: (s: string) => string; bold: (s: string) => string; dim: (s: string) => string; ok: (s: string) => string; warn: (s: string) => string; err: (s: string) => string; label: (s: string) => string; rule: (w?: number) => string; }; /** * Fit a plain (ANSI-free) string into exactly `width` columns: truncate with a * trailing `…` when too long, pad with spaces when too short. Keeps fixed-width * columns from overflowing the row when a value (e.g. an asset name) is wider * than its budget. */ export declare function fitWidth(s: string, width: number): string; /** Color-code an asset kind string. */ export declare function kindColor(kind: string): string; /** * Widest kind label (`mcp-server`); the default kind-column width fits it so * long kinds don't shove the rest of the row out of alignment. */ export declare const KIND_COL_WIDTH = 10; /** * Color-code an asset kind string fit to exactly `width` columns — pads short * kinds, truncates over-long ones (via {@link fitWidth}) so the column can never * overflow and break row alignment. */ export declare function kindColorPad(kind: string, width?: number): string; /** Color-code a "kind:name" reference string. */ export declare function colorRef(ref: string): string; /** * Print a success line prefixed with a green check mark. * * @param msg - Message to display. * @docLink cli/dev-guide#helpers */ export declare function logOk(msg: string): void; /** * Print an error line prefixed with a red cross to stderr. * * @param msg - Message to display. * @docLink cli/dev-guide#helpers */ export declare function logErr(msg: string): void; /** * Print a warning line prefixed with a yellow exclamation mark. * * @param msg - Message to display. * @docLink cli/dev-guide#helpers */ export declare function logWarn(msg: string): void; /** * Print an info line prefixed with a dim dot. * * @param msg - Message to display. * @docLink cli/dev-guide#helpers */ export declare function logInfo(msg: string): void; /** * Bare asset name of a canonical soft-dep target ref (`@pub/name@ver` → `name`), * for compact rendering in `info` / `tree` / `why`. Delegates to the asset-manager * parser (the soft-dep read surface) so the two never diverge. */ export declare function bareSoftDepName(ref: string): string; /** * The report-only soft-dep hint line shared by the `add` no-TTY branch and the * `install` surface, so the two user-facing wordings can't drift. Appends a * runnable `skaile add` suffix only when the target has a parseable ref. */ export declare function formatSoftDepHint(edge: { from: string; to: string; toRef?: string; }): string; /** * Build the "Soft dependencies (inferred)" section for `skaile info`. Returns one * header line plus one line per soft-dep target, each marked `(soft)` to read * differently from a typed `requires`. Empty array when there are no soft deps, * so the caller prints nothing. */ export declare function formatSoftDepSection(targets: string[]): string[]; /** * Footer line previewing the soft deps that *adding* the highlighted asset would * reference (manage TUI). "references" + "not auto-added" makes clear the pull is * report-only. Empty string when there are no targets, so the caller clears. */ export declare function formatSoftDepAddPreview(name: string, targets: string[]): string; /** * Footer line previewing the soft deps that *removing* the highlighted asset * would orphan (manage TUI) — symmetric with {@link formatSoftDepAddPreview}. * Empty string when nothing would be orphaned, so the caller clears. */ export declare function formatSoftDepRemovePreview(name: string, targets: string[]): string; /** Format a Date as a human-readable relative time string (e.g. "5m ago"). */ export declare function formatRelativeTime(date: Date): string; //# sourceMappingURL=helpers.d.ts.map