# mod.ts
export type Test = typeof Other.Test;

namespace Other {
  export const Test = 1;

  export const other = 2;
}

# output
file:///mod.ts: EsModuleInfo {
    module_id: ModuleId(
        0,
    ),
    specifier: "file:///mod.ts",
    re_exports: [],
    swc_id_to_symbol_id: {
        (
            "Test",
            #2,
        ): 1,
        (
            "Other",
            #2,
        ): 2,
        (
            "Test",
            #3,
        ): 3,
        (
            "other",
            #3,
        ): 4,
    },
    symbols: {
        0: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 0,
            parent_id: None,
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export type Test = typeof Other.Test;\n\nnamespace Other {\n  export const Test = 1;\n\n  export const other = 2;\n}",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            0,
                        ),
                        end: SourcePos(
                            110,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {
                1,
                2,
            },
            exports: {
                "Test": 1,
            },
            members: {},
        },
        1: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 1,
            parent_id: Some(
                0,
            ),
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export type Test = typeof Other.Test;",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            0,
                        ),
                        end: SourcePos(
                            37,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {},
            exports: {},
            members: {},
        },
        2: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 2,
            parent_id: Some(
                0,
            ),
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "namespace Other {\n  export const Test = 1;\n\n  export const other = 2;\n}",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            39,
                        ),
                        end: SourcePos(
                            110,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {
                3,
                4,
            },
            exports: {
                "Test": 3,
                "other": 4,
            },
            members: {},
        },
        3: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 3,
            parent_id: Some(
                2,
            ),
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export const Test = 1;",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            72,
                        ),
                        end: SourcePos(
                            80,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {},
            exports: {},
            members: {},
        },
        4: Symbol {
            module_id: ModuleId(
                0,
            ),
            symbol_id: 4,
            parent_id: Some(
                2,
            ),
            decls: [
                SymbolDecl {
                    kind: Definition(
                        SymbolNode(
                            "export const other = 2;",
                        ),
                    ),
                    range: SourceRange {
                        start: SourcePos(
                            98,
                        ),
                        end: SourcePos(
                            107,
                        ),
                    },
                    flags: 0,
                },
            ],
            child_ids: {},
            exports: {},
            members: {},
        },
    },
}
== symbol deps (types and exprs) ==
1:0..37 [QualifiedId(("Other", #2), ["Test"])]

== symbol deps (types only) ==
1:0..37 [QualifiedId(("Other", #2), ["Test"])]

== export definitions ==
[Test]: file:///mod.ts:0..37
  export type Test = typeof Other.Test;
