declare module 'switchman' { import * as t from '@babel/types'; import ASTNode = t.Node; type AttrValue = ASTNode | ASTNode[] | string; namespace SwitchMan { interface SwitchOption { method: string; defaultPatchFile?: string; mappings: []; } interface $ { (code: string, options?: SwitchOption): void; loadFile(path: string, options: SwitchOption): void; writeFile(code: string, filename: string): void; } } const SwitchManCode: SwitchMan.$; export = SwitchManCode; }