import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { type Uploadable } from "../core/uploads.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class SaveMessage extends APIResource { /** * Save messages to the chat history storage for a specific conversation. */ create(params: SaveMessageCreateParams, options?: RequestOptions): APIPromise; } export type SaveMessageCreateResponse = { [key: string]: unknown; }; export interface SaveMessageCreateParams { /** * Body param */ conversation_id: string; /** * Body param */ message_list: string; /** * Body param */ user_id: string; /** * Body param */ files?: Array; /** * Body param */ metadata?: string | null; /** * 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 SaveMessage { export { type SaveMessageCreateResponse as SaveMessageCreateResponse, type SaveMessageCreateParams as SaveMessageCreateParams, }; } //# sourceMappingURL=save-message.d.ts.map