import { fetch, Headers, type FormData } from "undici"; import { Flow, type Tweaks } from "./flow.js"; import { Logs } from "./logs.js"; import { Files } from "./files.js"; export interface LangflowClientOptions { baseUrl?: string; langflowId?: string; apiKey?: string; fetch?: typeof fetch; defaultHeaders?: Headers; } export interface RequestOptions { path: string; method: string; query?: Record; body?: string | FormData; headers: Headers | Record; signal?: AbortSignal; } export declare class LangflowClient { #private; baseUrl: string; basePath: string; langflowId?: string; apiKey?: string; fetch: typeof fetch; defaultHeaders: Headers; logs: Logs; files: Files; constructor(opts: LangflowClientOptions); flow(flowId: string, tweaks?: Tweaks): Flow; request(options: RequestOptions): Promise; stream(options: RequestOptions): Promise>; }