import type { RequestContext } from './request-context.js'; interface RequestOptions { method?: 'GET' | 'POST'; body?: Record; useAuth?: 'brain-key' | 'jwt' | 'none'; /** * 可选:per-request 上下文。HTTP 多租户模式下必传。 * 未传时回退到模块级 config + 全局 conv-state(stdio 单租户 / tests)。 */ ctx?: RequestContext; } export declare function getConversationState(): string | null; export declare function setConversationState(s: string | null): void; /** * 把一份反馈结构(nudge / seed / proof)排入下一次出站请求。 * 一次性消费 — 注入后立即清空, 避免重复发送。 */ export declare function pushConversationFeedback(payload: unknown): void; export declare function _resetConversationState(): void; export declare class ApiError extends Error { status: number; envelope: unknown; body: unknown; constructor(message: string, status: number, envelope?: unknown, body?: unknown); } export declare function apiCall(path: string, options?: RequestOptions): Promise; export {}; //# sourceMappingURL=api-client.d.ts.map