ApprovalPrompt typedef

ApprovalPrompt = FutureOr<ApprovalDecision> Function(ApprovalRequest request)

Renders an approval prompt and resolves with the user's ApprovalDecision.

Surfaces (CLI, Flutter, web) inject their own UI through this callback.

Implementation

typedef ApprovalPrompt =
    FutureOr<ApprovalDecision> Function(ApprovalRequest request);