import * as React from 'react'; export type SpinnerVariant = 'indeterminate' | 'determinate'; export declare const SPINNER_SIZES: readonly ["xs", "sm", "md", "lg", "xl"]; export type SpinnerSize = (typeof SPINNER_SIZES)[number]; interface SpinnerOwnProps { /** * `indeterminate` spins forever; `determinate` fills to `value`. * @default 'indeterminate' */ variant?: SpinnerVariant; /** * @default 'md' */ size?: SpinnerSize; /** Progress 0–100. Only meaningful when determinate. */ value?: number; /** Caption under an indeterminate spinner. */ label?: string; /** * Forces the value to 0 and paints the disabled colors. * @default false */ disabled?: boolean; /** Fires once, when a determinate spinner crosses to >= 100. */ onComplete?: () => void; /** * Accessible name. * @default 'Loading' */ 'aria-label'?: string; className?: string; } export type SpinnerProps = SpinnerOwnProps & Omit, keyof SpinnerOwnProps>; /** * Loading indicator, spinning or filling. * * Owns the unmeasured wait; for a value known throughout, prefer `Progress mode="circle"`. * * `onComplete` fires exactly once, on the transition into >= 100, and never for a * spinner that mounts already complete — nothing completed from the user's point * of view in that case. It is held in a ref so that passing a fresh closure on * every render does not re-fire it. * * @example * @example */ export declare const Spinner: React.ForwardRefExoticComponent, HTMLDivElement>, "ref">, keyof SpinnerOwnProps> & React.RefAttributes>; export {}; //# sourceMappingURL=spinner.d.ts.map