@stacksjs/clapp
Version:
A toolkit for building CLI prompts in TypeScript.
34 lines • 1.46 kB
TypeScript
import type { Readable, Writable } from 'node:stream';
export declare function isTTY(output: Writable): boolean;
export declare function symbol(state: State): string;
// Helper function to process markdown in any string
export declare function processMarkdown(text: string): string;
export declare const unicode: boolean;
export declare const isCI: () => boolean;
export declare const unicodeOr: (c: string, fallback: string) => string;
export declare const S_STEP_ACTIVE: string;
export declare const S_STEP_CANCEL: string;
export declare const S_STEP_ERROR: string;
export declare const S_STEP_SUBMIT: string;
export declare const S_BAR_START: string;
export declare const S_BAR: string;
export declare const S_BAR_END: string;
export declare const S_RADIO_ACTIVE: string;
export declare const S_RADIO_INACTIVE: string;
export declare const S_CHECKBOX_ACTIVE: string;
export declare const S_CHECKBOX_SELECTED: string;
export declare const S_CHECKBOX_INACTIVE: string;
export declare const S_PASSWORD_MASK: string;
export declare const S_BAR_H: string;
export declare const S_CORNER_TOP_RIGHT: string;
export declare const S_CONNECT_LEFT: string;
export declare const S_CORNER_BOTTOM_RIGHT: string;
export declare const S_INFO: string;
export declare const S_SUCCESS: string;
export declare const S_WARN: string;
export declare const S_ERROR: string;
export declare interface CommonOptions {
input?: Readable
output?: Writable
signal?: AbortSignal
}