Files
portfolio2023/node_modules/@poppinss/cliui/build/index.d.ts
T
2023-11-24 22:35:41 +01:00

63 lines
1.9 KiB
TypeScript

/**
* Is terminal interactive or not. The code is copied from
* https://github.com/sindresorhus/is-interactive/blob/master/index.js.
*
* Yes, we can install it as a dependency, but decided to copy/paste 4
* lines. NO STRONG REASONS BEHIND IT
*/
export declare const isInteractive: boolean;
/**
* Whether or not colors are enabled. They are enabled by default,
* unless the terminal doesn't support color. Also "FORCE_COLOR"
* env variable enables them forcefully.
*/
export declare const supportsColors: boolean;
/**
* The renderer used in the testing mode. One can access it to listen
* for the log messages. Also, the memory renderer only works when
* the "CLI_UI_IS_TESTING" flag is set
*/
export declare const testingRenderer: import("./src/Renderer/Memory").MemoryRenderer;
/**
* Console renderer outputs to the console. We do not export it, since one
* cannot do much by having an access to it.
*/
export declare const consoleRenderer: import("./src/Renderer/Console").ConsoleRenderer;
/**
* Logger
*/
export declare const logger: import("./src/Logger").Logger;
/**
* Icons
*/
export declare const icons: {
tick: string;
cross: string;
bullet: string;
nodejs: string;
pointer: string;
info: string;
warning: string;
squareSmallFilled: string;
};
/**
* Reference to the instructions block to render a set of lines inside
* a box.
*/
export declare const instructions: () => import("./src/Instructions").Instructions;
/**
* Similar to instructions. But the lines are not prefix with a pointer `>`
*/
export declare const sticker: () => import("./src/Instructions").Instructions;
/**
* Initiates a group of tasks
*/
export declare const tasks: {
(): import("./src/Task/Manager").TaskManager;
verbose(): import("./src/Task/Manager").TaskManager;
};
/**
* Instantiate a new table
*/
export declare const table: () => import("./src/Table").Table;