UNPKG

cspell-lib

Version:

A library of useful functions used across various cspell tools.

16 lines 729 B
import type { RPCServerConfiguration, RPCServerOptions } from '@cspell/rpc'; import { RPCServer } from '@cspell/rpc'; import type { CSpellRPCApi } from './api.js'; export type { MessagePortLike } from '@cspell/rpc'; export type CSpellRPCServerOptions = RPCServerOptions; export type CSpellRPCServerConfig = RPCServerConfiguration; export declare class CSpellRPCServer extends RPCServer<CSpellRPCApi> { constructor(config: CSpellRPCServerConfig); } /** * Create a CSpell RPC Server that listens on the given port. * @param config - Server configuration. * @returns The CSpell RPC Server. */ export declare function createCSpellRPCServer(config: CSpellRPCServerConfig): CSpellRPCServer; //# sourceMappingURL=server.d.ts.map