/** * Interface for MCP resources. * @template TParams - The type of parameters extracted from the URI * @template TContent - The type of content returned by the resource */ export interface Resource { /** * Gets the URI pattern for this resource. * @returns The URI pattern. */ getUriPattern(): string; /** * Gets the content of the resource. * @param params The resource parameters extracted from the URI. * @returns The resource content. */ getContent(params: TParams): Promise; } /** * Base class for MCP resources. */ export declare abstract class BaseResource implements Resource { /** * Gets the URI pattern for this resource. * @returns The URI pattern. */ getUriPattern(): string; /** * Gets the URI pattern for this resource. * @returns The URI pattern. */ protected abstract getResourceUriPattern(): string; /** * Gets the content of the resource. * @param params The resource parameters extracted from the URI. * @returns The resource content. */ getContent(params: TParams): Promise; /** * Gets the content of the resource. * @param params The resource parameters extracted from the URI. * @returns The resource content. */ protected abstract getResourceContent(params: TParams): Promise; }