export type AsyncHandler = (input: I) => Promise; /** * Wrap an async tool handler so every call is checked with ACP first. * * const handler = governed("web_search", async ({ query }) => await search(query)); * * If ACP denies the call, the wrapped handler returns the string * `"tool_error: "` so the model can see the denial and adapt. * * After execution, the result is reported to ACP for audit and post-output * PII scanning. If ACP returns a redacted version, the redacted version is * returned to the caller (pass `onRedact: "keep"` to override). */ export declare function governed(toolName: string, handler: AsyncHandler, opts?: { onRedact?: "replace" | "keep"; }): AsyncHandler; //# sourceMappingURL=governed.d.ts.map