1# Ambient module declaration is not supported 2 3Rule ``arkts-no-ambient-decls`` 4 5**Severity: error** 6 7ArkTS does not support ambient module declaration because it has its 8own mechanisms for interoperating with JavaScript. 9 10 11## TypeScript 12 13 14``` 15 16 declare module "someModule" { 17 export function normalize(s : string) : string; 18 } 19 20``` 21 22## ArkTS 23 24 25``` 26 27 // Import what you need from the original module 28 import { normalize } from "someModule" 29 30``` 31 32## See also 33 34- Recipe 129: Wildcards in module names are not supported (``arkts-no-module-wildcards``) 35 36