import type { ORRequest, ORResponse, ORStreamEvent } from "../agent/types.js"; import { BaseClient } from "../client-base.js"; import type { RequestOptions } from "../types.js"; /** * Client for the OpenResponses endpoint. * * Provides two methods: * - `create()` — synchronous (stream: false), returns ORResponse * - `createStream()` — streaming (stream: true), yields ORStreamEvent */ export declare class OpenResponsesClient extends BaseClient { /** * Create a response (non-streaming). * Sends the request with `stream: false` and returns the complete ORResponse. */ create(request: ORRequest, options?: RequestOptions): Promise; /** * Create a streaming response. * Sends the request with `stream: true` and yields ORStreamEvent objects * parsed from the SSE stream. * * OpenResponses SSE format uses named event types: * ``` * event: response.output_text.delta * data: {"type":"response.output_text.delta","output_index":0,"delta":"Hello"} * ``` */ createStream(request: ORRequest, options?: RequestOptions): AsyncGenerator; }