import { ID } from "./types-DUs3b5a3.cjs"; import { UIOptions, UIOptionsSchema } from "./index.browser-B55rTc1_.cjs"; import { UIMessage, UIMessageChunk } from "ai"; //#region src/agent/constants.d.ts /** * APIServerURLEnvironmentVariable is the environment variable * that contains the URL of the Blink API server. */ declare const APIServerURLEnvironmentVariable = "BLINK_API_URL"; //#endregion //#region src/agent/client/index.d.ts interface ClientOptions { readonly baseUrl: string; readonly headers?: Record; } type CapabilitiesResponse = Awaited>; /** * Client is a client for the Blink agent HTTP API. */ declare class Client { readonly baseUrl: string; private readonly client; constructor(options: ClientOptions); /** * chat starts chatting with the agent. */ chat(request: { id: ID; messages: UIMessage[]; }, options?: { signal?: AbortSignal; headers?: Record; }): Promise>; /** * capabilities returns the capabilities of the agent. * This is used to check if the agent supports requests and completions. */ capabilities(): Promise<{ ui: boolean; chat: boolean; request: boolean; error: boolean; }>; ui(request: { selectedOptions?: UIOptions; }, options?: { signal?: AbortSignal; }): Promise; /** * health simply returns a 200 response. * This is used to check if the agent is running. */ health(): Promise; private handleError; } declare const streamSSE: (resp: Response) => ReadableStream; //#endregion export { APIServerURLEnvironmentVariable, CapabilitiesResponse, Client, ClientOptions, streamSSE };