# https://jsr.io/@scope/a/meta.json
{"versions": { "1.0.0": {} } }

# https://jsr.io/@scope/a/1.0.0_meta.json
{ "exports": { ".": "./mod.ts" } }

# https://jsr.io/@scope/a/1.0.0/a.ts
export class A {
  member: string;
}
export class Private2 {}

# https://jsr.io/@scope/a/1.0.0/b.ts
export { A as B } from "./a.ts";

export class Private1 {}

# https://jsr.io/@scope/a/1.0.0/mod.ts
import { B } from "./b.ts";
import { Private2 } from "./a.ts";

export class Export {
  prop: typeof B.prototype.member;
}

# mod.ts
import 'jsr:@scope/a'

# output
{
  "roots": [
    "file:///mod.ts"
  ],
  "modules": [
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "jsr:@scope/a",
          "code": {
            "specifier": "jsr:@scope/a",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 7
              },
              "end": {
                "line": 0,
                "character": 21
              }
            }
          }
        }
      ],
      "size": 22,
      "mediaType": "TypeScript",
      "specifier": "file:///mod.ts"
    },
    {
      "kind": "esm",
      "size": 62,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/a.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "./a.ts",
          "code": {
            "specifier": "https://jsr.io/@scope/a/1.0.0/a.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 23
              },
              "end": {
                "line": 0,
                "character": 31
              }
            }
          }
        }
      ],
      "size": 59,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "./b.ts",
          "code": {
            "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 18
              },
              "end": {
                "line": 0,
                "character": 26
              }
            }
          }
        },
        {
          "specifier": "./a.ts",
          "code": {
            "specifier": "https://jsr.io/@scope/a/1.0.0/a.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 1,
                "character": 25
              },
              "end": {
                "line": 1,
                "character": 33
              }
            }
          }
        }
      ],
      "size": 123,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/mod.ts"
    }
  ],
  "redirects": {
    "jsr:@scope/a": "https://jsr.io/@scope/a/1.0.0/mod.ts"
  },
  "packages": {
    "@scope/a@*": "@scope/a@1.0.0"
  }
}

Fast check https://jsr.io/@scope/a/1.0.0/a.ts:
  {}
  export class A {
    declare member: string;
  }
  --- DTS ---
  export declare class A {
    member: string;
  }

Fast check https://jsr.io/@scope/a/1.0.0/b.ts:
  {
    "./a.ts": {
      "code": {
        "specifier": "https://jsr.io/@scope/a/1.0.0/a.ts",
        "resolutionMode": "import",
        "span": {
          "start": {
            "line": 0,
            "character": 23
          },
          "end": {
            "line": 0,
            "character": 31
          }
        }
      }
    }
  }
  export { A as B } from "./a.ts";
  --- DTS ---
  export { A as B } from "./a.ts";

Fast check https://jsr.io/@scope/a/1.0.0/mod.ts:
  {
    "./b.ts": {
      "code": {
        "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts",
        "resolutionMode": "import",
        "span": {
          "start": {
            "line": 0,
            "character": 18
          },
          "end": {
            "line": 0,
            "character": 26
          }
        }
      }
    }
  }
  import { B } from "./b.ts";
  export class Export {
    declare prop: typeof B.prototype.member;
  }
  --- DTS ---
  import { B } from "./b.ts";
  export declare class Export {
    prop: typeof B.prototype.member;
  }
