import type { Prompt } from "@modelcontextprotocol/sdk/types.js"; export interface PromptsTabRef { focusSearch: () => void; blurSearch: () => void; } interface PromptsTabProps { prompts: Prompt[]; callPrompt: (name: string, args?: Record) => Promise; serverId: string; isConnected: boolean; refreshPrompts?: () => Promise; } /** * Render the Prompts tab UI for browsing, selecting, executing, saving, and inspecting prompts. * * The component manages prompt selection, argument state, execution results, saved prompts (persisted * to localStorage), keyboard navigation, responsive mobile/desktop layouts, RPC message viewing, * and exposes `focusSearch` / `blurSearch` via the forwarded ref. * * @param ref - Optional forwarded ref exposing `focusSearch` and `blurSearch` methods. * @param prompts - The list of available prompts to display. * @param callPrompt - Function invoked to execute a prompt by name with an arguments object. * @param serverId - Identifier for the current server; used for RPC scoping and telemetry. * @param isConnected - Whether the application is currently connected to the backend (controls execution availability). * @returns The PromptsTab UI element. */ export declare function PromptsTab({ ref, prompts, callPrompt, serverId, isConnected, refreshPrompts, }: PromptsTabProps & { ref?: React.RefObject; }): import("react/jsx-runtime").JSX.Element; export declare namespace PromptsTab { var displayName: string; } export {}; //# sourceMappingURL=PromptsTab.d.ts.map