{
  "type": "File",
  "start":0,"end":73,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":73}},
  "program": {
    "type": "Program",
    "start":0,"end":73,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":73}},
    "sourceType": "module",
    "interpreter": null,
    "body": [
      {
        "type": "DeclareModule",
        "start":0,"end":73,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":73}},
        "id": {
          "type": "StringLiteral",
          "start":15,"end":20,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":20}},
          "extra": {
            "rawValue": "foo",
            "raw": "\"foo\""
          },
          "value": "foo"
        },
        "body": {
          "type": "BlockStatement",
          "start":21,"end":73,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":73}},
          "body": [
            {
              "type": "DeclareExportDeclaration",
              "start":23,"end":71,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":71}},
              "declaration": {
                "type": "DeclareFunction",
                "start":38,"end":71,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":71}},
                "id": {
                  "type": "Identifier",
                  "start":47,"end":70,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":70},"identifierName":"bar"},
                  "name": "bar",
                  "typeAnnotation": {
                    "type": "TypeAnnotation",
                    "start":50,"end":70,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":70}},
                    "typeAnnotation": {
                      "type": "FunctionTypeAnnotation",
                      "start":50,"end":70,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":70}},
                      "typeParameters": null,
                      "params": [
                        {
                          "type": "FunctionTypeParam",
                          "start":51,"end":61,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":61}},
                          "name": {
                            "type": "Identifier",
                            "start":51,"end":53,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":53},"identifierName":"p1"},
                            "name": "p1"
                          },
                          "optional": false,
                          "typeAnnotation": {
                            "type": "NumberTypeAnnotation",
                            "start":55,"end":61,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":61}}
                          }
                        }
                      ],
                      "rest": null,
                      "this": null,
                      "returnType": {
                        "type": "StringTypeAnnotation",
                        "start":64,"end":70,"loc":{"start":{"line":1,"column":64},"end":{"line":1,"column":70}}
                      }
                    }
                  }
                },
                "predicate": null
              },
              "default": false
            }
          ]
        },
        "kind": "ES"
      }
    ],
    "directives": []
  }
}