/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// import type { RootFilterQuery, Types } from 'mongoose'; import type { MCPServerDocument } from '../types'; import type { MCPOptions } from 'librechat-data-provider'; export declare function createMCPServerMethods(mongoose: typeof import('mongoose')): { createMCPServer: (data: { config: MCPOptions; author: string | Types.ObjectId; }) => Promise; findMCPServerByServerName: (serverName: string) => Promise; findMCPServerByObjectId: (_id: string | Types.ObjectId) => Promise; findMCPServersByAuthor: (authorId: string | Types.ObjectId) => Promise; getListMCPServersByIds: ({ ids, otherParams, limit, after, }: { ids?: Types.ObjectId[] | undefined; otherParams?: RootFilterQuery | undefined; limit?: number | null | undefined; after?: string | null | undefined; }) => Promise<{ data: MCPServerDocument[]; has_more: boolean; after: string | null; }>; getListMCPServersByNames: ({ names }: { names: string[]; }) => Promise<{ data: MCPServerDocument[]; }>; updateMCPServer: (serverName: string, updateData: { config?: MCPOptions; }) => Promise; deleteMCPServer: (serverName: string) => Promise; }; export type MCPServerMethods = ReturnType;