export function requirePermissionPolicy(ctx, toolName) {
    const policy = ctx?.permissionPolicy;
    if (!policy) {
        throw new Error(`${toolName} requires a runtime permission policy.`);
    }
    return policy;
}
//# sourceMappingURL=require-policy.js.map