import m from 'mithril'; import { ValidEventTypes } from '../../event-emitter/EventEmitter'; import { Control, ControlAttributes, ControlEventTypes } from '../common/Control'; import { Color } from '../../common/Types'; import './button.style.css'; declare type ButtonStyle = 'plain' | 'filled'; declare type ButtonSize = 'small' | 'medium' | 'large'; export type ButtonAttributes = ControlAttributes & { text?: string; color?: Color; style?: ButtonStyle; size?: ButtonSize; disabled?: boolean; round?: boolean; icon?: string; }; declare type ButtonEventTypes = ValidEventTypes & ControlEventTypes; export declare class Button extends Control { getColor(): Color; getStyle(): ButtonStyle; getSize(): ButtonSize; isDisabled(): boolean; setDisabled(disabled: boolean): boolean; getText(): string | undefined; setText(text: string | undefined): void; getIcon(): string | undefined; setIcon(icon: string | undefined): void; view(): m.Vnode | m.Children; } export {}; //# sourceMappingURL=Button.d.ts.map