import type { ServerResponse } from "node:http";
import type { Logger } from "../logger.js";
import type { ModelRegistry } from "../models/registry.js";
export type ModelResponseFormat = "connect" | "proto";
export declare function mergeAvailableModels(upstreamPayload: Buffer | undefined, models: ModelRegistry): Buffer;
export declare function mergeUsableModels(upstreamPayload: Buffer | undefined, models: ModelRegistry): Buffer;
export declare function mergeDefaultModelForCli(upstreamPayload: Buffer | undefined, models: ModelRegistry): Buffer;
export declare function mergeDefaultModel(upstreamPayload: Buffer | undefined, models: ModelRegistry): Buffer;
export declare function writeAvailableModelsResponse(response: ServerResponse, payload: Buffer, logger: Logger, format: ModelResponseFormat): void;
export declare function writeModelResponse(response: ServerResponse, payload: Buffer, logger: Logger, message: string, format: ModelResponseFormat): void;
