/** */ import type { ApprovalRequest, ApprovalResponse } from './types'; /** * Global approval handler that must be set by the execution context */ let approvalHandler: ((request: ApprovalRequest) => Promise) | null = null; /** * Initialize the approval system with a custom handler */ export function initializeApproval( handler: (request: ApprovalRequest) => Promise ): void { approvalHandler = handler; } /** * Get the current approval handler */ export function getApprovalHandler(): | ((request: ApprovalRequest) => Promise) | null { return approvalHandler; }