declare namespace java {
    namespace nio {
        namespace channels {
            namespace FileChannel {
                // @ts-ignore
                 class MapMode extends java.lang.Object {
                    // @ts-ignore
                    public static READ_ONLY: java.nio.channels.FileChannel.MapMode;
                    // @ts-ignore
                    public static READ_WRITE: java.nio.channels.FileChannel.MapMode;
                    // @ts-ignore
                    public static PRIVATE: java.nio.channels.FileChannel.MapMode;
                    /**
                     * Returns a string describing this file-mapping mode.
                     */
                    // @ts-ignore
                    public toString(): string;
                }
            }
        }
    }
}
