/** * Shared Types and Helper Functions * * Common response formatters, error helpers, and shared types * used across all modules. */ export interface ToolContent { type: 'text'; text: string; } export interface ToolResponse { content: ToolContent[]; isError?: boolean; } /** * Create a successful JSON response for an MCP tool. */ export declare function jsonResponse(data: Record): ToolResponse; /** * Create a plain text response for an MCP tool. */ export declare function textResponse(text: string): ToolResponse; /** * Create an error response for an MCP tool. */ export declare function errorResponse(message: string, details?: string): ToolResponse; /** * Type for module registration functions. * Each module exports a function that registers its tools on the McpServer. */ export type ModuleRegistrar = (server: McpServerLike) => void; /** * Minimal McpServer interface for module registration. * Avoids tight coupling to the SDK's full type. */ export interface McpServerLike { tool(name: string, description: string, schema: Record, handler: (args: Record) => Promise): void; } export declare const MODULE_PREFIXES: { readonly email: "email_"; readonly calendar: "calendar_"; readonly messaging: "channel_"; readonly search: "search_"; readonly image: "image_"; readonly system: "suite_"; }; export type ModuleName = keyof typeof MODULE_PREFIXES; //# sourceMappingURL=types.d.ts.map