/**
 * Anthropic Messages API endpoints for ggml-llm/mlx-llm (EXPERIMENTAL)
 * Provides /anthropic-messages/v1/messages and /anthropic-messages/v1/messages/count_tokens endpoints
 *
 * Implementation based on llama.cpp PR #17570 and follow-up fixes:
 *   - https://github.com/ggml-org/llama.cpp/pull/17570 (initial Anthropic Messages support)
 *   - https://github.com/ggml-org/llama.cpp/pull/18551 (signature_delta + persistent block state)
 *   - https://github.com/ggml-org/llama.cpp/pull/20120 (preserve thinking blocks in conversion)
 *
 * Enable via TOML config: [anthropic_messages] enabled = true
 *
 * Note: This feature is experimental and may change in future versions.
 */
import type { EventStream, Config } from '../types';
/**
 * Stream an Anthropic Messages SSE response from the backend stream.
 *
 * Anthropic SSE event sequence:
 *   message_start
 *   [content_block_start (thinking)]   if reasoning observed
 *     content_block_delta (thinking_delta) ...
 *     content_block_delta (signature_delta)
 *   content_block_stop
 *   [content_block_start (text)]       if text observed
 *     content_block_delta (text_delta) ...
 *   content_block_stop
 *   [content_block_start (tool_use)] * for each tool call
 *     content_block_delta (input_json_delta) ...
 *   content_block_stop
 *   message_delta (stop_reason + usage)
 *   message_stop
 */
export declare function streamAnthropicMessage(completionStream: ReadableStream<EventStream>, messageId: string, modelId: string): AsyncGenerator<{
    readonly event: "content_block_start";
    readonly data: string;
} | {
    readonly event: "content_block_delta";
    readonly data: string;
} | {
    readonly event: "message_start";
    readonly data: string;
} | {
    readonly event: "error";
    readonly data: string;
} | {
    readonly event: "content_block_stop";
    readonly data: string;
} | {
    readonly event: "message_delta";
    readonly data: string;
} | {
    readonly event: "message_stop";
    readonly data: string;
}, void, unknown>;
export default function factory({ global: globalConfig }: Config): import("../types").ButtressApp;
