import type { ActionRunContext } from "../action.js"; import type { ActionEntry } from "../agent/production-agent.js"; import type { ActionBatchItemResult } from "../shared/action-batch.js"; export declare const ACTION_ROUTE_PREFIX = "/_agent-native/actions"; export interface ActionBatchBinding { /** The app's HTTP pipeline (`nitroApp.fetch`). Each item is a real GET through it. */ fetch: (request: Request) => Response | Promise; /** The mounted action registry, for `http.path` overrides and `http: false`. */ actions: Record; } /** * Called by mountActionRoutes for the primary action mount. The batch action * needs the pipeline and registry, which only the mount has. */ export declare function bindActionBatch(next: ActionBatchBinding): void; export declare function runActionBatch(input: { requests: Array<{ action: string; query: string; }>; }, ctx: ActionRunContext | undefined): Promise<{ results: ActionBatchItemResult[]; }>;