import { IQwenpawChatOptions, IQwenpawServerConfig, IQwenpawUploadResult } from './qwenpaw.type'; export declare class QwenpawConfigError extends Error { } export declare class QwenpawUpstreamError extends Error { readonly status: number; constructor(status: number, message: string); } /** Normalize client errors into an H3 error for the calling route. */ export declare const postConsoleChatError: (error: unknown) => Error; /** POST /api/console/chat — resolves to the upstream Response as-is so * the route can stream the body through without re-buffering. */ export declare const qwenpawChat: (options: IQwenpawChatOptions) => Promise; /** POST /api/console/upload — multipart forward. The file lands in the * agent workspace's media/ dir; the response `url` is the server path * referenced by file items in the chat body. */ export declare const qwenpawUpload: (options: { config: IQwenpawServerConfig; target: { baseUrl: string; agentId: string; }; /** Multipart body with the `file` part — built by the caller route. */ form: FormData; signal?: AbortSignal; timeoutMs?: number; }) => Promise; /** POST /api/console/chat/stop?chat_id=… — asks the QwenPaw server to * abort the in-flight run for one session. Returns whether a run was * actually stopped (false when the session has nothing running). */ export declare const qwenpawStop: (options: { config: IQwenpawServerConfig; target: { baseUrl: string; agentId: string; }; sessionId: string; signal?: AbortSignal; timeoutMs?: number; }) => Promise<{ stopped: boolean; }>; //# sourceMappingURL=client.d.ts.map