import { HfInference } from '@huggingface/inference'; type Data = string | Blob | ArrayBuffer; interface Tool { name: string; description: string; examples: Array; call?: (input: Promise, inference: HfInference) => Promise; } interface Example { prompt: string; code: string; tools: string[]; inputs?: Inputs; } interface Update { message: string; data: undefined | string | Blob; } type Inputs = Partial>; type LLM = (prompt: string) => Promise; declare class HfAgent { private accessToken; private llm; private tools; constructor(accessToken?: string, LLM?: LLM, tools?: Tool[]); generatePrompt(prompt: string, files?: FileList): string; generateCode(prompt: string, files?: FileList): Promise; evaluateCode(code: string, files?: FileList): Promise; run(prompt: string, files?: FileList): Promise; } declare const textToImageTool: Tool; declare const imageToTextTool: Tool; declare const textToSpeechTool: Tool; declare const speechToTextTool: Tool; declare const defaultTools: Array; declare function LLMFromHub(accessToken?: string, model?: string): LLM; declare function LLMFromEndpoint(acessToken: string, endpoint: string): LLM; export { HfAgent, LLMFromEndpoint, LLMFromHub, defaultTools, imageToTextTool, speechToTextTool, textToImageTool, textToSpeechTool };