import type { BaseMessage } from "@langchain/core/messages"; import type { ZodType } from "zod"; export interface StructuredRunnable { invoke(input: unknown): Promise; } export interface ChatLike { invoke(input: unknown): Promise; withStructuredOutput>(schema: ZodType): StructuredRunnable; } export type ChatFactory = (model: string, temperature?: number) => ChatLike; export declare const anthropicChat: ChatFactory; export declare function messageText(msg: BaseMessage): string;