import { type ActionRegistry } from "@decionis/agent-safe-pipeline"; import type { DownstreamConfig } from "../config/ExecutorConfig.js"; import type { DownstreamCredential } from "../credential/DownstreamCredential.js"; import type { FetchLike, HandlerRegistration } from "./HandlerRegistration.js"; /** * The reference handler. Everything registered here runs only behind a * claimed single-use grant, with the parameters the authority evaluated and * nothing the agent could add afterwards. It forwards the verified parameters * to a configured downstream endpoint, carrying the headers the credential * resolves at dispatch and the intent-bound idempotency key; an adopter * replaces it with the handlers for their own provider, keeping the shape: a * strict parameter schema, the side effect inside `dispatch.run`, and a * read-only `reconcile`. */ export declare const FORWARD_REQUEST_ACTION = "forward_request"; /** Every action the reference registration registers, in the order `/ready` reports them. */ export declare const REGISTERED_ACTIONS: readonly string[]; /** * What the executor reports about a completed downstream attempt: a status, * never a body. Only a 2xx completes, so `accepted` is always true here; a * refusal and an unknown outcome are reported as attempt outcomes instead. */ export interface DownstreamResult { readonly status: number; readonly accepted: boolean; } export declare function registerHandlers(registry: ActionRegistry, downstream: DownstreamConfig, credential: DownstreamCredential, fetchImpl?: FetchLike): ActionRegistry; /** The reference registration: the one forwarding handler, as a seam the executor accepts. */ export declare function forwardRequestHandlers(): HandlerRegistration; //# sourceMappingURL=ForwardRequestHandler.d.ts.map