import { DSQLClient } from '../dsql/client.js'; import type { KernelEvent } from '../types.js'; export interface NodeEnvironmentOptions { /** Path to the Unix domain socket. Defaults to /tmp/designlint-kernel.sock */ socketPath?: string; /** Port for the HTTP fallback transport. Defaults to 7341. */ httpPort?: number; /** Timeout in milliseconds for the initial connection attempt. Defaults to 5000. */ connectTimeoutMs?: number; } /** * NodeEnvironment connects to a running DSR kernel from a Node.js process * (e.g. the design-lint CLI, LSP server, or MCP server). * * Connection strategy: * 1. Attempt Unix socket (low latency, same host) * 2. Fall back to HTTP if socket connection fails and httpPort is provided */ export declare class NodeEnvironment { #private; constructor(options?: NodeEnvironmentOptions); connect(): Promise; disconnect(): Promise; get dsql(): DSQLClient; onEvent(handler: (event: KernelEvent) => void): () => void; } //# sourceMappingURL=node.d.ts.map