import { ButtonHTMLAttributes } from 'vue'; import { ElIconProps } from './ElIcon.vue'; export interface ElButtonProps { disabled?: boolean; dark?: boolean; loading?: boolean; icon?: ElIconProps; iconRight?: boolean; error?: boolean; label: string; size?: ElButtonSize; variant?: ElButtonVariant; type?: ButtonHTMLAttributes['type']; loadOnClick?: boolean; onClick?: (() => unknown) | (() => Promise); } export declare const elButtonSizes: readonly ["xs", "sm", "base", "l", "xl"]; export type ElButtonSize = (typeof elButtonSizes)[number]; export declare const elButtonVariants: readonly ["primary", "secondary", "tertiary"]; export type ElButtonVariant = (typeof elButtonVariants)[number]; declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { disabled: boolean; dark: boolean; loading: boolean; error: boolean; label: string; icon: undefined; size: string; variant: string; type: string; loadOnClick: boolean; onClick: undefined; }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly, { disabled: boolean; dark: boolean; loading: boolean; error: boolean; label: string; icon: undefined; size: string; variant: string; type: string; loadOnClick: boolean; onClick: undefined; }>>>, { type: "button" | "reset" | "submit"; size: ElButtonSize; label: string; onClick: (() => unknown) | (() => Promise); disabled: boolean; icon: ElIconProps; error: boolean; dark: boolean; loading: boolean; variant: ElButtonVariant; loadOnClick: boolean; }, {}>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {};
= { [K in keyof Pick
]: K extends keyof D ? __VLS_Prettify
: P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {};