import { ApiPlaygroundResponseType } from './apiPlaygroundResponseType.js'; export type ApiPlaygroundStreamState = { done: boolean; aborted: boolean; interrupted: boolean; truncated: boolean; }; export type ApiPlaygroundResultType = { error: false; response: ApiPlaygroundResponseType; stream?: ApiPlaygroundStreamState; } | { error: true; errorMessage: string; };