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