UNPKG

voyageai

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fvoyage-ai%2Ftypescript-sdk) [![npm shield](

23 lines (22 loc) 864 B
/// <reference types="node" /> import type { Readable, Writable } from "readable-stream"; import { EventCallback, StreamWrapper } from "./chooseStreamWrapper"; export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, Buffer> { private readableStream; private encoding; constructor(readableStream: Readable); on(event: string, callback: EventCallback): void; off(event: string, callback: EventCallback): void; pipe(dest: Writable): Writable; pipeTo(dest: Writable): Writable; unpipe(dest?: Writable): void; destroy(error?: Error): void; pause(): void; resume(): void; get isPaused(): boolean; read(): Promise<Buffer | undefined>; setEncoding(encoding?: string): void; text(): Promise<string>; json<T>(): Promise<T>; [Symbol.asyncIterator](): AsyncIterableIterator<Buffer>; }