import type { IMastraLogger } from '@mastra/core/logger'; import type { Server } from '@modelcontextprotocol/sdk/server/index.js'; interface ServerPromptActionsDependencies { getLogger: () => IMastraLogger; getSdkServer: () => Server; clearDefinedPrompts: () => void; } /** * Server-side prompt actions for notifying clients about prompt changes. * * This class provides methods for MCP servers to notify connected clients when * the list of available prompts changes. */ export declare class ServerPromptActions { private readonly getLogger; private readonly getSdkServer; private readonly clearDefinedPrompts; /** * @internal */ constructor(dependencies: ServerPromptActionsDependencies); /** * Notifies clients that the overall list of available prompts has changed. * * This clears the internal prompt cache and sends a `notifications/prompts/list_changed` * message to all clients, prompting them to re-fetch the prompt list. * * @throws {MastraError} If sending the notification fails * * @example * ```typescript * // After adding or modifying prompts * await server.prompts.notifyListChanged(); * ``` */ notifyListChanged(): Promise; } export {}; //# sourceMappingURL=promptActions.d.ts.map