{
  "type": "Program",
  "statements": [
    {
      "type": "TSModuleDeclaration",
      "id": {
        "type": "Identifier",
        "name": "ns",
        "loc": {
          "start": {
            "line": 17,
            "column": 19
          },
          "end": {
            "line": 17,
            "column": 21
          }
        }
      },
      "body": {
        "type": "TSModuleBlock",
        "body": [
          {
            "type": "TSDeclareFunction",
            "function": {
              "type": "ScriptFunction",
              "id": {
                "type": "Identifier",
                "name": "_func",
                "loc": {
                  "start": {
                    "line": 18,
                    "column": 14
                  },
                  "end": {
                    "line": 18,
                    "column": 19
                  }
                }
              },
              "generator": false,
              "async": false,
              "expression": false,
              "params": [
                {
                  "type": "Identifier",
                  "name": "p",
                  "typeAnnotation": {
                    "type": "TSTypeReference",
                    "typeName": {
                      "type": "Identifier",
                      "name": "Function",
                      "loc": {
                        "start": {
                          "line": 18,
                          "column": 23
                        },
                        "end": {
                          "line": 18,
                          "column": 31
                        }
                      }
                    },
                    "loc": {
                      "start": {
                        "line": 18,
                        "column": 23
                      },
                      "end": {
                        "line": 18,
                        "column": 31
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 18,
                      "column": 20
                    },
                    "end": {
                      "line": 18,
                      "column": 21
                    }
                  }
                },
                {
                  "type": "RestElement",
                  "argument": {
                    "type": "Identifier",
                    "name": "args",
                    "typeAnnotation": {
                      "type": "TSArrayType",
                      "elementType": {
                        "type": "TSAnyKeyword",
                        "loc": {
                          "start": {
                            "line": 18,
                            "column": 42
                          },
                          "end": {
                            "line": 18,
                            "column": 45
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 18,
                          "column": 42
                        },
                        "end": {
                          "line": 18,
                          "column": 47
                        }
                      }
                    },
                    "loc": {
                      "start": {
                        "line": 18,
                        "column": 36
                      },
                      "end": {
                        "line": 18,
                        "column": 40
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 18,
                      "column": 33
                    },
                    "end": {
                      "line": 18,
                      "column": 40
                    }
                  }
                }
              ],
              "returnType": {
                "type": "TSAnyKeyword",
                "loc": {
                  "start": {
                    "line": 18,
                    "column": 50
                  },
                  "end": {
                    "line": 18,
                    "column": 53
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 18,
                  "column": 5
                },
                "end": {
                  "line": 18,
                  "column": 54
                }
              }
            },
            "loc": {
              "start": {
                "line": 18,
                "column": 5
              },
              "end": {
                "line": 18,
                "column": 54
              }
            }
          },
          {
            "type": "ExportNamedDeclaration",
            "declaration": null,
            "source": null,
            "specifiers": [
              {
                "type": "ExportSpecifier",
                "local": {
                  "type": "Identifier",
                  "name": "_func",
                  "loc": {
                    "start": {
                      "line": 19,
                      "column": 14
                    },
                    "end": {
                      "line": 19,
                      "column": 19
                    }
                  }
                },
                "exported": {
                  "type": "Identifier",
                  "name": "try",
                  "loc": {
                    "start": {
                      "line": 19,
                      "column": 23
                    },
                    "end": {
                      "line": 19,
                      "column": 26
                    }
                  }
                },
                "isType": false,
                "loc": {
                  "start": {
                    "line": 19,
                    "column": 14
                  },
                  "end": {
                    "line": 19,
                    "column": 26
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 19,
                "column": 5
              },
              "end": {
                "line": 19,
                "column": 29
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 17,
            "column": 22
          },
          "end": {
            "line": 20,
            "column": 2
          }
        }
      },
      "declare": true,
      "global": false,
      "loc": {
        "start": {
          "line": 17,
          "column": 9
        },
        "end": {
          "line": 22,
          "column": 3
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "CallExpression",
        "callee": {
          "type": "MemberExpression",
          "object": {
            "type": "Identifier",
            "name": "ns",
            "loc": {
              "start": {
                "line": 22,
                "column": 1
              },
              "end": {
                "line": 22,
                "column": 3
              }
            }
          },
          "property": {
            "type": "Identifier",
            "name": "try",
            "loc": {
              "start": {
                "line": 22,
                "column": 4
              },
              "end": {
                "line": 22,
                "column": 7
              }
            }
          },
          "computed": false,
          "optional": false,
          "loc": {
            "start": {
              "line": 22,
              "column": 1
            },
            "end": {
              "line": 22,
              "column": 7
            }
          }
        },
        "arguments": [
          {
            "type": "ArrowFunctionExpression",
            "function": {
              "type": "ScriptFunction",
              "id": null,
              "generator": false,
              "async": false,
              "expression": false,
              "params": [],
              "body": {
                "type": "BlockStatement",
                "statements": [],
                "loc": {
                  "start": {
                    "line": 22,
                    "column": 14
                  },
                  "end": {
                    "line": 22,
                    "column": 17
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 22,
                  "column": 8
                },
                "end": {
                  "line": 22,
                  "column": 17
                }
              }
            },
            "loc": {
              "start": {
                "line": 22,
                "column": 8
              },
              "end": {
                "line": 22,
                "column": 17
              }
            }
          }
        ],
        "optional": false,
        "loc": {
          "start": {
            "line": 22,
            "column": 1
          },
          "end": {
            "line": 22,
            "column": 18
          }
        }
      },
      "loc": {
        "start": {
          "line": 22,
          "column": 1
        },
        "end": {
          "line": 22,
          "column": 19
        }
      }
    },
    {
      "type": "TSModuleDeclaration",
      "id": {
        "type": "Identifier",
        "name": "ns1",
        "loc": {
          "start": {
            "line": 24,
            "column": 19
          },
          "end": {
            "line": 24,
            "column": 22
          }
        }
      },
      "body": {
        "type": "TSModuleBlock",
        "body": [
          {
            "type": "TSEnumDeclaration",
            "id": {
              "type": "Identifier",
              "name": "a",
              "loc": {
                "start": {
                  "line": 25,
                  "column": 10
                },
                "end": {
                  "line": 25,
                  "column": 11
                }
              }
            },
            "members": [],
            "const": false,
            "loc": {
              "start": {
                "line": 25,
                "column": 5
              },
              "end": {
                "line": 25,
                "column": 14
              }
            }
          },
          {
            "type": "ExportNamedDeclaration",
            "declaration": null,
            "source": null,
            "specifiers": [
              {
                "type": "ExportSpecifier",
                "local": {
                  "type": "Identifier",
                  "name": "a",
                  "loc": {
                    "start": {
                      "line": 26,
                      "column": 14
                    },
                    "end": {
                      "line": 26,
                      "column": 15
                    }
                  }
                },
                "exported": {
                  "type": "Identifier",
                  "name": "enum1",
                  "loc": {
                    "start": {
                      "line": 26,
                      "column": 19
                    },
                    "end": {
                      "line": 26,
                      "column": 24
                    }
                  }
                },
                "isType": false,
                "loc": {
                  "start": {
                    "line": 26,
                    "column": 14
                  },
                  "end": {
                    "line": 26,
                    "column": 24
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 26,
                "column": 5
              },
              "end": {
                "line": 26,
                "column": 27
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 24,
            "column": 23
          },
          "end": {
            "line": 27,
            "column": 2
          }
        }
      },
      "declare": true,
      "global": false,
      "loc": {
        "start": {
          "line": 24,
          "column": 9
        },
        "end": {
          "line": 29,
          "column": 8
        }
      }
    },
    {
      "type": "TSModuleDeclaration",
      "id": {
        "type": "Identifier",
        "name": "nullns",
        "loc": {
          "start": {
            "line": 29,
            "column": 19
          },
          "end": {
            "line": 29,
            "column": 25
          }
        }
      },
      "body": {
        "type": "TSModuleBlock",
        "body": [],
        "loc": {
          "start": {
            "line": 29,
            "column": 25
          },
          "end": {
            "line": 31,
            "column": 2
          }
        }
      },
      "declare": true,
      "global": false,
      "loc": {
        "start": {
          "line": 29,
          "column": 9
        },
        "end": {
          "line": 32,
          "column": 7
        }
      }
    },
    {
      "type": "ExportNamedDeclaration",
      "declaration": null,
      "source": null,
      "specifiers": [
        {
          "type": "ExportSpecifier",
          "local": {
            "type": "Identifier",
            "name": "nullns",
            "loc": {
              "start": {
                "line": 32,
                "column": 10
              },
              "end": {
                "line": 32,
                "column": 16
              }
            }
          },
          "exported": {
            "type": "Identifier",
            "name": "foo",
            "loc": {
              "start": {
                "line": 32,
                "column": 20
              },
              "end": {
                "line": 32,
                "column": 23
              }
            }
          },
          "isType": false,
          "loc": {
            "start": {
              "line": 32,
              "column": 10
            },
            "end": {
              "line": 32,
              "column": 23
            }
          }
        }
      ],
      "loc": {
        "start": {
          "line": 32,
          "column": 1
        },
        "end": {
          "line": 32,
          "column": 25
        }
      }
    },
    {
      "type": "TSModuleDeclaration",
      "id": {
        "type": "Identifier",
        "name": "ns2",
        "loc": {
          "start": {
            "line": 34,
            "column": 19
          },
          "end": {
            "line": 34,
            "column": 22
          }
        }
      },
      "body": {
        "type": "TSModuleBlock",
        "body": [
          {
            "type": "ExportNamedDeclaration",
            "declaration": {
              "type": "VariableDeclaration",
              "declarations": [
                {
                  "type": "VariableDeclarator",
                  "id": {
                    "type": "Identifier",
                    "name": "a",
                    "loc": {
                      "start": {
                        "line": 35,
                        "column": 16
                      },
                      "end": {
                        "line": 35,
                        "column": 17
                      }
                    }
                  },
                  "init": null,
                  "loc": {
                    "start": {
                      "line": 35,
                      "column": 16
                    },
                    "end": {
                      "line": 35,
                      "column": 17
                    }
                  }
                }
              ],
              "kind": "var",
              "loc": {
                "start": {
                  "line": 35,
                  "column": 12
                },
                "end": {
                  "line": 35,
                  "column": 18
                }
              }
            },
            "source": null,
            "specifiers": [],
            "loc": {
              "start": {
                "line": 35,
                "column": 5
              },
              "end": {
                "line": 35,
                "column": 18
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 34,
            "column": 23
          },
          "end": {
            "line": 36,
            "column": 2
          }
        }
      },
      "declare": true,
      "global": false,
      "loc": {
        "start": {
          "line": 34,
          "column": 9
        },
        "end": {
          "line": 38,
          "column": 8
        }
      }
    },
    {
      "type": "TSModuleDeclaration",
      "id": {
        "type": "Identifier",
        "name": "ns2",
        "loc": {
          "start": {
            "line": 38,
            "column": 19
          },
          "end": {
            "line": 38,
            "column": 22
          }
        }
      },
      "body": {
        "type": "TSModuleBlock",
        "body": [
          {
            "type": "ExportNamedDeclaration",
            "declaration": null,
            "source": null,
            "specifiers": [
              {
                "type": "ExportSpecifier",
                "local": {
                  "type": "Identifier",
                  "name": "a",
                  "loc": {
                    "start": {
                      "line": 39,
                      "column": 13
                    },
                    "end": {
                      "line": 39,
                      "column": 14
                    }
                  }
                },
                "exported": {
                  "type": "Identifier",
                  "name": "b",
                  "loc": {
                    "start": {
                      "line": 39,
                      "column": 18
                    },
                    "end": {
                      "line": 39,
                      "column": 19
                    }
                  }
                },
                "isType": false,
                "loc": {
                  "start": {
                    "line": 39,
                    "column": 13
                  },
                  "end": {
                    "line": 39,
                    "column": 19
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 39,
                "column": 5
              },
              "end": {
                "line": 39,
                "column": 20
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 38,
            "column": 23
          },
          "end": {
            "line": 40,
            "column": 2
          }
        }
      },
      "declare": true,
      "global": false,
      "loc": {
        "start": {
          "line": 38,
          "column": 9
        },
        "end": {
          "line": 40,
          "column": 2
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 40,
      "column": 2
    }
  }
}
