import { actionCallIntent, ActionContractError, preparedCallNeedsApproval, type ActionCaller, type ActionRunContext } from "../action.js"; /** * The refusal for an HTTP call that needs approval. No HTTP caller can grant * approval: it is given in the app's UI, or in an agent chat or MCP flow that * runs the action in-process. */ export declare function actionApprovalRequiredError(name: string, caller: ActionCaller, serviceIdentity: boolean, embedded?: boolean): ActionContractError; /** * For a dispatcher that runs `entry.run` directly instead of a prepared call * (the generated worker entry): the refusal when this call needs approval. * Arguments that fail validation get no refusal here; the run refuses them. */ export declare function directHttpActionApprovalRefusal(entry: Parameters[0] & Parameters[0], params: unknown, ctx: ActionRunContext & { actionName: string; }, embedded?: boolean): Promise;