import type { McpLogEntry, McpManagementApi, McpServerView } from './api.ts'; /** State rendered by the MCP settings section. */ export interface McpSettingsState { status: 'loading' | 'ready' | 'error'; error: string | undefined; servers: readonly McpServerView[]; selectedId: string | undefined; logs: readonly McpLogEntry[]; logCursor: number | undefined; } /** Polls the management API while the settings page is mounted. */ export declare class McpSettingsStore { private readonly api; private state; private listeners; private timer; /** * @param api - HTTP client for the local management API. */ constructor(api: McpManagementApi); /** @returns the current page snapshot. */ getSnapshot(): McpSettingsState; /** * @param listener - observer notified after state changes. * @returns a disposer. */ subscribe(listener: () => void): () => void; /** Begin immediate and approximately two-second refreshes. */ start(): void; /** Stop polling when the settings section unmounts. */ stop(): void; /** * @param id - server whose retained logs should be shown. */ select(id: string | undefined): void; /** Reload server views and the selected server's newer log entries. */ load(): Promise; private loadLogs; private publish; } //# sourceMappingURL=store.d.ts.map