# 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
export class Application<S> {
  prop: S;
}

export const str = "foo" as "foo" & { __brand: "foo" }

export function createMockApp<
  S extends Record<string | number | symbol, any> = Record<string, any>,
>(
  state = {} as S,
): Application<S> {
  return new Application();
}

class Private1 {}
class Private2 {}

export class A {
  constructor(public prop = Private1 as Public1) {
  }
  handler = (() => {}) as Public2<Public3>;
  secondProp: Public4;
}

export const var1 = Private2 as Public5<Public6>;

interface Public1<T> {}
interface Public2 {}
interface Public3 {}
interface Public4 {}
interface Public5 {}
interface Public6 {}

class Public7 {}
export const str2 = "foo" as "foo" & { data: Public7 };

# 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": 710,
      "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/mod.ts:
  {}
  export class Application<S> {
    declare prop: S;
  }
  export const str: "foo" & {
    __brand: "foo";
  } = {} as never;
  export function createMockApp<S extends Record<string | number | symbol, any> = Record<string, any>>(state?: S): Application<S> {
    return {} as never;
  }
  export class A {
    declare prop: Public1;
    constructor(prop?: Public1){}
    declare handler: Public2<Public3>;
    declare secondProp: Public4;
  }
  export const var1: Public5<Public6> = {} as never;
  interface Public1<T> {
  }
  interface Public2 {
  }
  interface Public3 {
  }
  interface Public4 {
  }
  interface Public5 {
  }
  interface Public6 {
  }
  class Public7 {
  }
  export const str2: "foo" & {
    data: Public7;
  } = {} as never;
  --- DTS ---
  export declare class Application<S> {
    prop: S;
  }
  export declare const str: "foo" & {
    __brand: "foo";
  };
  export declare function createMockApp<S extends Record<string | number | symbol, any> = Record<string, any>>(state?: S): Application<S>;
  export declare class A {
    prop: Public1;
    constructor(prop?: Public1);
    handler: Public2<Public3>;
    secondProp: Public4;
  }
  export declare const var1: Public5<Public6>;
  interface Public1<T> {
  }
  interface Public2 {
  }
  interface Public3 {
  }
  interface Public4 {
  }
  interface Public5 {
  }
  interface Public6 {
  }
  declare class Public7 {
  }
  export declare const str2: "foo" & {
    data: Public7;
  };
