# mod.ts
import { Chat } from './chat.ts';

/** Doc */
export class MyApi {
  /** Doc */
  completions: Chat = {};
}

MyApi.Chat = Chat;

/** Doc */
export declare namespace MyApi {
  export { Chat };
}

export default MyApi;

# chat.ts
import { Completions } from "./chat_completions.ts";

/** Doc */
export class Chat {}
Chat.Completions = Completions;

/** Doc */
export declare namespace Chat {
  export { Completions };
}

# chat_completions.ts
/** Doc */
export class Completions {}

# output.txt
Defined in file:///mod.ts:3:1

class MyApi
  Doc

  completions: Chat
    Doc

Defined in file:///mod.ts:11:1

namespace MyApi
  Doc

  class Chat
    Doc
  namespace Chat
    Doc

Defined in file:///mod.ts:3:1

class default
  Doc

  completions: Chat
    Doc

Defined in file:///mod.ts:11:1

namespace default
  Doc

  reference Chat: file:///chat.ts:3:1
  reference Chat: file:///chat.ts:7:1


# output.json
{
  "imports": [
    {
      "importedName": "Chat",
      "originalName": "Chat",
      "src": "file:///chat.ts"
    }
  ],
  "symbols": [
    {
      "name": "MyApi",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 3,
            "col": 0,
            "byteIndex": 46
          },
          "declarationKind": "export",
          "jsDoc": {
            "doc": "Doc"
          },
          "kind": "class",
          "def": {
            "properties": [
              {
                "jsDoc": {
                  "doc": "Doc"
                },
                "tsType": {
                  "repr": "Chat",
                  "kind": "typeRef",
                  "value": {
                    "typeName": "Chat",
                    "resolution": {
                      "kind": "import",
                      "specifier": "./chat.ts",
                      "name": "Chat"
                    }
                  }
                },
                "name": "completions",
                "location": {
                  "filename": "file:///mod.ts",
                  "line": 5,
                  "col": 2,
                  "byteIndex": 82
                }
              }
            ]
          }
        },
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 11,
            "col": 0,
            "byteIndex": 140
          },
          "declarationKind": "export",
          "jsDoc": {
            "doc": "Doc"
          },
          "kind": "namespace",
          "def": {
            "elements": [
              {
                "name": "Chat",
                "declarations": [
                  {
                    "location": {
                      "filename": "file:///chat.ts",
                      "line": 3,
                      "col": 0,
                      "byteIndex": 65
                    },
                    "declarationKind": "export",
                    "jsDoc": {
                      "doc": "Doc"
                    },
                    "kind": "class",
                    "def": {}
                  },
                  {
                    "location": {
                      "filename": "file:///chat.ts",
                      "line": 7,
                      "col": 0,
                      "byteIndex": 130
                    },
                    "declarationKind": "export",
                    "jsDoc": {
                      "doc": "Doc"
                    },
                    "kind": "namespace",
                    "def": {
                      "elements": []
                    }
                  }
                ]
              }
            ]
          }
        }
      ]
    },
    {
      "name": "default",
      "isDefault": true,
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 3,
            "col": 0,
            "byteIndex": 46
          },
          "declarationKind": "export",
          "jsDoc": {
            "doc": "Doc"
          },
          "kind": "class",
          "def": {
            "properties": [
              {
                "jsDoc": {
                  "doc": "Doc"
                },
                "tsType": {
                  "repr": "Chat",
                  "kind": "typeRef",
                  "value": {
                    "typeName": "Chat",
                    "resolution": {
                      "kind": "import",
                      "specifier": "./chat.ts",
                      "name": "Chat"
                    }
                  }
                },
                "name": "completions",
                "location": {
                  "filename": "file:///mod.ts",
                  "line": 5,
                  "col": 2,
                  "byteIndex": 82
                }
              }
            ]
          }
        },
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 11,
            "col": 0,
            "byteIndex": 140
          },
          "declarationKind": "export",
          "jsDoc": {
            "doc": "Doc"
          },
          "kind": "namespace",
          "def": {
            "elements": [
              {
                "name": "Chat",
                "declarations": [
                  {
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 12,
                      "col": 11,
                      "byteIndex": 184
                    },
                    "declarationKind": "export",
                    "kind": "reference",
                    "def": {
                      "target": {
                        "filename": "file:///chat.ts",
                        "line": 3,
                        "col": 0,
                        "byteIndex": 65
                      }
                    }
                  },
                  {
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 12,
                      "col": 11,
                      "byteIndex": 184
                    },
                    "declarationKind": "export",
                    "kind": "reference",
                    "def": {
                      "target": {
                        "filename": "file:///chat.ts",
                        "line": 7,
                        "col": 0,
                        "byteIndex": 130
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  ]
}
