declare namespace java {
    namespace awt {
        namespace font {
            namespace TextLayout {
                // @ts-ignore
                 class CaretPolicy extends java.lang.Object {
                    /**
                     * Constructs a <code>CaretPolicy</code>.
                     */
                    // @ts-ignore
                    constructor()
                    /**
                     * Chooses one of the specified <code>TextHitInfo</code> instances as
                     * a strong caret in the specified <code>TextLayout</code>.
                     */
                    // @ts-ignore
                    public getStrongCaret(hit1: java.awt.font.TextHitInfo, hit2: java.awt.font.TextHitInfo, layout: java.awt.font.TextLayout): java.awt.font.TextHitInfo;
                }
            }
        }
    }
}
