declare namespace java {
    namespace lang {
        namespace ref {
            // @ts-ignore
             class WeakReference extends java.lang.ref.Reference {
                /**
                 * Constructs a new instance of this class.
                 */
                // @ts-ignore
                constructor(r: java.lang.Object, q: java.lang.ref.ReferenceQueue)
                /**
                 * Constructs a new instance of this class.
                 */
                // @ts-ignore
                constructor(r: java.lang.Object)
            }
        }
    }
}
