import type { ChatMessage, ChatImage, ProviderId } from "../types.js"; import type { AgentEvent } from "../agent/events.js"; export interface AskActionRequired { /** The original prompt, so the caller can re-run it in agent mode. */ prompt: string; /** The model's natural-language preamble with tool-call syntax stripped. */ preamble: string; /** Distinct names of the action tools the model wanted to run. */ tools: string[]; } export interface AskOptions { provider?: ProviderId | undefined; model?: string | undefined; history?: ChatMessage[] | undefined; signal?: AbortSignal | undefined; images?: ChatImage[] | undefined; onActionRequired?: ((info: AskActionRequired) => void) | undefined; onEvent?: ((event: AgentEvent) => void) | undefined; } export declare function runAsk(prompt: string, options?: AskOptions): Promise; export declare function runAskStream(prompt: string, onToken: (token: string) => void, options?: AskOptions): Promise;