@supernovaio/cli
Version:
Supernova.io Command Line Interface
34 lines • 1.59 kB
TypeScript
export declare function resolveFrameContentColumnWidth(input: {
minContentWidth?: number;
innerSidePadding: number;
columns?: number;
}): number;
export type Tone = "amber" | "blue" | "blueBold" | "blueDark" | "cyan" | "green" | "greenBold" | "yellow" | "yellowBold" | "gray" | "bold" | "none";
export type RenderPanelLineTone = (line: string, lineIndex: number) => Tone;
export type RenderFramedLinesOptions = {
minContentWidth?: number;
innerSidePadding?: number;
headerArt?: string[];
headerArtTone?: Tone;
lineTone?: RenderPanelLineTone;
};
export type RenderPanelOptions = {
lineTone?: RenderPanelLineTone;
minContentWidth?: number;
innerSidePadding?: number;
titleTone?: Tone;
headerArt?: string[];
headerArtTone?: Tone;
};
export declare function colorize(text: string, tone: Tone): string;
export declare function headline(text: string): string;
export declare function muted(text: string): string;
export declare function success(text: string): string;
export declare function warning(text: string): string;
export declare function emphasis(text: string): string;
export declare function renderStepHeader(title: string): string[];
export declare function formatFullSnapshotPathLink(snapshotRoot: string): string;
export declare function formatLocalPathLink(targetPath: string): string;
export declare function renderPanel(title: string, lines: string[], options?: RenderPanelOptions): string;
export declare function renderFramedLines(lines: string[], options?: RenderFramedLinesOptions): string;
//# sourceMappingURL=ui.d.ts.map