import { h, ComponentChild, Component } from 'preact'; import { ui } from '@playkit-js/kaltura-player-js'; import { OnClick } from '../../hoc/a11y-wrapper'; declare type ToolTipPosition = 'top' | 'bottom' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'left' | 'right'; export declare enum ButtonSize { small = "small", medium = "medium", large = "large" } export declare enum ButtonType { primary = "primary", danger = "danger", translucent = "translucent", borderless = "borderless", borderlessTranslucent = "borderlessTranslucent", secondary = "secondary" } export interface TooltipProps { label: string; className?: string; type?: ToolTipPosition; strictPosition?: boolean; } export interface ButtonProps { testId?: string; children?: ComponentChild; icon?: string | null; disabled?: boolean; tabIndex?: number; ariaLabel?: string; onClick?: OnClick; className?: string; tooltip?: TooltipProps; size?: ButtonSize; type?: ButtonType; focusOnMount?: boolean; onBlur?: () => void; onFocus?: () => void; setRef?: (ref: HTMLButtonElement) => void; loading?: boolean; } export declare class Button extends Component { buttonRef: ui.preact.RefObject; componentDidMount(): void; renderChildren: () => h.JSX.Element | null; renderButton: () => h.JSX.Element; render(props: ButtonProps): h.JSX.Element; } export {};