UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

31 lines 961 B
import { MarkdownString } from "../../utils/markdown.js"; /** * Log level types */ export type LogLevel = "info" | "warn" | "error" | "success"; /** * User-provided options for the log plugin */ export interface LogOptions { message: string | MarkdownString; level?: LogLevel; } export declare function logInfo(message: string | MarkdownString, options?: { allowBack?: boolean; }): Promise<void>; export declare function logWarn(message: string | MarkdownString, options?: { allowBack?: boolean; }): Promise<void>; export declare function logError(message: string | MarkdownString, options?: { allowBack?: boolean; }): Promise<void>; export declare function logSuccess(message: string | MarkdownString, options?: { allowBack?: boolean; }): Promise<void>; export declare const log: { info: typeof logInfo; warn: typeof logWarn; error: typeof logError; success: typeof logSuccess; }; //# sourceMappingURL=index.d.ts.map