import { DuetColor, DuetTheme } from "../../common-types"; import { ThemeableComponent } from "../../common/themeable-component"; export type DuetSpinnerSize = "small" | "medium" | "large"; export declare class DuetSpinner implements ThemeableComponent { element: HTMLElement; /** * Adds accessible label for the spinner that is only shown for screen readers. */ accessibleLabel: string; /** * Color of the spinner, as a design token entered in camelCase or kebab-case. * Example: "color-primary". This property can also be set to "currentColor" * which forces the icon to use the CSS text color of parent element instead. * Useful when you want to control the color in stylesheet instead. * Note that in earlier versions the color has defaulted to "gray-lightest", but * in a future release it will change to undefined, so that the color will be * the theme's primary. If you have relied on not defining color to result in * white, it is advisable to update your code to explicitly define it. */ color: DuetColor; /** * Size variation of the spinner. */ size: DuetSpinnerSize; /** * Theme of the spinner. */ theme: DuetTheme; /** * Component lifecycle events. */ componentWillLoad(): void; /** * render() function * Always the last one in the class. */ render(): any; }