@toolprint/hypertool-mcp
Version:
HyperTool MCP proxy server for routing requests between clients and multiple underlying MCP servers
116 lines • 4.39 kB
TypeScript
/**
* Custom console display output that also conditionally
* logs to the console and the logger where appropriate
*/
export declare const output: {
/**
* Get the console object for the output
* @returns The console object
*/
readonly console: Console;
readonly clearTerminal: () => void;
/**
* Display an unformatted message to the console and NEVER to the logger
* @param msg - The message to log
*/
readonly display: (msg: string) => void;
/**
* Display text on the same line without a newline
* @param msg - The message to display
*/
readonly displaySameLine: (msg: string) => void;
readonly displayTypewriter: (msg: string, options?: {
delayMs?: number;
byWord?: boolean;
}) => Promise<void>;
readonly displaySpaceBuffer: (numLines?: number) => void;
/**
* Display a separator to the console and NEVER to the logger
* @param length - The length of the separator
*/
readonly displaySeparator: (length?: number) => void;
/**
* Display a header to the console and NEVER to the logger
* @param msg - The message to log
*/
readonly displayHeader: (msg: string) => void;
readonly displaySubHeader: (msg: string) => void;
/**
* Display text formatted as a terminal instruction with a prompt symbol
* @param msg - The message to display as a terminal instruction
* @param copyToClipboard - Whether to copy the command to clipboard (default: false)
*/
readonly displayTerminalInstruction: (msg: string, copyToClipboard?: boolean) => void;
/**
* Display a block of text with a border, like a code block.
* @param code - The string to display as a code block.
*/
readonly displayCodeBlock: (code: string) => void;
/**
* Display an instruction to the console and NEVER to the logger
* @param msg - The message to log
*/
readonly displayInstruction: (msg: string, bright?: boolean) => void;
/**
* Displays subtle help context to the user
* @param msg - The message to log
*/
readonly displayHelpContext: (msg: string) => void;
/**
* Displays a link with a prefix
* @param prefix - The prefix to display
* @param link - The link to display
*/
readonly displayLinkWithPrefix: (prefix: string, link: string) => void;
/**
* Display an unformatted message to the console
* @param msg - The message to display
*/
readonly log: (msg: string) => void;
/**
* Display a formatted debug message to the console
* @param msg - The message to display
*/
readonly debug: (msg: string) => void;
/**
* Display a formatted info message to the console. General purpose messages for humans.
* @param msg - The message to display
*/
readonly info: (msg: string, lowPriority?: boolean) => void;
/**
* Display a formatted success message to the console
* @param msg - The message to display
*/
readonly success: (msg: string) => void;
/**
* Display a formatted warning message to the console
* @param msg - The message to display
*/
readonly warn: (msg: string) => void;
/**
* Display a formatted error message to the console
* @param msg - The message to display
*/
readonly error: (msg: string) => void;
};
/**
* Display the complete Toolprint brand banner with app name
* This is the canonical function that shows both Toolprint branding and app-specific banner
* @param appName - The name of the specific application (optional, defaults to APP_NAME)
* @param useStderr - Whether to output to stderr instead of stdout
*/
export declare function displayBanner(appName?: string): void;
/**
* Display a minimal banner for CLI help or quick starts
* @param appName - The name of the specific application
*/
export declare function displayMinimalBanner(appName?: string): void;
/**
* Display server startup banner with additional info
* @param appName - The name of the specific application
* @param transport - The transport type being used
* @param port - The port number (for HTTP transport)
* @param host - The host address (for HTTP transport)
*/
export declare function displayServerRuntimeInfo(transport: string, port?: number, host?: string): void;
//# sourceMappingURL=output.d.ts.map