research-cli
Version:
AI-powered research assistant with web search capabilities and beautiful terminal UI
61 lines • 2.29 kB
TypeScript
/**
* Message formatters for research-cli
* Provides consistent, professional formatting for all output types
*/
export declare class MessageFormatter {
success(message: string): string;
error(message: string): string;
warning(message: string): string;
info(message: string): string;
heading(text: string): string;
subheading(text: string): string;
bullet(text: string): string;
numberedItem(number: number, text: string): string;
code(code: string): string;
command(command: string): string;
path(path: string): string;
link(text: string, url?: string): string;
keyValue(key: string, value: string): string;
loading(message: string): string;
progress(current: number, total: number, message?: string): string;
}
export declare class AuthFormatter extends MessageFormatter {
keyStatus(provider: string, hasKey: boolean): string;
providerHeading(provider: string): string;
instructions(text: string): string;
}
export declare class QueryFormatter extends MessageFormatter {
queryStart(provider: string, model: string): string;
toolUsage(toolName: string): string;
toolComplete(toolName: string): string;
usageStats(stats: {
input_tokens: number;
output_tokens: number;
reasoning_tokens?: number;
total_tokens: number;
}): string;
citation(index: number, title: string, url: string): string;
sourcesHeading(): string;
}
export declare class ConfigFormatter extends MessageFormatter {
configHeading(): string;
configItem(key: string, value: string): string;
placeholder(message: string): string;
}
export declare const format: {
success: (msg: string) => string;
error: (msg: string) => string;
warning: (msg: string) => string;
info: (msg: string) => string;
heading: (text: string) => string;
code: (code: string) => string;
command: (cmd: string) => string;
path: (path: string) => string;
link: (text: string, url?: string) => string;
kv: (key: string, value: string) => string;
};
export declare const auth: AuthFormatter;
export declare const query: QueryFormatter;
export declare const config: ConfigFormatter;
export declare const message: MessageFormatter;
//# sourceMappingURL=formatters.d.ts.map