UNPKG

@brimdata/zealot

Version:

The Javascript Client for Zed Lakes

25 lines (24 loc) 897 B
import { JSOptions } from "../zed/values/types"; import { Channel } from "./channel"; import { Collector } from "../types"; export declare class ResultStream { resp: Response; private ctl; status: "idle" | "pending" | "error" | "aborted" | "success"; private currentChannelId; private channelsMap; private _promise?; constructor(resp: Response, ctl: AbortController); get body(): ReadableStream<Uint8Array> | null; get promise(): Promise<void> | undefined; get channels(): Channel[]; get shapes(): import("../zed").Type[]; get rows(): import("../zed/values/types").Value[]; channel(id?: number | undefined): Channel; js(opts?: JSOptions): Promise<any>; zed(): Promise<import("../zed/values/types").Value[]>; collect(collector: Collector): Promise<void> | undefined; abort(): void; private consume; private consumeLine; }