Files
memecoin-botV2/.pnpm-store/v10/files/b0/cae990937be10f911aa0348b1d8c40e3fd0adf8198db8ea915ec28c4539ae0e63b136619dc6c9769eafb72f840202633611403986b52424cf8b87dd0e4204c

32 lines
1.3 KiB
Plaintext

/**
* Shared utilities for the TypeScript API client.
*/
import type { FileSystem } from "./fs.ts";
export interface ClientSocketOptions {
/** Path to the Unix domain socket or Windows named pipe for API communication */
pipe: string;
}
export interface ClientSpawnOptions {
/** Path to the tsgo executable. Defaults to the bundled tsgo binary. */
tsserverPath?: string;
/** Current working directory */
cwd?: string;
/** Virtual filesystem callbacks */
fs?: FileSystem;
/**
* When true, collect timing information for each request. The client
* measures round-trip latency and bytes sent/received, and the server
* measures its own per-request processing time; both are combined (along
* with an estimated transport overhead) in the snapshot returned by
* {@link API.getTimingInfo}.
*/
collectTiming?: boolean;
}
export type ClientOptions = ClientSocketOptions | ClientSpawnOptions;
export declare function isSpawnOptions(options: ClientOptions): options is ClientSpawnOptions;
export declare function resolveExePath(options: ClientSpawnOptions): string;
export interface LSPConnectionOptions extends ClientSocketOptions {
}
export interface APIOptions extends ClientSpawnOptions {
}
//# sourceMappingURL=options.d.ts.map