llamaindex
Version:
<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>
8 lines (7 loc) • 529 B
TypeScript
import type { ImageType } from "@llamaindex/core/schema";
export declare const isAsyncIterable: (obj: unknown) => obj is AsyncIterable<unknown>;
export declare const isReadableStream: (obj: unknown) => obj is ReadableStream;
export declare const isIterable: (obj: unknown) => obj is Iterable<unknown>;
export declare function imageToString(input: ImageType): Promise<string>;
export declare function stringToImage(input: string): ImageType;
export declare function imageToDataUrl(input: ImageType | Uint8Array): Promise<string>;