import { UIControlCallback, UIControlSpeciesOptions, UIControlSpeciesInitExport, UIControlSpeciesInit, UIControlSpecies } from "./types"; interface ButtonOption extends UIControlSpeciesOptions { /** * Sets whether the button should be places in danger zone. */ danger?: boolean; /** * Sets whether the button should be initially in the pinned state. */ pinned?: boolean; /** * Reserved for internal use. */ shortcut?: string; } interface ButtonConstructor extends UIControlSpeciesInit { (name: string, icon: string): UIControlSpecies; (name: string, icon: string, options: ButtonOption): UIControlSpecies; (name: string, icon: string, execute: UIControlCallback): UIControlSpecies; (name: string, icon: string, execute: UIControlCallback, options: ButtonOption): UIControlSpecies; } const Button: UIControlSpeciesInitExport<"button", ButtonConstructor>; export default Button;