export declare class JaegerApiError extends Error { readonly status: number | null; constructor(message: string, status?: number | null); } /** * Report whether a name is a syntactically valid Jaeger trace id. * * Checked before calling the API so a malformed id becomes ENOENT instead of * the API's 400 "invalid length for TraceID". */ export declare function isTraceId(value: string): boolean; export interface JaegerTransport { request(path: string, query?: Record): Promise; } export interface HttpJaegerTransportOptions { host?: string; timeout?: number; } export declare class HttpJaegerTransport implements JaegerTransport { protected readonly fetch: typeof fetch; private readonly host; private readonly timeoutSeconds; constructor(opts?: HttpJaegerTransportOptions); request(path: string, query?: Record): Promise; } export declare function fetchServices(transport: JaegerTransport): Promise; /** * List operations recorded for a service. * * An unknown service yields an empty list rather than an error, so callers * that need existence semantics must check the service list first. */ export declare function fetchOperations(transport: JaegerTransport, service: string): Promise[]>; export interface FetchTracesOptions { limit?: number; fromTimestamp?: string; toTimestamp?: string; } /** * Search traces for a service within an explicit time window. * * `service` is required by the API and `lookback` is ignored, so the window is * always sent as explicit microsecond bounds. */ export declare function fetchTraces(transport: JaegerTransport, service: string, opts?: FetchTracesOptions): Promise[]>; export declare function fetchTrace(transport: JaegerTransport, traceId: string): Promise>; //# sourceMappingURL=client.d.ts.map