declare namespace java {
    namespace util {
        namespace concurrent {
            // @ts-ignore
            interface Delayed {
                /**
                 * Returns the remaining delay associated with this object, in the
                 * given time unit.
                 */
                // @ts-ignore
                 getDelay(unit: java.util.concurrent.TimeUnit): number;
            }
        }
    }
}
