research-cli
Version:
AI-powered research assistant with web search capabilities and beautiful terminal UI
59 lines • 2.27 kB
TypeScript
import type { Citation, UsageStats } from "../types.js";
import { type BoxConfig } from "./boxes.js";
/**
* Panel configuration for semantic content types
*/
export interface PanelConfig {
/** Whether to show the panel (useful for conditional rendering) */
show?: boolean;
/** Additional styling overrides */
style?: Partial<BoxConfig>;
}
/**
* Create a status panel for query start information
*/
export declare function createStatusPanel(provider: string, model: string, config?: PanelConfig): string;
/**
* Create a tool panel for tool usage information
*/
export declare function createToolPanel(toolName: string, status: "calling" | "completed", config?: PanelConfig): string;
/**
* Create an error panel for displaying errors
*/
export declare function createErrorPanel(message: string, code?: string, config?: PanelConfig): string;
/**
* Create a usage stats panel
*/
export declare function createUsageStatsPanel(usage: UsageStats, config?: PanelConfig): string;
/**
* Create a citations panel for displaying sources
*/
export declare function createCitationsPanel(citations: Citation[], config?: PanelConfig): string;
/**
* Create a progress panel (alternative to the current progress bar)
*/
export declare function createProgressPanel(message?: string, config?: PanelConfig): string;
/**
* Create a welcome/header panel for the CLI
*/
export declare function createWelcomePanel(title: string, subtitle?: string, config?: PanelConfig): string;
/**
* Create a summary panel for displaying key information
*/
export declare function createSummaryPanel(items: string[], title?: string, config?: PanelConfig): string;
/**
* Create a debug panel for development information
*/
export declare function createDebugPanel(data: Record<string, unknown>, config?: PanelConfig): string;
/**
* Create a notification panel for important messages
*/
export declare function createNotificationPanel(message: string, type?: "info" | "success" | "warning" | "error", config?: PanelConfig): string;
/**
* Create a help panel for displaying usage instructions
*/
export declare function createHelpPanel(commands: Array<{
command: string;
description: string;
}>, config?: PanelConfig): string;
//# sourceMappingURL=panels.d.ts.map