import { Tool } from "../api/types/Tool"; import { BaseInstance, UbuntuInstance } from "../ScrapybaraClient"; /** * Create a custom tool that can be used by the act agent. */ export declare function tool({ name, description, parameters, execute }: Tool): Tool; /** * Return an image result that is interpretable by the model. */ export declare function imageResult(base64: string): string; /** * A computer interaction tool that allows the agent to control mouse and keyboard. * Available for Ubuntu, Browser, and Windows instances. */ export declare function computerTool(instance: BaseInstance): Tool<{ action: "move_mouse" | "click_mouse" | "drag_mouse" | "scroll" | "press_key" | "type_text" | "wait" | "take_screenshot" | "get_cursor_position"; keys?: string[] | undefined; text?: string | undefined; coordinates?: number[] | undefined; hold_keys?: string[] | undefined; button?: "left" | "right" | "middle" | "back" | "forward" | undefined; click_type?: "down" | "up" | "click" | undefined; num_clicks?: number | undefined; path?: number[][] | undefined; delta_x?: number | undefined; delta_y?: number | undefined; duration?: number | undefined; }, import("../api").ComputerResponse>; /** * A filesystem editor tool that allows the agent to view, create, and edit files. * Available for Ubuntu instances only. */ export declare function editTool(instance: UbuntuInstance): Tool<{ path: string; command: "view" | "create" | "str_replace" | "insert" | "undo_edit"; file_text?: string | undefined; view_range?: number[] | undefined; old_str?: string | undefined; new_str?: string | undefined; insert_line?: number | undefined; }, import("../api").EditResponse>; /** * A shell execution tool that allows the agent to run bash commands. * Available for Ubuntu instances only. */ export declare function bashTool(instance: UbuntuInstance): Tool<{ timeout?: number | undefined; command?: string | undefined; session?: number | undefined; restart?: boolean | undefined; listSessions?: boolean | undefined; checkSession?: number | undefined; }, import("../api").BashResponse>;