export { dashboardState, DashboardStateManager } from './state.js'; export type { CommandName, CommandUsage } from './state.js'; export { sseManager, SSEManager } from './events.js'; export { startServer, findAvailablePort, isPortAvailable, type DashboardServer } from './server.js'; export type { IndexProgress } from '../search/indexer.js'; import { type DashboardServer } from './server.js'; import type { CodeIndexer } from '../search/indexer.js'; import type { GlanceyConfig } from '../config.js'; export interface DashboardOptions { /** Port to use (default: auto-discover from 24300) */ port?: number; /** The indexer instance to share with the dashboard */ indexer?: CodeIndexer; /** The configuration to display */ config?: GlanceyConfig; /** The project path */ projectPath?: string; /** Package version to display */ version?: string; } /** * DashboardManager - Encapsulates dashboard server state for testability. * * This class allows creating isolated instances for testing while maintaining * backward compatibility through the default instance and module-level functions. */ export declare class DashboardManager { private serverInstance; /** * Start the dashboard server. * Returns the server instance with URL and stop function. */ start(options?: DashboardOptions): Promise; /** * Stop the dashboard server. */ stop(): Promise; /** * Check if the dashboard is running. */ isRunning(): boolean; /** * Get the dashboard URL if running. */ getUrl(): string | null; /** * Get the current server instance (for testing). */ getServerInstance(): DashboardServer | null; } export declare const defaultDashboardManager: DashboardManager; /** * Start the dashboard server. * Returns the server instance with URL and stop function. */ export declare function startDashboard(options?: DashboardOptions): Promise; /** * Stop the dashboard server. */ export declare function stopDashboard(): Promise; /** * Check if the dashboard is running. */ export declare function isDashboardRunning(): boolean; /** * Get the dashboard URL if running. */ export declare function getDashboardUrl(): string | null; //# sourceMappingURL=index.d.ts.map