import type { ZodType } from 'zod/v4'; export interface LocalChatJSONOptions { baseURL: string; model: string; system: string; user: string; schema: ZodType; /** Test seam; defaults to global fetch. */ transport?: typeof fetch; maxTokens?: number; /** * Phase 72: extra HTTP headers merged over the base `content-type` — e.g. an * `Authorization` bearer for a token-gated OpenAI-compatible proxy. Values are * never logged. */ headers?: Record; /** * Phase 73: invoked with mapped token usage whenever the endpoint returns a * usage block (OpenAI-compatible `prompt_tokens`/`completion_tokens`). Not * called when the endpoint omits usage. Last call wins across repair retries. */ onUsage?: (usage: { inputTokens: number; outputTokens: number; }) => void; /** * Phase 184: external abort signal — when it fires before the request * settles, `fetch` itself rejects with an `AbortError`. Omitted → today's * behavior is byte-identical. */ signal?: AbortSignal; /** Phase 184: trace id merged into the logger's child context, when set. */ traceId?: string; } export declare function localChatJSON(o: LocalChatJSONOptions): Promise; //# sourceMappingURL=local-client.d.ts.map