// `import sheet from './x.css' with { type: 'css' }` gives a constructed stylesheet. declare module '*.css' { const sheet: CSSStyleSheet; export default sheet; } // `import text from './x.html' with { type: 'text' }` gives the file's contents. declare module '*.html' { const text: string; export default text; }