import { McpServer } from '@modelcontextprotocol/server'; import { ResourceCatalog } from './resourceCatalog.js'; /** * Serves the `sn-spec://`, `sn-instruct://`, and `sn-snippet://` resources as * three SDK resource templates. The SDK owns `resources/list`, * `resources/templates/list` and `resources/read` (including the not-found * answer for a URI no template matches); this class only supplies listings and * reads and `completion/complete` suggestions from the shared catalog. */ export declare class ResourceManager { private readonly resourceCatalog; /** * @param resourceCatalog The shared index of bundled `res/` content */ constructor(resourceCatalog?: ResourceCatalog); /** Register the three resource templates on one server instance. */ registerOn(mcpServer: McpServer): void; /** Metadata types that have a resource of this kind, by prefix. */ private completeMetadataType; /** Snippet ids of the already-chosen metadata type, by prefix; none until a type is chosen. */ private completeSnippetId; /** Every concrete resource of one kind, for `resources/list`. */ private list; /** * Read one resource. A key missing from the catalog is not found (-32602); a * failed file read is logged and reaches the client as -32603 (the SDK's * answer for an error without a numeric code). */ private read; } //# sourceMappingURL=resourceManager.d.ts.map