import { YUIComponent, YUIComponentSize } from './component';

/** Button type */
export type ButtonType = 'default' | 'primary' | 'minor' | 'danger' | 'link' | 'plain';

/** Button Component */
export declare class YButton extends YUIComponent {
  /** Button icon, accepts an icon name of YUI icon component */
  icon: string;

  /** Button size */
  size: YUIComponentSize;

  /** Button type */
  type: ButtonType;

  /** Option to fit button width to its parent width */
  block: boolean;

  /** Disable the button */
  disabled: boolean;

  /** Determine whether it's loading */
  loading: boolean;
}
