import { OAuthTokenStorage } from '../oauth/store'; /** * Lấy access token còn hạn. Nếu sắp expire → refresh + save lại. */ export declare function getValidClaudeToken(account?: string): Promise; export interface ClaudeRequestInput { /** Path đầy đủ, vd `/v1/messages`. */ path: string; method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; body?: unknown; headers?: Record; account?: string; stream?: boolean; } export interface ClaudeResponse { status: number; headers: Record; body: unknown; errorType?: string; account: string; } /** * Non-streaming: gom toàn bộ response, parse JSON. Dùng cho `/v1/messages` * không stream và các endpoint metadata. */ export declare function callClaude(input: ClaudeRequestInput): Promise; /** * Streaming: trả async iterable yield SSE event text chunks. Caller chịu trách * nhiệm forward lên TOOL_STREAM event. */ export declare function streamClaude(input: ClaudeRequestInput): AsyncGenerator<{ chunk: string; }, { status: number; account: string; }, void>;