{ "type": "Program", "statements": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "TSDeclareFunction", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "isPrime", "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 24 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "x", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 17, "column": 34 } } }, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 26 } } } ], "returnType": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 44 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 45 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 45 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 45 } } }, { "type": "TSNamespaceExportDeclaration", "id": { "type": "Identifier", "name": "mathLib", "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 28 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 29 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 18, "column": 29 } } }