import { type ToolActionReview } from "@opengeni/sdk"; import type { PendingApproval } from "./approvals.js"; import type { OpenGeniText } from "./messages/runtime.js"; /** The tool a settings-through-chat action calls; its card asks a plain question. */ export declare const APP_ACTION_TOOL_NAME = "admin_action_call"; /** Long argument lists stay readable; the full set is one tap away in details. */ export declare const VISIBLE_REVIEW_FIELDS = 6; /** * The full arguments behind a card's details, indented for reading. Arguments * that arrive JSON-encoded are decoded once, so details never show an escaped * string; anything else is shown as it came. */ export declare function approvalArgumentsText(approval: PendingApproval): string; /** * The facts a review card lists: its selection field (when it acts on a * counted selection), the fields shown, how many more sit in details, and the * effects the title does not already name. */ export declare function reviewFacts(review: ToolActionReview): { selection: { path: string; label: string; preview: string; count?: number | undefined; truncated: boolean; protected?: boolean | undefined; } | undefined; shown: { path: string; label: string; preview: string; count?: number | undefined; truncated: boolean; protected?: boolean | undefined; }[]; hiddenFields: number; effects: string[]; }; /** A tool's readable name: "batch_modify_messages" → "Modify messages". */ export declare function formatApprovalToolName(t: OpenGeniText, name: string): string; /** The tool the approval is for, as the runtime displays it. */ export declare function approvalToolName(approval: PendingApproval): string; /** * An app action's card asks the person a plain question ("Invite … to your * organization?"), so its buttons answer it: Allow or Cancel. Null for other * tools, which keep the host's approve and decline words. */ export declare function approvalAnswerLabels(t: OpenGeniText, toolName: string): { approve: string; reject: string; } | null; /** * The review a pending approval shows from its own arguments, before (or * without) the server's versioned review. It never changes what is approved. */ export declare function pendingApprovalReview(approval: PendingApproval, options: { formatToolName: (name: string) => string; approveLabel: string; }): ToolActionReview;