UNPKG

react-native-integrate

Version:

Automate integration of additional code into React Native projects

21 lines (20 loc) 1.48 kB
import { ConfirmPromptArgs, MultiselectPromptArgs, OptionValue, SelectPromptArgs, TextPromptArgs } from './types/prompt.types'; export declare function log(msg: string): void; export declare function logSuccess(msg: string): void; export declare function logMessage(msg: string): void; export declare function logMessageGray(msg: string): void; export declare function logWarning(msg: string, noColor?: boolean): void; export declare function logInfo(msg: string): void; export declare function logError(msg: string, noColor?: boolean): void; export declare function logNote(msg: string, title?: string): void; export declare function logIntro(msg?: string): void; export declare function logOutro(msg?: string, error?: boolean): void; export declare function startSpinner(msg: string, onCancel?: (key: string) => void): void; export declare function updateSpinner(msg: string): void; export declare function stopSpinner(msg: string): void; export declare function multiselect(msg: string, args: MultiselectPromptArgs): Promise<OptionValue[]>; export declare function select(msg: string, args: SelectPromptArgs): Promise<OptionValue>; export declare function confirm(msg: string, args?: ConfirmPromptArgs): Promise<boolean>; export declare function text(msg: string, args?: TextPromptArgs): Promise<string>; export declare function summarize(code: string | null, maxLength?: number): string; export declare function getLastLine(code: string | null, maxLength?: number): string;