declare module 'deepcopy' { type DeepcopyCustomizerValueType = 'Object'; type DeepcopyCustomizer = ( value: T, valueType: DeepcopyCustomizerValueType) => T; interface IDeepcopyOptions { customizer: DeepcopyCustomizer; } function deepcopy( value: T, options?: IDeepcopyOptions | DeepcopyCustomizer): T; namespace deepcopy {} // Hack export = deepcopy; }