import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { ResourceLoader } from '../utils/resourceLoader.js'; /** * Manager for handling MCP resources registration and access */ export declare class ResourceManager { private mcpServer; private resourceLoader; private metadataTypes; /** * Create a new ResourceManager * @param mcpServer The MCP server instance */ constructor(mcpServer: McpServer); /** * Initialize resources by loading metadata types */ initialize(): Promise; /** * Register all resource types */ registerAll(): void; /** * Register API specification resources */ private registerSpecResources; /** * Register code snippet resources */ private registerSnippetResources; /** * Register instruction resources */ private registerInstructResources; /** * Get all available resources for listing * @returns List of resource objects */ listResources(): Promise<{ uri: string; name: string; title: string; mimeType: string; }[]>; /** * Get the resource loader * @returns ResourceLoader instance */ getResourceLoader(): ResourceLoader; /** * Get the metadata types * @returns Array of metadata type strings */ getMetadataTypes(): string[]; /** * Read a resource by URI * This method is called by the MCP server's resources/read handler * @param uriString The resource URI to read * @returns Resource contents */ readResource(uriString: string): Promise<{ contents: Array<{ uri: string; text: string; mimeType?: string; }>; }>; /** * Read a spec resource */ private readSpecResource; /** * Read a snippet resource */ private readSnippetResource; /** * Read an instruct resource */ private readInstructResource; } //# sourceMappingURL=resourceManager.d.ts.map