export declare function encodeLspStdioFrame(jsonText: string): Buffer; export declare class LspStdioFrameReader { private buffer; private headerDone; private contentLength; private static readonly MAX_HEADER_BYTES; push(chunk: Buffer): string[]; reset(): void; } export declare function resolveTypeScriptLanguageServerEntry(): string; export declare function resolveTsserverPath(): string; export interface LspProcessBridgeCallbacks { onMessage: (message: unknown) => void; onStderr?: (chunk: string) => void; onExit?: (code: number | null, signal: NodeJS.Signals | null) => void; onError?: (error: Error) => void; } export declare class LspProcessBridge { readonly callbacks: LspProcessBridgeCallbacks; readonly workspacePath: string; readonly language: string; private child; private readonly reader; private disposed; constructor(options: { workspacePath: string; language: string; }, callbacks: LspProcessBridgeCallbacks); get running(): boolean; start(): void; send(message: unknown): void; dispose(): void; }