Files
memecoin-botV2/.pnpm-store/v10/files/c1/836a39b571c3fae5ffa9ad61dec3f8163c15d38ac739f8373685f7823b8e0e048dc5ef06eb04b64d9b50113b63f65f49c958a143aa9cb1d4fe6c182b26a3b4

30 lines
1.3 KiB
Plaintext

import { type ClientOptions, type ClientSocketOptions, type ClientSpawnOptions } from "../options.ts";
import { TimingCollector, type TimingInfo } from "../timing.ts";
export type { ClientOptions, ClientSocketOptions, ClientSpawnOptions };
export declare class Client {
private channel;
private encoder;
private timing;
constructor(options: ClientOptions);
apiRequest<T>(method: string, params?: unknown): T;
apiRequestBinary(method: string, params?: unknown): Uint8Array | undefined;
echo(payload: string): string;
echoBinary(payload: Uint8Array): Uint8Array;
/**
* 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(): TimingInfo;
resetTimingInfo(): void;
/**
* 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;
private recordTiming;
close(): void;
}
//# sourceMappingURL=client.d.ts.map