// Type definitions for agate/Spinner

import { SpinnerProps as ui_Spinner_SpinnerProps } from "@enact/ui/Spinner";
import * as React from "react";
import { SkinnableProps as agate_Skinnable_SkinnableProps } from "@enact/agate/Skinnable";

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;

export interface SpinnerBaseProps extends ui_Spinner_SpinnerProps {
  /**
   * The color of the component.
   */
  color?: "dark" | "light";
  /**
 * Customizes the component by mapping the supplied collection of CSS class names to the
corresponding internal elements and states of this component.
 * 
 * The following classes are supported:
 * *  `spinner`  - The root component class, unless there is a scrim. The scrim and floating
layer can be a sibling or parent to this root "spinner" element.
 */
  css?: object;
  /**
   * Pauses the animation of the spinner
   */
  paused?: boolean;
  /**
 * The size of the component.
 * 
 * Recommended usage is "large" (default) for standalone and popup scenarios, while "small"
is best suited for use inside other elements, like   .
 */
  size?: "huge" | "large" | "small" | "smallest";
  /**
   * Removes the background color (making it transparent).
   */
  transparent?: boolean;
}
/**
 * The base component, defining all of the properties.
 */

export class SpinnerBase extends React.Component<
  Merge<React.HTMLProps<HTMLElement>, SpinnerBaseProps>
> {}

export interface SpinnerDecoratorProps extends agate_Skinnable_SkinnableProps {}
export function SpinnerDecorator<P>(
  Component: React.ComponentType<P> | string
): React.ComponentType<P & SpinnerDecoratorProps>;

export interface SpinnerProps
  extends Merge<SpinnerBaseProps, SpinnerDecoratorProps> {}
/**
 * An Agate-styled Spinner.
 */

export class Spinner extends React.Component<
  Merge<React.HTMLProps<HTMLElement>, SpinnerProps>
> {}

export default Spinner;
