import type { HTMLAttributes } from 'svelte/elements'; import * as iconsProvider from '../../utils/iconsProvider.js'; interface BaseProps { text?: string; icon?: keyof typeof iconsProvider | undefined; iconPosition?: 'left' | 'right'; tag?: 'button' | 'a'; ariaLabel?: string; showBadge?: boolean; badgeText?: string | number; stopPropagation?: false; preventDefault?: false; } export interface ButtonProps extends BaseProps, HTMLAttributes { tag?: 'button'; color?: 'primary' | 'secondary' | 'success' | 'warning' | 'failure' | 'minimal'; type?: 'button' | 'reset' | 'submit' | null | undefined; disabled?: boolean; buttonElement?: HTMLButtonElement | undefined; onclick?: (event: MouseEvent) => void; } export interface AnchorProps extends BaseProps, HTMLAttributes { tag: 'a'; color?: 'primary' | 'secondary' | 'success' | 'warning' | 'failure' | 'minimal'; disabled?: boolean; buttonElement?: HTMLAnchorElement | undefined; onclick?: (event: MouseEvent) => void; } export {};