import type { ChatMessageMetadata, ChatMessageMetadataUsage, ChatUiMessageChunk, ChildRunAudit, ChildRunAuditToolCall, ChildRunAuditToolResult } from "./protocol.js"; import type { InferSchema } from "../extensions/schema/index.js"; /** File extensions that chat uploads can inline as text. */ export declare const textFileExtensions: readonly [".txt", ".md", ".json", ".xml", ".html", ".css", ".js", ".mjs", ".cjs", ".ts", ".mts", ".cts", ".jsx", ".tsx", ".py", ".java", ".cpp", ".c", ".h", ".php", ".rb", ".go", ".rs", ".swift", ".kt", ".scala", ".sh", ".yaml", ".yml", ".toml", ".ini", ".cfg", ".conf", ".sql", ".csv"]; /** Image media types that chat uploads can display natively. */ export declare const imageFileTypes: readonly ["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp", "image/bmp", "image/tiff"]; /** Public API contract for chat UI message role. */ export type ChatUiMessageRole = "system" | "user" | "assistant" | "tool"; /** Public API contract for chat text UI part. */ export type ChatTextUiPart = { type: "text"; text: string; }; /** Public API contract for chat reasoning UI part. */ export type ChatReasoningUiPart = { type: "reasoning"; text: string; signature?: string; redactedData?: string; }; /** Public API contract for chat step start UI part. */ export type ChatStepStartUiPart = { type: "step-start"; }; /** Public API contract for chat source URL UI part. */ export type ChatSourceUrlUiPart = { type: "source-url"; sourceId: string; url: string; title?: string; }; /** Public API contract for chat source document UI part. */ export type ChatSourceDocumentUiPart = { type: "source-document"; sourceId: string; title: string; mediaType?: string; filename?: string; }; /** Public API contract for chat file UI part. */ export type ChatFileUiPart = { type: "file"; mediaType: string; url: string; filename?: string; size?: number; }; /** File UI part enriched with upload metadata. */ export type FileUIPartWithUpload = ChatFileUiPart & { uploadId?: string; uploadPath?: string; }; /** State for chat tool part. */ export type ChatToolPartState = "pending" | "input-streaming" | "input-available" | "approval-requested" | "approval-responded" | "output-available" | "output-error" | "output-denied" | "error" | "completed"; /** Public API contract for chat tool part base. */ type ChatToolPartBase = { toolCallId: string; input: unknown; state: ChatToolPartState; title?: string; providerExecuted?: boolean; callProviderMetadata?: Record; output?: unknown; errorText?: string; approval?: { id: string; }; }; /** Tool UI part for a runtime-selected tool name. */ export type ChatDynamicToolUiPart = ChatToolPartBase & { type: "dynamic-tool"; toolName: string; }; /** Tool UI part keyed by a static tool type. */ export type ChatNamedToolUiPart = ChatToolPartBase & { type: `tool-${string}` | "tool_call"; toolName?: string; }; /** Chat UI part that carries custom data chunks. */ export type ChatDataUiPart = { type: `data-${string}`; data: unknown; }; /** Public API contract for chat UI message part. */ export type ChatUiMessagePart = ChatTextUiPart | ChatReasoningUiPart | ChatStepStartUiPart | ChatSourceUrlUiPart | ChatSourceDocumentUiPart | FileUIPartWithUpload | ChatDynamicToolUiPart | ChatNamedToolUiPart | ChatDataUiPart; /** Message shape for chat UI. */ export interface ChatUiMessage { id: string; role: ChatUiMessageRole; parts: ChatUiMessagePart[]; metadata?: TMessageMetadata; } /** JSON-compatible value used in chat tool output. */ type JsonValue = string | number | boolean | null | JsonValue[] | { [key: string]: JsonValue; }; /** Provider model message part that carries text. */ export type ChatModelTextPart = { type: "text"; text: string; }; /** Provider model message part that carries reasoning text. */ export type ChatModelReasoningPart = { type: "reasoning"; text?: string; signature?: string; redactedData?: string; }; /** Public API contract for chat model file part. */ export type ChatModelFilePart = { type: "file" | "image"; mediaType: string; data?: string; url?: string; filename?: string; uploadId?: string; uploadPath?: string; }; /** Provider model message part that carries a tool call. */ export type ChatToolCallPart = { type: "tool-call"; toolCallId: string; toolName: string; input: Record; providerExecuted?: boolean; }; /** Output from chat tool result. */ export type ChatToolResultOutput = { type: "json"; value: JsonValue; } | { type: "text"; value: string; } | { type: "error-text"; value: string; }; /** Provider model message part that carries a tool result. */ export type ChatToolResultPart = { type: "tool-result"; toolCallId: string; toolName: string; output: ChatToolResultOutput; providerOptions?: unknown; }; /** Public API contract for chat user content part. */ export type ChatUserContentPart = ChatModelTextPart | ChatModelFilePart; /** Public API contract for chat assistant content part. */ export type ChatAssistantContentPart = ChatModelTextPart | ChatModelReasoningPart | ChatModelFilePart | ChatToolCallPart | ChatToolResultPart; /** Message shape for chat system. */ export type ChatSystemMessage = { role: "system"; content: string; providerOptions?: Record; }; /** Message shape for chat user. */ export type ChatUserMessage = { role: "user"; content: string | ChatUserContentPart[]; }; /** Message shape for chat assistant. */ export type ChatAssistantMessage = { role: "assistant"; content: string | ChatAssistantContentPart[]; }; /** Message shape for chat tool. */ export type ChatToolMessage = { role: "tool"; content: ChatToolResultPart[]; }; /** Message shape for provider model. */ export type ProviderModelMessage = ChatSystemMessage | ChatUserMessage | ChatAssistantMessage | ChatToolMessage; /** Public API contract for durable root run descriptor. */ export interface DurableRootRunDescriptor { runId: string; messageId: string; latestEventId?: number; latestExternalEventSequence?: number; parentConversationId?: string; parentRunId?: string; spawnedFromToolCallId?: string; } /** Public API contract for chat runtime overrides. */ export interface ChatRuntimeOverrides { allowedTools?: string[]; thinking?: false | number; maxSteps?: number; maxOutputTokens?: number; } /** Public API contract for project file. */ export interface ProjectFile { path: string; content: string; } /** Public API contract for project file list item. */ export interface ProjectFileListItem { id: string; path: string; type: string; size: number; updated_at: string; } /** Public API contract for uploaded file reference. */ export interface UploadedFileReference { name: string; mediaType: string; uploadId?: string; path?: string; url?: string; size?: number; } /** Zod schema for get chat request context. */ export declare const getChatRequestContextSchema: () => import("../internal-agents/schema.js").Schema; projectId: import("../internal-agents/schema.js").Schema; projectSlug: import("../internal-agents/schema.js").Schema; branchId: import("../internal-agents/schema.js").Schema; runtimeTargetKind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null | undefined>; runtimeTargetEnvironmentId: import("../internal-agents/schema.js").Schema; environmentContext: import("../internal-agents/schema.js").Schema; }>>; /** Context for chat request. */ export type ChatRequestContext = InferSchema>; /** Zod schema for get message metadata. */ export declare const getMessageMetadataSchema: () => import("../internal-agents/schema.js").Schema; isStopped: import("../internal-agents/schema.js").Schema; isCompleted: import("../internal-agents/schema.js").Schema; completedAt: import("../internal-agents/schema.js").Schema; agentId: import("../internal-agents/schema.js").Schema; agentName: import("../internal-agents/schema.js").Schema; agentAvatarUrl: import("../internal-agents/schema.js").Schema; conversationId: import("../internal-agents/schema.js").Schema; modelId: import("../internal-agents/schema.js").Schema; runId: import("../internal-agents/schema.js").Schema; streamingMessageId: import("../internal-agents/schema.js").Schema; childRunAudit: import("../internal-agents/schema.js").Schema; description: import("../internal-agents/schema.js").Schema; steps: import("../internal-agents/schema.js").Schema; durationMs: import("../internal-agents/schema.js").Schema; toolCalls: import("../internal-agents/schema.js").Schema; toolCallId: import("../internal-agents/schema.js").Schema; input: import("../internal-agents/schema.js").Schema; }>[] | undefined>; toolResults: import("../internal-agents/schema.js").Schema; toolCallId: import("../internal-agents/schema.js").Schema; input: import("../internal-agents/schema.js").Schema; output: import("../internal-agents/schema.js").Schema; }>[] | undefined>; terminalErrorCode: import("../internal-agents/schema.js").Schema; terminalErrorMessage: import("../internal-agents/schema.js").Schema; }> | undefined>; usage: import("../internal-agents/schema.js").Schema; outputTokens: import("../internal-agents/schema.js").Schema; reasoningTokens: import("../internal-agents/schema.js").Schema; cachedInputTokens: import("../internal-agents/schema.js").Schema; cacheCreationInputTokens: import("../internal-agents/schema.js").Schema; cacheReadInputTokens: import("../internal-agents/schema.js").Schema; }> | undefined>; billableInputTokens: import("../internal-agents/schema.js").Schema; billableOutputTokens: import("../internal-agents/schema.js").Schema; costUsd: import("../internal-agents/schema.js").Schema; providerInputCostUsd: import("../internal-agents/schema.js").Schema; providerOutputCostUsd: import("../internal-agents/schema.js").Schema; providerCostUsd: import("../internal-agents/schema.js").Schema; veryfrontInputChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontOutputChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontBilledUsd: import("../internal-agents/schema.js").Schema; costCredits: import("../internal-agents/schema.js").Schema; costSource: import("../internal-agents/schema.js").Schema<"partial" | "missing" | "gateway" | undefined>; billingMode: import("../internal-agents/schema.js").Schema<"direct" | "deferred" | undefined>; usageCaptureStatus: import("../internal-agents/schema.js").Schema<"partial" | "missing" | "complete" | undefined>; }>>; /** Zod schema for get chat UI message role. */ export declare const getChatUiMessageRoleSchema: () => import("../internal-agents/schema.js").Schema<"tool" | "system" | "user" | "assistant">; /** Zod schema for get chat tool part state. */ export declare const getChatToolPartStateSchema: () => import("../internal-agents/schema.js").Schema<"error" | "completed" | "pending" | "input-streaming" | "input-available" | "output-available" | "output-error" | "approval-requested" | "approval-responded" | "output-denied">; /** Zod schema for get chat UI message part. */ export declare const getChatUiMessagePartSchema: () => import("../internal-agents/schema.js").Schema; text: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"reasoning">; text: import("../internal-agents/schema.js").Schema; signature: import("../internal-agents/schema.js").Schema; redactedData: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"step-start">; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"source-url">; sourceId: import("../internal-agents/schema.js").Schema; url: import("../internal-agents/schema.js").Schema; title: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"source-document">; sourceId: import("../internal-agents/schema.js").Schema; title: import("../internal-agents/schema.js").Schema; mediaType: import("../internal-agents/schema.js").Schema; filename: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"file">; mediaType: import("../internal-agents/schema.js").Schema; url: import("../internal-agents/schema.js").Schema; filename: import("../internal-agents/schema.js").Schema; size: import("../internal-agents/schema.js").Schema; uploadId: import("../internal-agents/schema.js").Schema; uploadPath: import("../internal-agents/schema.js").Schema; }> | ({ toolCallId: string; state: "error" | "completed" | "pending" | "input-streaming" | "input-available" | "output-available" | "output-error" | "approval-requested" | "approval-responded" | "output-denied"; } & { input?: unknown; title?: string | undefined; providerExecuted?: boolean | undefined; callProviderMetadata?: Record | undefined; output?: unknown; errorText?: string | undefined; approval?: import("../extensions/schema/schema-validator.js").InferShape<{ id: import("../internal-agents/schema.js").Schema; }> | undefined; } & { type: "dynamic-tool"; toolName: string; }) | ({ toolCallId: string; state: "error" | "completed" | "pending" | "input-streaming" | "input-available" | "output-available" | "output-error" | "approval-requested" | "approval-responded" | "output-denied"; } & { input?: unknown; title?: string | undefined; providerExecuted?: boolean | undefined; callProviderMetadata?: Record | undefined; output?: unknown; errorText?: string | undefined; approval?: import("../extensions/schema/schema-validator.js").InferShape<{ id: import("../internal-agents/schema.js").Schema; }> | undefined; } & { type: `tool-${string}` | "tool_call"; toolName: string | undefined; }) | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<`data-${string}`>; data: import("../internal-agents/schema.js").Schema; }>>; /** Zod schema for get chat UI message. */ export declare const getChatUiMessageSchema: () => import("../internal-agents/schema.js").Schema; role: import("../internal-agents/schema.js").Schema<"tool" | "system" | "user" | "assistant">; parts: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"text">; text: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"reasoning">; text: import("../internal-agents/schema.js").Schema; signature: import("../internal-agents/schema.js").Schema; redactedData: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"step-start">; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"source-url">; sourceId: import("../internal-agents/schema.js").Schema; url: import("../internal-agents/schema.js").Schema; title: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"source-document">; sourceId: import("../internal-agents/schema.js").Schema; title: import("../internal-agents/schema.js").Schema; mediaType: import("../internal-agents/schema.js").Schema; filename: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"file">; mediaType: import("../internal-agents/schema.js").Schema; url: import("../internal-agents/schema.js").Schema; filename: import("../internal-agents/schema.js").Schema; size: import("../internal-agents/schema.js").Schema; uploadId: import("../internal-agents/schema.js").Schema; uploadPath: import("../internal-agents/schema.js").Schema; }> | ({ toolCallId: string; state: "error" | "completed" | "pending" | "input-streaming" | "input-available" | "output-available" | "output-error" | "approval-requested" | "approval-responded" | "output-denied"; } & { input?: unknown; title?: string | undefined; providerExecuted?: boolean | undefined; callProviderMetadata?: Record | undefined; output?: unknown; errorText?: string | undefined; approval?: import("../extensions/schema/schema-validator.js").InferShape<{ id: import("../internal-agents/schema.js").Schema; }> | undefined; } & { type: "dynamic-tool"; toolName: string; }) | ({ toolCallId: string; state: "error" | "completed" | "pending" | "input-streaming" | "input-available" | "output-available" | "output-error" | "approval-requested" | "approval-responded" | "output-denied"; } & { input?: unknown; title?: string | undefined; providerExecuted?: boolean | undefined; callProviderMetadata?: Record | undefined; output?: unknown; errorText?: string | undefined; approval?: import("../extensions/schema/schema-validator.js").InferShape<{ id: import("../internal-agents/schema.js").Schema; }> | undefined; } & { type: `tool-${string}` | "tool_call"; toolName: string | undefined; }) | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<`data-${string}`>; data: import("../internal-agents/schema.js").Schema; }>)[]>; metadata: import("../internal-agents/schema.js").Schema; isStopped: import("../internal-agents/schema.js").Schema; isCompleted: import("../internal-agents/schema.js").Schema; completedAt: import("../internal-agents/schema.js").Schema; agentId: import("../internal-agents/schema.js").Schema; agentName: import("../internal-agents/schema.js").Schema; agentAvatarUrl: import("../internal-agents/schema.js").Schema; conversationId: import("../internal-agents/schema.js").Schema; modelId: import("../internal-agents/schema.js").Schema; runId: import("../internal-agents/schema.js").Schema; streamingMessageId: import("../internal-agents/schema.js").Schema; childRunAudit: import("../internal-agents/schema.js").Schema; description: import("../internal-agents/schema.js").Schema; steps: import("../internal-agents/schema.js").Schema; durationMs: import("../internal-agents/schema.js").Schema; toolCalls: import("../internal-agents/schema.js").Schema; toolCallId: import("../internal-agents/schema.js").Schema; input: import("../internal-agents/schema.js").Schema; }>[] | undefined>; toolResults: import("../internal-agents/schema.js").Schema; toolCallId: import("../internal-agents/schema.js").Schema; input: import("../internal-agents/schema.js").Schema; output: import("../internal-agents/schema.js").Schema; }>[] | undefined>; terminalErrorCode: import("../internal-agents/schema.js").Schema; terminalErrorMessage: import("../internal-agents/schema.js").Schema; }> | undefined>; usage: import("../internal-agents/schema.js").Schema; outputTokens: import("../internal-agents/schema.js").Schema; reasoningTokens: import("../internal-agents/schema.js").Schema; cachedInputTokens: import("../internal-agents/schema.js").Schema; cacheCreationInputTokens: import("../internal-agents/schema.js").Schema; cacheReadInputTokens: import("../internal-agents/schema.js").Schema; }> | undefined>; billableInputTokens: import("../internal-agents/schema.js").Schema; billableOutputTokens: import("../internal-agents/schema.js").Schema; costUsd: import("../internal-agents/schema.js").Schema; providerInputCostUsd: import("../internal-agents/schema.js").Schema; providerOutputCostUsd: import("../internal-agents/schema.js").Schema; providerCostUsd: import("../internal-agents/schema.js").Schema; veryfrontInputChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontOutputChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontBilledUsd: import("../internal-agents/schema.js").Schema; costCredits: import("../internal-agents/schema.js").Schema; costSource: import("../internal-agents/schema.js").Schema<"partial" | "missing" | "gateway" | undefined>; billingMode: import("../internal-agents/schema.js").Schema<"direct" | "deferred" | undefined>; usageCaptureStatus: import("../internal-agents/schema.js").Schema<"partial" | "missing" | "complete" | undefined>; }> | undefined>; }>>; /** Zod schema for get chat UI messages. */ export declare const getChatUiMessagesSchema: () => import("../internal-agents/schema.js").Schema; role: import("../internal-agents/schema.js").Schema<"tool" | "system" | "user" | "assistant">; parts: import("../internal-agents/schema.js").Schema<(import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"text">; text: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"reasoning">; text: import("../internal-agents/schema.js").Schema; signature: import("../internal-agents/schema.js").Schema; redactedData: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"step-start">; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"source-url">; sourceId: import("../internal-agents/schema.js").Schema; url: import("../internal-agents/schema.js").Schema; title: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"source-document">; sourceId: import("../internal-agents/schema.js").Schema; title: import("../internal-agents/schema.js").Schema; mediaType: import("../internal-agents/schema.js").Schema; filename: import("../internal-agents/schema.js").Schema; }> | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<"file">; mediaType: import("../internal-agents/schema.js").Schema; url: import("../internal-agents/schema.js").Schema; filename: import("../internal-agents/schema.js").Schema; size: import("../internal-agents/schema.js").Schema; uploadId: import("../internal-agents/schema.js").Schema; uploadPath: import("../internal-agents/schema.js").Schema; }> | ({ toolCallId: string; state: "error" | "completed" | "pending" | "input-streaming" | "input-available" | "output-available" | "output-error" | "approval-requested" | "approval-responded" | "output-denied"; } & { input?: unknown; title?: string | undefined; providerExecuted?: boolean | undefined; callProviderMetadata?: Record | undefined; output?: unknown; errorText?: string | undefined; approval?: import("../extensions/schema/schema-validator.js").InferShape<{ id: import("../internal-agents/schema.js").Schema; }> | undefined; } & { type: "dynamic-tool"; toolName: string; }) | ({ toolCallId: string; state: "error" | "completed" | "pending" | "input-streaming" | "input-available" | "output-available" | "output-error" | "approval-requested" | "approval-responded" | "output-denied"; } & { input?: unknown; title?: string | undefined; providerExecuted?: boolean | undefined; callProviderMetadata?: Record | undefined; output?: unknown; errorText?: string | undefined; approval?: import("../extensions/schema/schema-validator.js").InferShape<{ id: import("../internal-agents/schema.js").Schema; }> | undefined; } & { type: `tool-${string}` | "tool_call"; toolName: string | undefined; }) | import("../extensions/schema/schema-validator.js").InferShape<{ type: import("../internal-agents/schema.js").Schema<`data-${string}`>; data: import("../internal-agents/schema.js").Schema; }>)[]>; metadata: import("../internal-agents/schema.js").Schema; isStopped: import("../internal-agents/schema.js").Schema; isCompleted: import("../internal-agents/schema.js").Schema; completedAt: import("../internal-agents/schema.js").Schema; agentId: import("../internal-agents/schema.js").Schema; agentName: import("../internal-agents/schema.js").Schema; agentAvatarUrl: import("../internal-agents/schema.js").Schema; conversationId: import("../internal-agents/schema.js").Schema; modelId: import("../internal-agents/schema.js").Schema; runId: import("../internal-agents/schema.js").Schema; streamingMessageId: import("../internal-agents/schema.js").Schema; childRunAudit: import("../internal-agents/schema.js").Schema; description: import("../internal-agents/schema.js").Schema; steps: import("../internal-agents/schema.js").Schema; durationMs: import("../internal-agents/schema.js").Schema; toolCalls: import("../internal-agents/schema.js").Schema; toolCallId: import("../internal-agents/schema.js").Schema; input: import("../internal-agents/schema.js").Schema; }>[] | undefined>; toolResults: import("../internal-agents/schema.js").Schema; toolCallId: import("../internal-agents/schema.js").Schema; input: import("../internal-agents/schema.js").Schema; output: import("../internal-agents/schema.js").Schema; }>[] | undefined>; terminalErrorCode: import("../internal-agents/schema.js").Schema; terminalErrorMessage: import("../internal-agents/schema.js").Schema; }> | undefined>; usage: import("../internal-agents/schema.js").Schema; outputTokens: import("../internal-agents/schema.js").Schema; reasoningTokens: import("../internal-agents/schema.js").Schema; cachedInputTokens: import("../internal-agents/schema.js").Schema; cacheCreationInputTokens: import("../internal-agents/schema.js").Schema; cacheReadInputTokens: import("../internal-agents/schema.js").Schema; }> | undefined>; billableInputTokens: import("../internal-agents/schema.js").Schema; billableOutputTokens: import("../internal-agents/schema.js").Schema; costUsd: import("../internal-agents/schema.js").Schema; providerInputCostUsd: import("../internal-agents/schema.js").Schema; providerOutputCostUsd: import("../internal-agents/schema.js").Schema; providerCostUsd: import("../internal-agents/schema.js").Schema; veryfrontInputChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontOutputChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontChargeUsd: import("../internal-agents/schema.js").Schema; veryfrontBilledUsd: import("../internal-agents/schema.js").Schema; costCredits: import("../internal-agents/schema.js").Schema; costSource: import("../internal-agents/schema.js").Schema<"partial" | "missing" | "gateway" | undefined>; billingMode: import("../internal-agents/schema.js").Schema<"direct" | "deferred" | undefined>; usageCaptureStatus: import("../internal-agents/schema.js").Schema<"partial" | "missing" | "complete" | undefined>; }> | undefined>; }>[]>; /** Check whether a file is an image. */ export declare function isImageFile(type: string | undefined): boolean; /** Check whether a file is a supported image upload. */ export declare function isValidImageFile(type: string): boolean; /** Check whether a file supports text preview. */ export declare function isTextPreviewFile(name: string | undefined, type: string | undefined): boolean; /** Normalizes inline attachment media type. */ export declare function normalizeInlineAttachmentMediaType(filename: string | undefined, mediaType: string | undefined): string; /** Builds data file annotation. */ export declare function buildDataFileAnnotation(refs: UploadedFileReference[]): string; export type { ChatMessageMetadata, ChatMessageMetadata as MessageMetadata, ChatMessageMetadataUsage, ChatUiMessageChunk, ChildRunAudit, ChildRunAuditToolCall, ChildRunAuditToolResult, }; //# sourceMappingURL=types.d.ts.map