declare namespace org {
    namespace bukkit {
        namespace event {
            namespace player {
                // @ts-ignore
                 class PlayerEditBookEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable {
                    constructor(who: org.bukkit.entity.Player, slot: number, previousBookMeta: org.bukkit.inventory.meta.BookMeta, newBookMeta: org.bukkit.inventory.meta.BookMeta, isSigning: boolean)
                    /**
                     * Gets the book meta currently on the book.
                     * <p>
                     * Note: this is a copy of the book meta. You cannot use this object to
                     * change the existing book meta.
                     */
                    public getPreviousBookMeta(): org.bukkit.inventory.meta.BookMeta;
                    /**
                     * Gets the book meta that the player is attempting to add to the book.
                     * <p>
                     * Note: this is a copy of the proposed new book meta. Use {@link
                     * #setNewBookMeta(BookMeta)} to change what will actually be added to the
                     * book.
                     */
                    public getNewBookMeta(): org.bukkit.inventory.meta.BookMeta;
                    /**
                     * Gets the inventory slot number for the book item that triggered this
                     * event.
                     * <p>
                     * This is a slot number on the player's hotbar in the range 0-8, or -1 for
                     * off hand.
                     */
                    public getSlot(): number;
                    /**
                     * Sets the book meta that will actually be added to the book.
                     */
                    public setNewBookMeta(newBookMeta: org.bukkit.inventory.meta.BookMeta): void;
                    /**
                     * Gets whether or not the book is being signed. If a book is signed the
                     * Material changes from BOOK_AND_QUILL to WRITTEN_BOOK.
                     */
                    public isSigning(): boolean;
                    /**
                     * Sets whether or not the book is being signed. If a book is signed the
                     * Material changes from BOOK_AND_QUILL to WRITTEN_BOOK.
                     */
                    public setSigning(signing: boolean): void;
                    public getHandlers(): org.bukkit.event.HandlerList;
                    public static getHandlerList(): org.bukkit.event.HandlerList;
                    public isCancelled(): boolean;
                    public setCancelled(cancel: boolean): void;
                }
            }
        }
    }
}
