import type { ServerResponse } from "node:http";
import { type StreamUnifiedChatRequestWithTools } from "../gen/aiserver/v1/aiserver_pb.js";
import type { Logger } from "../logger.js";
import type { ModelRegistry, RegisteredModel } from "../models/registry.js";
import type { OpenAIStreamOptions } from "../providers/openai.js";
export interface LocalChatDecision {
    model: RegisteredModel;
    request: StreamUnifiedChatRequestWithTools;
}
export declare function getLocalChatDecision(payload: Buffer, models: ModelRegistry): LocalChatDecision | undefined;
export declare function writeLocalChatResponse(response: ServerResponse, decision: LocalChatDecision, logger: Logger, options?: OpenAIStreamOptions): Promise<void>;
