import type { BaseAnthropic } from "../../client.js";
import type { RequestOptions } from "../../internal/request-options.js";
import { type ApiCallSpan } from "../../internal/tracing.js";
import type { MessageCountTokensParams, MessageCreateParams, MessageCreateParamsBase } from "../../resources/beta/messages/messages.js";
/**
 * The headers of a `messages.create` request. `create()` and `stream()` build them before they
 * start the span, so that what throws here throws while no span is open.
 */
export declare function messagesCreateHeaders(params: MessageCreateParamsBase, options: RequestOptions | undefined): import("../../internal/headers.js").NullableHeaders;
/**
 * Starts the call span of the request that a stream helper sends `body` with. The helper calls this
 * as it sends the request, so that what throws here fails the stream. It records the final message
 * on the span, which its `create()` call uses too.
 */
export declare function startMessagesStreamSpan(client: BaseAnthropic, body: MessageCreateParamsBase, options: RequestOptions | undefined): ApiCallSpan | undefined;
/**
 * Transform deprecated output_format to output_config.format
 * Returns a modified copy of the params without mutating the original
 */
export declare function transformOutputFormat<T extends MessageCreateParams | MessageCountTokensParams>(params: T): T;
//# sourceMappingURL=beta-messages-request.d.ts.map