/index.ts(5,7): error TS2339: Property 'ambient' does not exist on type 'typeof import("/file.d.ext")'.
/index.ts(7,11): error TS2339: Property 'physical' does not exist on type 'typeof import("*.ext", { with: { type: "custom" } })'.


==== /types.d.ts (0 errors) ====
    declare module "*.ext" with { type: "custom" } {
        export const ambient: "ambient";
    }
    
    declare module "*" with { type: "text" } {
        const content: string;
        export default content;
    }
    
==== /file.d.ext.ts (0 errors) ====
    export const physical: "physical";
    
==== /index.ts (2 errors) ====
    import * as value from "./file.ext";
    import * as valueAttr from "./file.ext" with { type: "custom" };
    
    value.physical;
    value.ambient;
          ~~~~~~~
!!! error TS2339: Property 'ambient' does not exist on type 'typeof import("/file.d.ext")'.
    
    valueAttr.physical;
              ~~~~~~~~
!!! error TS2339: Property 'physical' does not exist on type 'typeof import("*.ext", { with: { type: "custom" } })'.
    valueAttr.ambient;
    
==== /foo.ts (0 errors) ====
    const someConstant: number = 42;
    export default someConstant;
    
==== /bar.ts (0 errors) ====
    import someConstant from "./foo.ts";
    import someText from "./foo.ts" with { type: "text" };
    someConstant;
    someText;
    