import type { ShellProcess } from "@codesandbox/nodebox"; import * as rpc from "vscode-jsonrpc/node"; export declare class RPCReader implements rpc.RAL.ReadableStream { private shellProcess; constructor(shellProcess: ShellProcess); onClose(): rpc.Disposable; onData(listener: (data: Uint8Array) => void): rpc.Disposable; onEnd(): rpc.Disposable; onError(): rpc.Disposable; } export declare class RPCWriter implements rpc.RAL.WritableStream { private shellProcess; constructor(shellProcess: ShellProcess); write(msg: Uint8Array | string): Promise; end(): void; onClose(): rpc.Disposable; onEnd(): rpc.Disposable; onError(): rpc.Disposable; } export declare function createRpcConnection(shellProcess: ShellProcess): rpc.MessageConnection; export interface IPosition { line: number; character: number; } export interface IRange { start: IPosition; end: IPosition; } export declare function getFullRange(content: string): IRange; //# sourceMappingURL=utils.d.ts.map