UNPKG

typescript

Version:

TypeScript is a language for application scale JavaScript development

30 lines 1.35 kB
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