declare var declaredVar ; declare type DeclaredType = number | null | undefined ; declare type DeclaredTypeWithGeneric < T > = { data : T ; loading : boolean ; error ? : Error ; } ; declare function declaredFunction ( x ) ; declare function declaredFunctionWithoutParamName ( p ) ; declare type DeclaredArrowFunction = ( ... nums : Array < number > ) => number ; declare class DeclaredClass { constructor ( p ) ; toString ( ) ; genericMethod < T1 , T2 > ( p ) ; static method ( x , y ) ; } declare class DeclaredChildClass < T > extends Set < T > { data : Set < T > ; constructor ( p ) ; } declare interface DeclaredInterface < T > { p : T ; q ? : number ; f ( x ) : string ; } declare module 'declared-es-module' { var declaredESModuleVar ; function delcaredESModuleFunction ( ) ; export var declaredESModuleExportedVar ; export function declaredESModuleExportedFunction ( p ) ; class declaredESModuleClass { toString ( ) ; } export class declaredESModuleExportedClass { toString ( ) ; } interface declaredESModuleInterface { toString ( ) : string ; } export interface declaredESModuleExportedInterface { toString ( ) : string ; } const _default ; export default _default ; }