import { z } from "zod"; import type { AgentTool } from "@kenkaiiii/gg-agent"; import { type AskUserRequest, type AskUserResult } from "../core/ask-user.js"; /** Ask the host to put the questions in front of the user and wait. */ export type AskUserHandler = (request: AskUserRequest) => Promise; declare const AskUserParams: z.ZodObject<{ questions: z.ZodArray; detail: z.ZodOptional; options: z.ZodOptional; hint: z.ZodOptional; recommended: z.ZodOptional; }, z.core.$strip>>>; allowOther: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * Ask the user a question and block the turn until they answer. * * Registered only by hosts that can actually render it (the gg-app sidecar). * A subagent, a headless run or the TUI has nobody to answer, so the tool is * simply absent there and the agent falls back to asking in prose. */ export declare function createAskUserTool(ask: AskUserHandler): AgentTool; export {}; //# sourceMappingURL=ask-user.d.ts.map