import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class StreamResource extends APIResource { /** * Stop the message generation process for a specific stream ID. */ stop(params: StreamResourceStopParams, options?: RequestOptions): APIPromise; } export type StreamResourceStopResponse = { [key: string]: unknown; }; export interface StreamResourceStopParams { /** * Body param */ stream_id: string; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace StreamResource { export { type StreamResourceStopResponse as StreamResourceStopResponse, type StreamResourceStopParams as StreamResourceStopParams, }; } //# sourceMappingURL=stream.d.mts.map