{
  "type": "Program",
  "statements": [
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "a",
            "typeAnnotation": {
              "type": "TSTypeLiteral",
              "members": [
                {
                  "type": "TSConstructSignatureDeclaration",
                  "params": [
                    {
                      "type": "Identifier",
                      "name": "a",
                      "typeAnnotation": {
                        "type": "TSNumberKeyword",
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 17
                          },
                          "end": {
                            "line": 1,
                            "column": 23
                          }
                        }
                      },
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 14
                        },
                        "end": {
                          "line": 1,
                          "column": 15
                        }
                      }
                    },
                    {
                      "type": "Identifier",
                      "name": "b",
                      "typeAnnotation": {
                        "type": "TSStringKeyword",
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 28
                          },
                          "end": {
                            "line": 1,
                            "column": 34
                          }
                        }
                      },
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 25
                        },
                        "end": {
                          "line": 1,
                          "column": 26
                        }
                      }
                    }
                  ],
                  "returnType": {
                    "type": "TSNumberKeyword",
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 37
                      },
                      "end": {
                        "line": 1,
                        "column": 43
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 10
                    },
                    "end": {
                      "line": 1,
                      "column": 44
                    }
                  }
                },
                {
                  "type": "TSPropertySignature",
                  "computed": false,
                  "optional": false,
                  "readonly": false,
                  "key": {
                    "type": "Identifier",
                    "name": "a",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 45
                      },
                      "end": {
                        "line": 1,
                        "column": 46
                      }
                    }
                  },
                  "typeAnnotation": {
                    "type": "TSStringKeyword",
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 48
                      },
                      "end": {
                        "line": 1,
                        "column": 54
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 45
                    },
                    "end": {
                      "line": 1,
                      "column": 55
                    }
                  }
                },
                {
                  "type": "TSMethodSignature",
                  "computed": false,
                  "optional": true,
                  "key": {
                    "type": "Identifier",
                    "name": "b",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 56
                      },
                      "end": {
                        "line": 1,
                        "column": 57
                      }
                    }
                  },
                  "params": [
                    {
                      "type": "Identifier",
                      "name": "a",
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 59
                        },
                        "end": {
                          "line": 1,
                          "column": 60
                        }
                      }
                    },
                    {
                      "type": "ArrayPattern",
                      "elements": [
                        {
                          "type": "Identifier",
                          "name": "c",
                          "decorators": [],
                          "loc": {
                            "start": {
                              "line": 1,
                              "column": 63
                            },
                            "end": {
                              "line": 1,
                              "column": 64
                            }
                          }
                        },
                        {
                          "type": "Identifier",
                          "name": "d",
                          "decorators": [],
                          "loc": {
                            "start": {
                              "line": 1,
                              "column": 66
                            },
                            "end": {
                              "line": 1,
                              "column": 67
                            }
                          }
                        }
                      ],
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 62
                        },
                        "end": {
                          "line": 1,
                          "column": 68
                        }
                      }
                    },
                    {
                      "type": "Identifier",
                      "name": "k",
                      "optional": true,
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 70
                        },
                        "end": {
                          "line": 1,
                          "column": 71
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 56
                    },
                    "end": {
                      "line": 1,
                      "column": 75
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 1,
                  "column": 8
                },
                "end": {
                  "line": 1,
                  "column": 75
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 1,
                "column": 5
              },
              "end": {
                "line": 1,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 1,
              "column": 5
            },
            "end": {
              "line": 1,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 1,
          "column": 1
        },
        "end": {
          "line": 1,
          "column": 6
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "b",
            "typeAnnotation": {
              "type": "TSTypeLiteral",
              "members": [
                {
                  "type": "TSPropertySignature",
                  "computed": false,
                  "optional": false,
                  "readonly": false,
                  "key": {
                    "type": "Identifier",
                    "name": "a",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 2,
                        "column": 10
                      },
                      "end": {
                        "line": 2,
                        "column": 11
                      }
                    }
                  },
                  "typeAnnotation": {
                    "type": "TSNumberKeyword",
                    "loc": {
                      "start": {
                        "line": 2,
                        "column": 13
                      },
                      "end": {
                        "line": 2,
                        "column": 19
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 10
                    },
                    "end": {
                      "line": 2,
                      "column": 20
                    }
                  }
                },
                {
                  "type": "TSPropertySignature",
                  "computed": false,
                  "optional": false,
                  "readonly": false,
                  "key": {
                    "type": "Identifier",
                    "name": "b",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 2,
                        "column": 21
                      },
                      "end": {
                        "line": 2,
                        "column": 22
                      }
                    }
                  },
                  "typeAnnotation": {
                    "type": "TSNumberKeyword",
                    "loc": {
                      "start": {
                        "line": 2,
                        "column": 24
                      },
                      "end": {
                        "line": 2,
                        "column": 30
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 21
                    },
                    "end": {
                      "line": 2,
                      "column": 31
                    }
                  }
                },
                {
                  "type": "TSPropertySignature",
                  "computed": false,
                  "optional": true,
                  "readonly": false,
                  "key": {
                    "type": "Identifier",
                    "name": "c",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 2,
                        "column": 32
                      },
                      "end": {
                        "line": 2,
                        "column": 33
                      }
                    }
                  },
                  "typeAnnotation": {
                    "type": "TSStringKeyword",
                    "loc": {
                      "start": {
                        "line": 2,
                        "column": 36
                      },
                      "end": {
                        "line": 2,
                        "column": 42
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 32
                    },
                    "end": {
                      "line": 2,
                      "column": 44
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 2,
                  "column": 8
                },
                "end": {
                  "line": 2,
                  "column": 44
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 2,
                "column": 5
              },
              "end": {
                "line": 2,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 2,
              "column": 5
            },
            "end": {
              "line": 2,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 2,
          "column": 1
        },
        "end": {
          "line": 2,
          "column": 6
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "c",
            "typeAnnotation": {
              "type": "TSTypeLiteral",
              "members": [
                {
                  "type": "TSMethodSignature",
                  "computed": false,
                  "optional": false,
                  "key": {
                    "type": "Identifier",
                    "name": "a",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 3,
                        "column": 10
                      },
                      "end": {
                        "line": 3,
                        "column": 11
                      }
                    }
                  },
                  "params": [
                    {
                      "type": "Identifier",
                      "name": "a",
                      "typeAnnotation": {
                        "type": "TSNumberKeyword",
                        "loc": {
                          "start": {
                            "line": 3,
                            "column": 15
                          },
                          "end": {
                            "line": 3,
                            "column": 21
                          }
                        }
                      },
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 3,
                          "column": 12
                        },
                        "end": {
                          "line": 3,
                          "column": 13
                        }
                      }
                    },
                    {
                      "type": "Identifier",
                      "name": "b",
                      "typeAnnotation": {
                        "type": "TSArrayType",
                        "elementType": {
                          "type": "TSStringKeyword",
                          "loc": {
                            "start": {
                              "line": 3,
                              "column": 26
                            },
                            "end": {
                              "line": 3,
                              "column": 32
                            }
                          }
                        },
                        "loc": {
                          "start": {
                            "line": 3,
                            "column": 26
                          },
                          "end": {
                            "line": 3,
                            "column": 34
                          }
                        }
                      },
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 3,
                          "column": 23
                        },
                        "end": {
                          "line": 3,
                          "column": 24
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 3,
                      "column": 10
                    },
                    "end": {
                      "line": 3,
                      "column": 36
                    }
                  }
                },
                {
                  "type": "TSCallSignatureDeclaration",
                  "params": [
                    {
                      "type": "Identifier",
                      "name": "d",
                      "typeAnnotation": {
                        "type": "TSBooleanKeyword",
                        "loc": {
                          "start": {
                            "line": 3,
                            "column": 41
                          },
                          "end": {
                            "line": 3,
                            "column": 48
                          }
                        }
                      },
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 3,
                          "column": 38
                        },
                        "end": {
                          "line": 3,
                          "column": 39
                        }
                      }
                    },
                    {
                      "type": "Identifier",
                      "name": "e",
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 3,
                          "column": 50
                        },
                        "end": {
                          "line": 3,
                          "column": 51
                        }
                      }
                    }
                  ],
                  "returnType": {
                    "type": "TSFunctionType",
                    "params": [
                      {
                        "type": "Identifier",
                        "name": "g",
                        "typeAnnotation": {
                          "type": "TSNumberKeyword",
                          "loc": {
                            "start": {
                              "line": 3,
                              "column": 58
                            },
                            "end": {
                              "line": 3,
                              "column": 64
                            }
                          }
                        },
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 3,
                            "column": 55
                          },
                          "end": {
                            "line": 3,
                            "column": 56
                          }
                        }
                      },
                      {
                        "type": "Identifier",
                        "name": "l",
                        "typeAnnotation": {
                          "type": "TSStringKeyword",
                          "loc": {
                            "start": {
                              "line": 3,
                              "column": 69
                            },
                            "end": {
                              "line": 3,
                              "column": 75
                            }
                          }
                        },
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 3,
                            "column": 66
                          },
                          "end": {
                            "line": 3,
                            "column": 67
                          }
                        }
                      }
                    ],
                    "returnType": {
                      "type": "TSStringKeyword",
                      "loc": {
                        "start": {
                          "line": 3,
                          "column": 80
                        },
                        "end": {
                          "line": 3,
                          "column": 86
                        }
                      }
                    },
                    "loc": {
                      "start": {
                        "line": 3,
                        "column": 54
                      },
                      "end": {
                        "line": 3,
                        "column": 86
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 3,
                      "column": 37
                    },
                    "end": {
                      "line": 3,
                      "column": 88
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 3,
                  "column": 8
                },
                "end": {
                  "line": 3,
                  "column": 88
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 3,
                "column": 5
              },
              "end": {
                "line": 3,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 3,
              "column": 5
            },
            "end": {
              "line": 3,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 3,
          "column": 1
        },
        "end": {
          "line": 3,
          "column": 6
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "d",
            "typeAnnotation": {
              "type": "TSTypeLiteral",
              "members": [
                {
                  "type": "TSPropertySignature",
                  "computed": true,
                  "optional": false,
                  "readonly": false,
                  "key": {
                    "type": "StringLiteral",
                    "value": "foo",
                    "loc": {
                      "start": {
                        "line": 4,
                        "column": 11
                      },
                      "end": {
                        "line": 4,
                        "column": 16
                      }
                    }
                  },
                  "typeAnnotation": {
                    "type": "TSBooleanKeyword",
                    "loc": {
                      "start": {
                        "line": 4,
                        "column": 19
                      },
                      "end": {
                        "line": 4,
                        "column": 26
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 4,
                      "column": 10
                    },
                    "end": {
                      "line": 4,
                      "column": 27
                    }
                  }
                },
                {
                  "type": "TSMethodSignature",
                  "computed": true,
                  "optional": false,
                  "key": {
                    "type": "NumberLiteral",
                    "value": 5,
                    "loc": {
                      "start": {
                        "line": 4,
                        "column": 29
                      },
                      "end": {
                        "line": 4,
                        "column": 30
                      }
                    }
                  },
                  "params": [
                    {
                      "type": "Identifier",
                      "name": "a",
                      "typeAnnotation": {
                        "type": "TSUndefinedKeyword",
                        "loc": {
                          "start": {
                            "line": 4,
                            "column": 35
                          },
                          "end": {
                            "line": 4,
                            "column": 44
                          }
                        }
                      },
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 4,
                          "column": 32
                        },
                        "end": {
                          "line": 4,
                          "column": 33
                        }
                      }
                    },
                    {
                      "type": "Identifier",
                      "name": "b",
                      "typeAnnotation": {
                        "type": "TSAnyKeyword",
                        "loc": {
                          "start": {
                            "line": 4,
                            "column": 50
                          },
                          "end": {
                            "line": 4,
                            "column": 53
                          }
                        }
                      },
                      "optional": true,
                      "decorators": [],
                      "loc": {
                        "start": {
                          "line": 4,
                          "column": 46
                        },
                        "end": {
                          "line": 4,
                          "column": 47
                        }
                      }
                    }
                  ],
                  "typeAnnotation": {
                    "type": "TSNullKeyword",
                    "loc": {
                      "start": {
                        "line": 4,
                        "column": 56
                      },
                      "end": {
                        "line": 4,
                        "column": 60
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 4,
                      "column": 28
                    },
                    "end": {
                      "line": 4,
                      "column": 62
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 4,
                  "column": 8
                },
                "end": {
                  "line": 4,
                  "column": 62
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 4,
                "column": 5
              },
              "end": {
                "line": 4,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 4,
              "column": 5
            },
            "end": {
              "line": 4,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 4,
          "column": 1
        },
        "end": {
          "line": 4,
          "column": 6
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 4,
      "column": 62
    }
  }
}
