# 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/mod.ts
import type { Foo, Bar } from "./b.ts";

export const foo = function(foo: Foo): string { return "test" };
export const bar = function (): Bar { return new Bar() };

# https://jsr.io/@scope/a/1.0.0/b.ts
export type Foo = string;
export class Bar {}

# 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": 46,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "./b.ts",
          "type": {
            "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 30
              },
              "end": {
                "line": 0,
                "character": 38
              }
            }
          }
        }
      ],
      "size": 164,
      "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/b.ts:
  {}
  export type Foo = string;
  export class Bar {
  }
  --- DTS ---
  export type Foo = string;
  export declare class Bar {
  }

Fast check https://jsr.io/@scope/a/1.0.0/mod.ts:
  {
    "./b.ts": {
      "type": {
        "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts",
        "resolutionMode": "import",
        "span": {
          "start": {
            "line": 0,
            "character": 30
          },
          "end": {
            "line": 0,
            "character": 38
          }
        }
      }
    }
  }
  import type { Foo, Bar } from "./b.ts";
  export const foo = function(foo: Foo): string {
    return {} as never;
  };
  export const bar = function(): Bar {
    return {} as never;
  };
  --- DTS ---
  import type { Foo, Bar } from "./b.ts";
  export declare const foo: (foo: Foo) => string;
  export declare const bar: () => Bar;
