import { Task, type inferSchemaIn, type TaskSchema, type TaskWithSchema } from "@trigger.dev/core/v3"; import { Tool, ToolCallOptions } from "ai"; export type ToolCallExecutionOptions = Omit; type ToolResultContent = Array<{ type: "text"; text: string; } | { type: "image"; data: string; mimeType?: string; }>; export type ToolOptions = { experimental_toToolResultContent?: (result: TResult) => ToolResultContent; }; declare function toolFromTask(task: Task, options?: ToolOptions): Tool; declare function toolFromTask(task: TaskWithSchema, options?: ToolOptions): Tool, TOutput>; declare function getToolOptionsFromMetadata(): ToolCallExecutionOptions | undefined; export declare const ai: { tool: typeof toolFromTask; currentToolOptions: typeof getToolOptionsFromMetadata; }; export {};