import { IOptions } from "./IOptions";

/**
 * An event that fires when options has been changed.
 *
 * @event
 */
export interface OptionsChangeEvent {
  /**
   * Event type.
   */
  type: "optionschange";

  /**
   * New options.
   */
  data: IOptions;
}

/**
 * Options events.
 *
 * @event
 */
export interface OptionsEventMap {
  /**
   * An event that fires when options has been changed.
   */
  optionschange: OptionsChangeEvent;
}
