import * as react_jsx_runtime from 'react/jsx-runtime';
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
import * as class_variance_authority_types from 'class-variance-authority/types';
import { VariantProps } from 'class-variance-authority';

declare const spinnerStyles: (props?: ({
    size?: "sm" | "md" | "current" | "full" | null | undefined;
    intent?: "main" | "alert" | "current" | "support" | "accent" | "basic" | "success" | "error" | "info" | "neutral" | null | undefined;
    isBackgroundVisible?: boolean | null | undefined;
} & class_variance_authority_types.ClassProp) | undefined) => string;
type SpinnerStylesProps = VariantProps<typeof spinnerStyles>;

interface SpinnerProps extends ComponentPropsWithRef<'div'>, SpinnerStylesProps {
    /**
     * Use `label` prop for accessibility, it is important to add a fallback loading text. This text will be visible to screen readers.
     */
    label?: string;
}
declare const Spinner: ({ className, size, intent, label, isBackgroundVisible, ref, ...others }: PropsWithChildren<SpinnerProps>) => react_jsx_runtime.JSX.Element;

export { Spinner, type SpinnerProps };
