import type { Context } from '@wrongstack/core/agent'; import type { Logger } from '@wrongstack/core/types'; import type { DocumentTracker } from '../document-tracker.js'; import type { LSPRegistry } from '../registry.js'; import type { LSPServer } from '../server/lsp-server.js'; import type { PlugLSPConfig } from '../types.js'; export interface ToolDeps { registry: LSPRegistry; tracker: DocumentTracker; cfg: PlugLSPConfig; log: Logger; } export declare function resolveInputPath(inputPath: string, ctx: Context): string; export declare function requireServer(registry: LSPRegistry, filePath: string, signal: AbortSignal): Promise; export declare function readDocumentContent(filePath: string, tracker: DocumentTracker): Promise; export declare function textDocumentPosition(uriPath: string, position: { line: number; character: number; }): { textDocument: { uri: string; }; position: { line: number; character: number; }; }; export declare function stringifyToolError(err: unknown): string; //# sourceMappingURL=shared.d.ts.map