UNPKG

@iflow-mcp/leetcode-mcp-server

Version:

MCP Server for LeetCode API (supports leetcode.com and leetcode.cn)

17 lines (16 loc) 893 B
import { LeetCodeBaseService } from "./leetcode-base-service.js"; /** * Factory class for creating LeetCode service instances based on the specified site. * This factory handles the creation of either Global or China LeetCode service implementations * and manages authentication credentials when provided. */ export declare class LeetCodeServiceFactory { /** * Creates and configures a LeetCode service instance based on the specified site and optional session credentials. * * @param site - The LeetCode API site to use: 'global' for international LeetCode or 'cn' for LeetCode China * @param sessionCookie - Optional session cookie string for authenticated API access * @returns A promise that resolves to a configured LeetCodeBaseService implementation */ static createService(site: string, sessionCookie?: string): Promise<LeetCodeBaseService>; }