import type { EventName, EventParams, EventResult } from './events/index.js'; /** * Get application data directory for storing socket files */ export declare function getAppDataDir(): string; /** * Generate socket path based on workspace path */ export declare function getSocketPath(workspacePath: string): string; /** * Get legacy application data directory (using tmpdir) */ export declare function getLegacyAppDataDir(): string; /** * Dispatcher class for sending events to VSCode extension via Unix Socket */ export declare class EventDispatcher { private workspacePath; private socketPath; private legacySocketPath; private requestTimeout; constructor(workspacePath: string, requestTimeout?: number); /** * Send event to VSCode extension and wait for response */ dispatch(eventName: T, params: EventParams): Promise>; /** * Check if error is a connection error (vs business logic error from VSCode extension) */ private isConnectionError; /** * Try to connect to a specific socket path */ private tryConnect; /** * Test connection to VSCode extension */ testConnection(): Promise; /** * Get workspace path */ getWorkspacePath(): string; /** * Get socket path */ getSocketPath(): string; } /** * Create a new event dispatcher instance */ export declare function createDispatcher(workspacePath: string, requestTimeout?: number): Promise; //# sourceMappingURL=dispatch.d.ts.map