{
  "type": "Program",
  "statements": [
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "a",
            "typeAnnotation": {
              "type": "TSImportType",
              "parameter": {
                "type": "TSLiteralType",
                "literal": {
                  "type": "StringLiteral",
                  "value": "tar",
                  "loc": {
                    "start": {
                      "line": 17,
                      "column": 15,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 17,
                      "column": 20,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 17,
                    "column": 15,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 17,
                    "column": 20,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "isTypeOf": false,
              "loc": {
                "start": {
                  "line": 17,
                  "column": 21,
                  "program": "test_import_type.ts"
                },
                "end": {
                  "line": 17,
                  "column": 22,
                  "program": "test_import_type.ts"
                }
              }
            },
            "loc": {
              "start": {
                "line": 17,
                "column": 5,
                "program": "test_import_type.ts"
              },
              "end": {
                "line": 17,
                "column": 6,
                "program": "test_import_type.ts"
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 17,
              "column": 5,
              "program": "test_import_type.ts"
            },
            "end": {
              "line": 17,
              "column": 6,
              "program": "test_import_type.ts"
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 17,
          "column": 1,
          "program": "test_import_type.ts"
        },
        "end": {
          "line": 17,
          "column": 22,
          "program": "test_import_type.ts"
        }
      }
    },
    {
      "type": "TSInterfaceDeclaration",
      "body": {
        "type": "TSInterfaceBody",
        "body": [
          {
            "type": "TSMethodSignature",
            "computed": false,
            "optional": false,
            "key": {
              "type": "Identifier",
              "name": "k",
              "loc": {
                "start": {
                  "line": 20,
                  "column": 5,
                  "program": "test_import_type.ts"
                },
                "end": {
                  "line": 20,
                  "column": 6,
                  "program": "test_import_type.ts"
                }
              }
            },
            "params": [],
            "typeAnnotation": {
              "type": "TSImportType",
              "parameter": {
                "type": "TSLiteralType",
                "literal": {
                  "type": "StringLiteral",
                  "value": "foo",
                  "loc": {
                    "start": {
                      "line": 20,
                      "column": 17,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 20,
                      "column": 22,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 20,
                    "column": 17,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 20,
                    "column": 22,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "qualifier": {
                "type": "Identifier",
                "name": "b",
                "loc": {
                  "start": {
                    "line": 20,
                    "column": 24,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 20,
                    "column": 25,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "isTypeOf": false,
              "loc": {
                "start": {
                  "line": 20,
                  "column": 25,
                  "program": "test_import_type.ts"
                },
                "end": {
                  "line": 20,
                  "column": 26,
                  "program": "test_import_type.ts"
                }
              }
            },
            "loc": {
              "start": {
                "line": 20,
                "column": 5,
                "program": "test_import_type.ts"
              },
              "end": {
                "line": 20,
                "column": 26,
                "program": "test_import_type.ts"
              }
            }
          },
          {
            "type": "TSIndexSignature",
            "parameters": {
              "type": "Identifier",
              "name": "x",
              "typeAnnotation": {
                "type": "TSNumberKeyword",
                "loc": {
                  "start": {
                    "line": 21,
                    "column": 9,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 21,
                    "column": 15,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 21,
                  "column": 6,
                  "program": "test_import_type.ts"
                },
                "end": {
                  "line": 21,
                  "column": 7,
                  "program": "test_import_type.ts"
                }
              }
            },
            "typeAnnotation": {
              "type": "TSImportType",
              "parameter": {
                "type": "TSLiteralType",
                "literal": {
                  "type": "StringLiteral",
                  "value": "baz",
                  "loc": {
                    "start": {
                      "line": 21,
                      "column": 32,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 21,
                      "column": 37,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 21,
                    "column": 32,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 21,
                    "column": 37,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "qualifier": {
                "type": "Identifier",
                "name": "t",
                "loc": {
                  "start": {
                    "line": 21,
                    "column": 39,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 21,
                    "column": 40,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "isTypeOf": true,
              "loc": {
                "start": {
                  "line": 21,
                  "column": 18,
                  "program": "test_import_type.ts"
                },
                "end": {
                  "line": 22,
                  "column": 2,
                  "program": "test_import_type.ts"
                }
              }
            },
            "readonly": false,
            "loc": {
              "start": {
                "line": 21,
                "column": 5,
                "program": "test_import_type.ts"
              },
              "end": {
                "line": 22,
                "column": 2,
                "program": "test_import_type.ts"
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 19,
            "column": 13,
            "program": "test_import_type.ts"
          },
          "end": {
            "line": 22,
            "column": 2,
            "program": "test_import_type.ts"
          }
        }
      },
      "id": {
        "type": "Identifier",
        "name": "B",
        "loc": {
          "start": {
            "line": 19,
            "column": 11,
            "program": "test_import_type.ts"
          },
          "end": {
            "line": 19,
            "column": 12,
            "program": "test_import_type.ts"
          }
        }
      },
      "extends": [],
      "loc": {
        "start": {
          "line": 19,
          "column": 1,
          "program": "test_import_type.ts"
        },
        "end": {
          "line": 22,
          "column": 2,
          "program": "test_import_type.ts"
        }
      }
    },
    {
      "type": "FunctionDeclaration",
      "function": {
        "type": "ScriptFunction",
        "id": {
          "type": "Identifier",
          "name": "k",
          "loc": {
            "start": {
              "line": 24,
              "column": 10,
              "program": "test_import_type.ts"
            },
            "end": {
              "line": 24,
              "column": 11,
              "program": "test_import_type.ts"
            }
          }
        },
        "generator": false,
        "async": false,
        "expression": false,
        "params": [
          {
            "type": "Identifier",
            "name": "a",
            "typeAnnotation": {
              "type": "TSImportType",
              "parameter": {
                "type": "TSLiteralType",
                "literal": {
                  "type": "StringLiteral",
                  "value": "bar",
                  "loc": {
                    "start": {
                      "line": 24,
                      "column": 22,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 24,
                      "column": 27,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 24,
                    "column": 22,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 24,
                    "column": 27,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "qualifier": {
                "type": "TSQualifiedName",
                "left": {
                  "type": "TSQualifiedName",
                  "left": {
                    "type": "Identifier",
                    "name": "r",
                    "loc": {
                      "start": {
                        "line": 24,
                        "column": 29,
                        "program": "test_import_type.ts"
                      },
                      "end": {
                        "line": 24,
                        "column": 30,
                        "program": "test_import_type.ts"
                      }
                    }
                  },
                  "right": {
                    "type": "Identifier",
                    "name": "t",
                    "loc": {
                      "start": {
                        "line": 24,
                        "column": 31,
                        "program": "test_import_type.ts"
                      },
                      "end": {
                        "line": 24,
                        "column": 32,
                        "program": "test_import_type.ts"
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 24,
                      "column": 29,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 24,
                      "column": 32,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "right": {
                  "type": "Identifier",
                  "name": "e",
                  "loc": {
                    "start": {
                      "line": 24,
                      "column": 33,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 24,
                      "column": 34,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 24,
                    "column": 29,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 24,
                    "column": 34,
                    "program": "test_import_type.ts"
                  }
                }
              },
              "isTypeOf": false,
              "loc": {
                "start": {
                  "line": 24,
                  "column": 34,
                  "program": "test_import_type.ts"
                },
                "end": {
                  "line": 24,
                  "column": 35,
                  "program": "test_import_type.ts"
                }
              }
            },
            "loc": {
              "start": {
                "line": 24,
                "column": 12,
                "program": "test_import_type.ts"
              },
              "end": {
                "line": 24,
                "column": 13,
                "program": "test_import_type.ts"
              }
            }
          }
        ],
        "returnType": {
          "type": "TSImportType",
          "parameter": {
            "type": "TSLiteralType",
            "literal": {
              "type": "StringLiteral",
              "value": "foo",
              "loc": {
                "start": {
                  "line": 24,
                  "column": 44,
                  "program": "test_import_type.ts"
                },
                "end": {
                  "line": 24,
                  "column": 49,
                  "program": "test_import_type.ts"
                }
              }
            },
            "loc": {
              "start": {
                "line": 24,
                "column": 44,
                "program": "test_import_type.ts"
              },
              "end": {
                "line": 24,
                "column": 49,
                "program": "test_import_type.ts"
              }
            }
          },
          "typeParameters": {
            "type": "TSTypeParameterInstantiation",
            "params": [
              {
                "type": "TSFunctionType",
                "params": [
                  {
                    "type": "Identifier",
                    "name": "a",
                    "typeAnnotation": {
                      "type": "TSUnionType",
                      "types": [
                        {
                          "type": "TSNumberKeyword",
                          "loc": {
                            "start": {
                              "line": 24,
                              "column": 57,
                              "program": "test_import_type.ts"
                            },
                            "end": {
                              "line": 24,
                              "column": 63,
                              "program": "test_import_type.ts"
                            }
                          }
                        },
                        {
                          "type": "TSStringKeyword",
                          "loc": {
                            "start": {
                              "line": 24,
                              "column": 66,
                              "program": "test_import_type.ts"
                            },
                            "end": {
                              "line": 24,
                              "column": 72,
                              "program": "test_import_type.ts"
                            }
                          }
                        }
                      ],
                      "loc": {
                        "start": {
                          "line": 24,
                          "column": 57,
                          "program": "test_import_type.ts"
                        },
                        "end": {
                          "line": 24,
                          "column": 72,
                          "program": "test_import_type.ts"
                        }
                      }
                    },
                    "loc": {
                      "start": {
                        "line": 24,
                        "column": 55,
                        "program": "test_import_type.ts"
                      },
                      "end": {
                        "line": 24,
                        "column": 56,
                        "program": "test_import_type.ts"
                      }
                    }
                  },
                  {
                    "type": "Identifier",
                    "name": "b",
                    "typeAnnotation": {
                      "type": "TSImportType",
                      "parameter": {
                        "type": "TSLiteralType",
                        "literal": {
                          "type": "StringLiteral",
                          "value": "a",
                          "loc": {
                            "start": {
                              "line": 24,
                              "column": 91,
                              "program": "test_import_type.ts"
                            },
                            "end": {
                              "line": 24,
                              "column": 94,
                              "program": "test_import_type.ts"
                            }
                          }
                        },
                        "loc": {
                          "start": {
                            "line": 24,
                            "column": 91,
                            "program": "test_import_type.ts"
                          },
                          "end": {
                            "line": 24,
                            "column": 94,
                            "program": "test_import_type.ts"
                          }
                        }
                      },
                      "typeParameters": {
                        "type": "TSTypeParameterInstantiation",
                        "params": [
                          {
                            "type": "TSTupleType",
                            "elementTypes": [
                              {
                                "type": "TSNumberKeyword",
                                "loc": {
                                  "start": {
                                    "line": 24,
                                    "column": 97,
                                    "program": "test_import_type.ts"
                                  },
                                  "end": {
                                    "line": 24,
                                    "column": 104,
                                    "program": "test_import_type.ts"
                                  }
                                }
                              },
                              {
                                "type": "TSStringKeyword",
                                "loc": {
                                  "start": {
                                    "line": 24,
                                    "column": 105,
                                    "program": "test_import_type.ts"
                                  },
                                  "end": {
                                    "line": 24,
                                    "column": 112,
                                    "program": "test_import_type.ts"
                                  }
                                }
                              }
                            ],
                            "loc": {
                              "start": {
                                "line": 24,
                                "column": 96,
                                "program": "test_import_type.ts"
                              },
                              "end": {
                                "line": 24,
                                "column": 112,
                                "program": "test_import_type.ts"
                              }
                            }
                          },
                          {
                            "type": "TSTypeLiteral",
                            "members": [],
                            "loc": {
                              "start": {
                                "line": 24,
                                "column": 114,
                                "program": "test_import_type.ts"
                              },
                              "end": {
                                "line": 24,
                                "column": 116,
                                "program": "test_import_type.ts"
                              }
                            }
                          }
                        ],
                        "loc": {
                          "start": {
                            "line": 24,
                            "column": 95,
                            "program": "test_import_type.ts"
                          },
                          "end": {
                            "line": 24,
                            "column": 117,
                            "program": "test_import_type.ts"
                          }
                        }
                      },
                      "isTypeOf": true,
                      "loc": {
                        "start": {
                          "line": 24,
                          "column": 77,
                          "program": "test_import_type.ts"
                        },
                        "end": {
                          "line": 24,
                          "column": 118,
                          "program": "test_import_type.ts"
                        }
                      }
                    },
                    "loc": {
                      "start": {
                        "line": 24,
                        "column": 74,
                        "program": "test_import_type.ts"
                      },
                      "end": {
                        "line": 24,
                        "column": 75,
                        "program": "test_import_type.ts"
                      }
                    }
                  }
                ],
                "typeParameters": {
                  "type": "TSTypeParameterDeclaration",
                  "params": [
                    {
                      "type": "TSTypeParameter",
                      "name": {
                        "type": "Identifier",
                        "name": "A",
                        "loc": {
                          "start": {
                            "line": 24,
                            "column": 52,
                            "program": "test_import_type.ts"
                          },
                          "end": {
                            "line": 24,
                            "column": 53,
                            "program": "test_import_type.ts"
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 24,
                          "column": 52,
                          "program": "test_import_type.ts"
                        },
                        "end": {
                          "line": 24,
                          "column": 54,
                          "program": "test_import_type.ts"
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 24,
                      "column": 51,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 24,
                      "column": 54,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "returnType": {
                  "type": "TSArrayType",
                  "elementType": {
                    "type": "TSNumberKeyword",
                    "loc": {
                      "start": {
                        "line": 24,
                        "column": 122,
                        "program": "test_import_type.ts"
                      },
                      "end": {
                        "line": 24,
                        "column": 128,
                        "program": "test_import_type.ts"
                      }
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "start": {
                      "line": 24,
                      "column": 122,
                      "program": "test_import_type.ts"
                    },
                    "end": {
                      "line": 24,
                      "column": 130,
                      "program": "test_import_type.ts"
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 24,
                    "column": 51,
                    "program": "test_import_type.ts"
                  },
                  "end": {
                    "line": 24,
                    "column": 130,
                    "program": "test_import_type.ts"
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 24,
                "column": 50,
                "program": "test_import_type.ts"
              },
              "end": {
                "line": 24,
                "column": 131,
                "program": "test_import_type.ts"
              }
            }
          },
          "isTypeOf": false,
          "loc": {
            "start": {
              "line": 24,
              "column": 132,
              "program": "test_import_type.ts"
            },
            "end": {
              "line": 24,
              "column": 133,
              "program": "test_import_type.ts"
            }
          }
        },
        "body": {
          "type": "BlockStatement",
          "statements": [],
          "loc": {
            "start": {
              "line": 24,
              "column": 132,
              "program": "test_import_type.ts"
            },
            "end": {
              "line": 26,
              "column": 2,
              "program": "test_import_type.ts"
            }
          }
        },
        "loc": {
          "start": {
            "line": 24,
            "column": 1,
            "program": "test_import_type.ts"
          },
          "end": {
            "line": 26,
            "column": 2,
            "program": "test_import_type.ts"
          }
        }
      },
      "loc": {
        "start": {
          "line": 24,
          "column": 1,
          "program": "test_import_type.ts"
        },
        "end": {
          "line": 26,
          "column": 2,
          "program": "test_import_type.ts"
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1,
      "program": "test_import_type.ts"
    },
    "end": {
      "line": 26,
      "column": 2,
      "program": "test_import_type.ts"
    }
  }
}
