import IHTMLCollection from '../element/IHTMLCollection';
import HTMLOptionElement from '../html-option-element/HTMLOptionElement';
import IHTMLOptionElement from '../html-option-element/IHTMLOptionsElement';
/**
* HTML Options Collection
*
* Reference:
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection
*/
export default interface IHTMLOptionsCollection extends IHTMLCollection {
readonly selectedIndex: number;
length: number;
/**
* Adds new option to collection.
*
* @param element HTMLOptionElement to add TODO: also OPTGroup must supported.
* @param before HTMLOptionElement or index number.
*/
add(element: HTMLOptionElement, before?: number | IHTMLOptionElement): void;
/**
* Removes option element from the collection.
*
* @param index number.
*/
remove(index: number): void;
}