import { IncomingMessage, ServerResponse } from 'node:http';
import type { OwlCodaConfig } from '../config.js';
/**
 * Extract token-usage deltas from a single parsed Anthropic SSE event.
 *
 * Anthropic carries input + cache tokens in `message_start.message.usage` and
 * streams output in `message_delta.usage`. Pure so the streaming accumulator
 * (and tests) can rely on it; cache fields default to 0 for non-caching
 * providers / events without usage.
 */
export declare function extractAnthropicSseUsageDelta(parsed: unknown): {
    input: number;
    output: number;
    cacheRead: number;
    cacheCreation: number;
};
export declare function handleMessages(req: IncomingMessage, res: ServerResponse, config: OwlCodaConfig): Promise<void>;
