Files
memecoin-botV2/.pnpm-store/v10/files/16/8787ae369765a2f9e6bb2cce02aaf1f01e4f02fdd9e90b866b6c40b968df3b97d8ca2fffb44efd898690b4f0d72ec42fe83e50b1563b46973f6dd468aaf716

39 lines
1.6 KiB
Plaintext

import { type ClientOptions, type ClientSocketOptions, type ClientSpawnOptions } from "../options.ts";
import { TimingCollector, type TimingInfo } from "../timing.ts";
export type { ClientOptions, ClientSocketOptions, ClientSpawnOptions };
/**
* Client handles communication with the TypeScript API server
* over STDIO (spawned process) or a Unix domain socket using JSON-RPC.
*/
export declare class Client {
private socket;
private process;
private connection;
private options;
private connected;
private timing;
constructor(options: ClientOptions);
connect(): Promise<void>;
private connectViaSpawn;
private connectViaSocket;
private registerFSCallbacks;
apiRequest<T>(method: string, params?: unknown): Promise<T>;
apiRequestBinary(method: string, params?: unknown): Promise<Uint8Array | undefined>;
/**
* Returns the timing collector that per-node materialization is reported
* into, or undefined when timing collection is disabled. The returned
* collector is the same one folded into {@link getTimingInfo}, so
* materialization totals surface alongside request timings.
*/
getTimingCollector(): TimingCollector | undefined;
/**
* Returns a combined timing snapshot: client-measured round-trip and byte
* counts folded together with the server's own per-request processing time
* (fetched via a getServerTiming request) and estimated transport overhead.
*/
getTimingInfo(): Promise<TimingInfo>;
resetTimingInfo(): Promise<void>;
private fetchServerTiming;
close(): Promise<void>;
}
//# sourceMappingURL=client.d.ts.map