import m from 'mithril'; import { IAttrs, ISizeAttrs, IIntentAttrs, Option } from '../../_shared'; export interface ISelectAttrs extends IAttrs, ISizeAttrs, IIntentAttrs { /** Toggles basic styling (no borders/background) */ basic?: boolean; /** Left-justified content */ contentLeft?: m.Vnode; /** Right-justified content */ contentRight?: m.Vnode; /** Disables selection */ disabled?: boolean; /** Initially selected value (uncontrolled mode) */ defaultValue?: string; /** Array of list options */ options?: Option[]; /** Fills width of parent container */ fluid?: boolean; /** * Callback invoked when selection changes. * The selected value can be accessed through e.currentTarget.value */ onchange?: (e: Event) => void; /** Value of the selected option */ value?: string; [htmlAttrs: string]: any; } export declare class Select implements m.Component { oncreate(vnode: m.VnodeDOM): void; onupdate(vnode: m.VnodeDOM): void; view({ attrs }: m.Vnode): m.Vnode; private renderOption; private updatePadding; }