import { type AssistantMessage, type AssistantMessageEventStream, type SimpleStreamOptions } from '@earendil-works/pi-ai/compat'; type CloudUsageReport = { authoritative: boolean; totalInputTokens?: number; cacheRead?: number; cacheWrite?: number; resolvedModel?: string; }; export declare function getCloudUsageReport(message: AssistantMessage): CloudUsageReport | undefined; /** Preserve authoritative Cloud totals when an OpenAI-compatible SDK recomputes them. */ export declare function cloudWireUsage(options?: SimpleStreamOptions): { options: { fetch: typeof fetch; toolChoice?: import("@earendil-works/pi-ai/compat").ToolChoice; reasoning?: import("@earendil-works/pi-ai/compat").ThinkingLevel; deferred?: boolean | { window?: "15m" | "1h" | "24h"; }; thinkingBudgets?: import("@earendil-works/pi-ai/compat").ThinkingBudgets; onResponse?: (response: import("@earendil-works/pi-ai/compat").ProviderResponse, model: import("@earendil-works/pi-ai/compat").Model) => void | Promise; onProviderStreamEvent?: (data: unknown, model: import("@earendil-works/pi-ai/compat").Model) => void | Promise; temperature?: number; samplingParams?: import("@earendil-works/pi-ai/compat").SamplingParams; maxTokens?: number; transport?: import("@earendil-works/pi-ai/compat").Transport; cacheRetention?: import("@earendil-works/pi-ai/compat").CacheRetention; sessionId?: string; disableContinuation?: boolean; websocketConnectTimeoutMs?: number; metadata?: Record; signal?: AbortSignal; telemetry?: import("@earendil-works/pi-telemetry").TelemetrySpan; apiKey?: string; env?: import("@earendil-works/pi-ai/compat").ProviderEnv; onPayload?: ((payload: unknown, model: import("@earendil-works/pi-ai/compat").Model) => unknown | undefined | Promise) | undefined; headers?: import("@earendil-works/pi-ai/compat").ProviderHeaders; identity?: import("@earendil-works/pi-ai/compat").ClientIdentity; timeoutMs?: number; maxRetries?: number; maxRetryDelayMs?: number; }; apply: (message: AssistantMessage) => AssistantMessage; settle: () => Promise; wrap(source: AssistantMessageEventStream): AssistantMessageEventStream; }; export {};