import { CancellationToken } from "../../../base/common/cancellation.js"; import { Disposable } from "../../../base/common/lifecycle.js"; import { URI } from "../../../base/common/uri.js"; import { IFileService } from "../../files/common/files.service.js"; import { ILogService } from "../../log/common/log.service.js"; import { IRequestService } from "../../request/common/request.service.js"; import { IGalleryMcpServer, IMcpGalleryQueryPage, IMcpGalleryQueryPageOptions, IMcpGalleryServerResolveResult, IQueryOptions } from "./mcpManagement.js"; import { IMcpGalleryService } from "./mcpManagement.service.js"; import { IMcpGalleryManifest } from "./mcpGalleryManifest.js"; import { IMcpGalleryManifestService } from "./mcpGalleryManifest.service.js"; import { IIterativePager } from "../../../base/common/paging.js"; export declare class UnsupportedMcpGalleryPackageError extends Error { readonly repositoryUrl: URI | undefined; constructor(repositoryUrl: URI | undefined); } export declare class McpGalleryServerUrlError extends Error { constructor(); } export declare function getMcpGalleryServerCardUrl(server: Pick, manifest: IMcpGalleryManifest): string | undefined; /** Reads the configuration and identity using the same schema adapters as Gallery discovery. */ export declare function parseMcpGalleryServerConfiguration(data: unknown): Pick | undefined; /** * The registry rejected a continuation cursor that it previously issued. */ export declare class McpGalleryInvalidCursorError extends Error { constructor(); } export declare class McpGalleryService extends Disposable implements IMcpGalleryService { private readonly requestService; private readonly fileService; private readonly logService; private readonly mcpGalleryManifestService; _serviceBrand: undefined; private galleryMcpServerDataSerializers; private readonly rateLimits; constructor(requestService: IRequestService, fileService: IFileService, logService: ILogService, mcpGalleryManifestService: IMcpGalleryManifestService); isEnabled(): boolean; queryPage(options: IMcpGalleryQueryPageOptions, token: CancellationToken, galleryManifest?: IMcpGalleryManifest): Promise; query(options?: IQueryOptions, token?: CancellationToken, manifest?: IMcpGalleryManifest): Promise>; getMcpServersFromGallery(infos: { name: string; id?: string; }[], manifest?: IMcpGalleryManifest): Promise; resolveMcpServersFromGallery(infos: { name: string; id?: string; }[], manifest?: IMcpGalleryManifest): Promise>; private getMcpServerByName; getReadme(gallery: IGalleryMcpServer, token: CancellationToken): Promise; private toGalleryMcpServer; private queryGalleryMcpServers; private createRateLimitError; private queryRawGalleryMcpServers; getMcpServer(mcpServerUrl: string, mcpGalleryManifest?: IMcpGalleryManifest | null, token?: CancellationToken): Promise; private serializeMcpServer; private serializeMcpServersResult; private getSerializer; private getWebUrl; private getPublisherUrl; private getMcpGalleryUrl; }